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

Gordon Sadler gbsadler1@lcisp.com
Fri Mar 9 21:11:00 GMT 2001


On Sat, Mar 10, 2001 at 11:25:34AM +1300, Bryce McKinlay wrote:
> Gordon Sadler wrote:
>> > Last night I tried to bootstrap with --enable-langs=c,c++,java it failed
> > on natClip.cc as others have observed. However now it's a different line
> > number.
>> I'm confused as to why it would be trying to build natClip.cc for you. I "fixed"
> this problem, I thought, by not building the xlib stuff by default. Are you
> using the latest tree from CVS? Branch or mainline? What platform? Whats your
> exact configure line?
>I recall reading you had 'fixed' it, I like 'testing' things though.
Sometimes I'm a glutton for punishment -), like to see if I can make
things work.
I did force it to build using the following:
configure --enable-version-specific-runtime-libs --enable-threads=posix
--enable-long-long --enable-languages=c,c++,java --enable-shared --prefix=$HOME/gcc-$d
--with-system-zlib --disable-nls --enable-sjlj-exceptions --enable-interpreter --with-x
--enable-java-awt=xlib,gtk
Sorry should have been lots more specific, I was trying to add another
data point.
gcc-3_0-branch
uname -a
Linux home-desktop 2.4.2-ac1 #3 Mon Feb 26 04:50:16 CST 2001 i686
unknown
> > ../../../cvs/gcc/libjava/gnu/gcj/xlib/natClip.cc:15:18: vector: No such
> > file or directory
>You are correct of course, I wasn't looking close enough.
> This is the real problem. Libstdc++ includes arn't being passed to libjava make
> as "-I" flags.
>> > void gnu::gcj::xlib::Clip::init(AWTRectArray* rectangles)
> > {
> > - // Prepare rectangles:
> > + /* Prepare rectangles: */
> >
> > int numRect = JvGetArrayLength(rectangles);
> > XRectVector* xrectvector = new XRectVector(numRect);
>> I don't see how that could possibly have any effect. Perhaps it was just
> coincidental that it worked after you touched the file?
>It was coincidental. However note here is the line that failed from my
build.log:
/home/gbsadler/gcc-ss/gcc/g++ -B/home/gbsadler/gcc-ss/gcc/ -nostdinc++
-L/home/gbsadler/gcc-ss/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/gbsadler/gcc-ss/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/gbsadler/gcc-2001年03月09日/i686-pc-linux-gnu/bin/
-B/home/gbsadler/gcc-2001年03月09日/i686-pc-linux-gnu/lib/ -isystem
/home/gbsadler/gcc-2001年03月09日/i686-pc-linux-gnu/include -DHAVE_CONFIG_H
-I. -I../../../cvs/gcc/libjava -I./include -I../../../cvs/gcc/libjava
-Iinclude -I../../../cvs/gcc/libjava/include
-I../../../cvs/gcc/libjava/../boehm-gc -I./../boehm-gc -DLINUX_THREADS=1
-D_REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -DJAVA_FINALIZATION=1
-DGC_GCJ_SUPPORT=1 -I../../../cvs/gcc/libjava/libltdl
-I../../../cvs/gcc/libjava/libltdl -I../../../cvs/gcc/libjava/../gcc
-I../../../cvs/gcc/libjava/../include
-I../../../cvs/gcc/libjava/../libffi/include -I../libffi/include
-fno-rtti -fvtable-thunks -fasynchronous-exceptions
-fdollars-in-identifiers -D__NO_MATH_INLINES -ffloat-store
-fsjlj-exceptions -I/usr/X11R6/include -W -Wall -D_GNU_SOURCE -O3
-fstrict-aliasing -march=i686 -fvtable-thunks -D_GNU_SOURCE
-Wp,-MD,.deps/natClip.pp -c
../../../cvs/gcc/libjava/gnu/gcj/xlib/natClip.cc -fPIC -DPIC -o
gnu/gcj/xlib/.libs/natClip.o
The very next thing I did was alter the file, and rerun my make
commandline:
make bootstrap >>build.log 2>&1
Here is the result, that compiled successfully:
/home/gbsadler/gcc-ss/gcc/g++ -B/home/gbsadler/gcc-ss/gcc/ -nostdinc++
-nostdinc++ -I/home/gbsadler/cvs/gcc/libstdc++-v3/include
-I/home/gbsadler/cvs/gcc/libstdc++-v3/include/std
-I/home/gbsadler/cvs/gcc/libstdc++-v3/include/c_std
-I/home/gbsadler/gcc-ss/i686-pc-linux-gnu/libstdc++-v3/include
-I/home/gbsadler/cvs/gcc/libstdc++-v3/libsupc++
-I/home/gbsadler/gcc-ss/i686-pc-linux-gnu/libstdc++-v3/libio
-I/home/gbsadler/cvs/gcc/libstdc++-v3/libio
-I/home/gbsadler/cvs/gcc/libstdc++-v3/libmath
-L/home/gbsadler/gcc-ss/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/gbsadler/gcc-ss/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/gbsadler/gcc-2001年03月09日/i686-pc-linux-gnu/bin/
-B/home/gbsadler/gcc-2001年03月09日/i686-pc-linux-gnu/lib/ -isystem
/home/gbsadler/gcc-2001年03月09日/i686-pc-linux-gnu/include -DHAVE_CONFIG_H
-I. -I../../../cvs/gcc/libjava -I./include -I../../../cvs/gcc/libjava
-Iinclude -I../../../cvs/gcc/libjava/include
-I../../../cvs/gcc/libjava/../boehm-gc -I./../boehm-gc -DLINUX_THREADS=1
-D_REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -DJAVA_FINALIZATION=1
-DGC_GCJ_SUPPORT=1 -I../../../cvs/gcc/libjava/libltdl
-I../../../cvs/gcc/libjava/libltdl -I../../../cvs/gcc/libjava/../gcc
-I../../../cvs/gcc/libjava/../include
-I../../../cvs/gcc/libjava/../libffi/include -I../libffi/include
-fno-rtti -fvtable-thunks -fasynchronous-exceptions
-fdollars-in-identifiers -D__NO_MATH_INLINES -ffloat-store
-fsjlj-exceptions -I/usr/X11R6/include -W -Wall -D_GNU_SOURCE -O3
-fstrict-aliasing -march=i686 -fvtable-thunks -D_GNU_SOURCE
-Wp,-MD,.deps/natClip.pp -c
../../../cvs/gcc/libjava/gnu/gcj/xlib/natClip.cc -fPIC -DPIC -o
gnu/gcj/xlib/.libs/natClip.o
So it does pick up the proper includes, if you just rerun make
bootstrap? hmmmm.......
Interesting, now if I can just get make check to get through libjava
without timing out for 4+hours, see my other post.
Gordon Sadler


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /