This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [head] Java bootstrap failure: natClip.cc:26: syntax error before`;'


Gerald Pfeifer wrote:

> I'm seeing the following boostrap failure on sparc-sun-solaris2.8 for
> current cvs sources:
>
> mkdir gnu/gcj/xlib/.libs
> /files/pfeifer/OBJ-0216-1940/gcc/g++ -B/files/pfeifer/OBJ-0216-1940/gcc/ -nostdinc++ -L/files/pfeifer/OBJ-0216-1940/sparc-sun-solaris2.8/libstdc++-v3/src -L/files/pfeifer/OBJ-0216-1940/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -B/sw/test/gcc/SunOS/sparc-sun-solaris2.8/bin/ -B/sw/test/gcc/SunOS/sparc-sun-solaris2.8/lib/ -isystem /sw/test/gcc/SunOS/sparc-sun-solaris2.8/include -DHAVE_CONFIG_H -I. -I/sw/test/gcc/cvs/libjava -I./include -I/sw/test/gcc/cvs/libjava -Iinclude -I/sw/test/gcc/cvs/libjava/include -I/sw/test/gcc/cvs/libjava/../boehm-gc -I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -I/sw/test/gcc/cvs/libjava/libltdl -I/sw/test/gcc/cvs/libjava/libltdl -I/sw/test/gcc/cvs/libjava/../gcc -I/sw/test/gcc/cvs/libjava/../include -I/sw/test/gcc/cvs/libjava/../zlib -I/sw/test/gcc/cvs/libjava/../libffi/include -I../libffi/include -fno-rtti -fvtable-thunks -fasynchronous-exceptions -fdollars-in-identifiers -I/usr/openwin/include -W -Wall -D_GN!
> U_SOURCE -g -O2 -Wp,-MD,.deps/natClip.pp -c

[...]

> /sw/test/gcc/cvs/libjava/gnu/gcj/xlib/natClip.cc:15:18: vector: No such file or directory

So, the problem is that the appropriate libstdc++ -I flags (the contents of $builddir/libstdc++-v3/src/libstdc++.INC) arn't getting included in what the toplevel passes down to libjava's make in the CXX variable.

This seems to crop up occasionally, but I dont really know what causes it. "rm -rf" your build directory and starting again ought to fix it ;-)

The best short term fix may be to just not build libgcjx (other parts of libjava don't need the libstdc++ includes). Any objections?

regards

  [ bryce ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]