[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cwrapper generates long strings.

From: Peter Rosin
Subject: cwrapper generates long strings.
Date: Fri, 01 Oct 2010 13:28:39 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100915 Thunderbird/3.1.4


I tried the testsuite with MSYS and MSVC 6 and it failed in stresstest.at

./.libs/lt-main.c(865) : error C2026: string too big, trailing characters 

The reason seems to be that I have an overly long PATH that gets printed
twice in a line with fputs ("relink_command...");

I.e. I have this on line 865 in lt-main.c:

  fputs ("relink_command=\"(cd 
PATH=\\\"/LOADS:/OF:/ENTRIES\\\"; export PATH; 
PATH=\\\"/LOADS:/OF:/ENTRIES\\\"; export PATH; 
/c/cygwin/home/peda/automake/lib/compile cl -MD -Zi -EHsc -o @OUTPUT@ 
.libs/main-static.obj  sub2/.libs/a.lib )\"\n", f);

In my case the string is 3400+ characters which is too much for MSVC 6,
but this appears to not be really compiler specific, and I can easily
imagine other compilers with other arbitrary (and possibly standardized)

One thing that could be done is to only have the PATH once, but that is
not a real fix.

Should we worry about my insane case?  I didn't intend to have such a long
PATH, it has many duplicate entries due to repeated PATH="/foo:$PATH".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]