This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
cannot build libjava/gnu/gcj/xlib/natClip.cc
- To: java-discuss at sources dot redhat dot com
- Subject: cannot build libjava/gnu/gcj/xlib/natClip.cc
- From: Per Bothner <per at bothner dot com>
- Date: 30 Dec 2000 22:19:20 -0800
I'm trying to build gcj+libgcj out of cvs (on Red Hat 7).
It is failing compiling natClip.cc because it cannot find
the include file <vector>.
/home/bothner/GNU/linux-gcc/gcc/g++ -B/home/bothner/GNU/linux-gcc/gcc/ -nostdinc++ -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libstdc++-v3/src -L/home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/bothner/GNU/linux/i686-pc-linux-gnu/bin/ -B/home/bothner/GNU/linux/i686-pc-linux-gnu/lib/ -isystem /home/bothner/GNU/linux/i686-pc-linux-gnu/include -DHAVE_CONFIG_H -I. -I/home/bothner/GNU/egcs/libjava -I./include -I/home/bothner/GNU/egcs/libjava -Iinclude -I/home/bothner/GNU/egcs/libjava/include -I/home/bothner/GNU/egcs/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/home/bothner/GNU/egcs/libjava/libltdl -I/home/bothner/GNU/egcs/libjava/libltdl -I/home/bothner/GNU/egcs/libjava/../gcc -I/home/bothner/GNU/egcs/libjava/../include -I/home/bothner/GNU/egcs/libjava/../zlib -I/home/bothner/GNU/egcs/libjava/../libffi/include -I../libffi/include -fno-rtti -fvtable-thunks!
-fasynchronous-exceptions -fdollars-in-identifiers -D__NO_MATH_INLINES -ffloat-store -W -Wall -D_GNU_SOURCE -g -O2 -fvtable-thunks -D_GNU_SOURCE -Wp,-MD,.deps/natClip.pp -c /home/bothner/GNU/egcs/libjava/gnu/gcj/xlib/natClip.cc -fPIC -DPIC -o gnu/gcj/xlib/.libs/natClip.o
/home/bothner/GNU/egcs/libjava/gnu/gcj/xlib/natClip.cc:15:20: vector.h: No such file or directory
The problem seems to be that there is no -I option that points to the
proper libstdc++-v3/include/std directory.
Unfortunately adding yet more include options (and we would need *all*
the directories containing G++ include files we might be using) makes
for a very tedious command line. Perhaps we should consider creating
a work-gcc+ shell script that does something like:
$BUILDTOP=...
$SRCTOP=...
$BUILDTOP/gcc/g++ -B$BUILDTOP/gcc/ -nostdinc++ "$@" -I$SRCTOP/libstdc++-v3/include/std ...
This script should perhaps be created in the libstdc++-v3 directory,
and used to build libstdc++ as well as libjava. (If people like the
idea, we should of course bring it up on the general gcc list.)
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/