Building libgcj outside of GCC tree?

Colin Fleming colin.mailinglist@gmail.com
Sat Jul 7 18:51:00 GMT 2007


Sorry, replying to my own message here, here's how far I've got: I
managed to build GCC trunk (from a few days back) with the
--disable-libgcj flag, but it doesn't seem to install ecj1 or ecj.jar.
Should it?

I also tried building libgcj outside the main tree, without much luck.
I had to add the include directories from the libgc and libffi build
output directories (from GCC) to my include path. I then get the
compile error below - any help appreciated.

Cheers,
Colin

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../gcc-trunk/libjava
-I./include -I./gcj -I../gcc-trunk/libjava -Iinclude
-I../gcc-trunk/libjava/include
-I../gcc-trunk/libjava/classpath/include -Iclasspath/include
-I../gcc-trunk/libjava/classpath/native/fdlibm
-I../gcc-trunk/libjava/../boehm-gc/include -I../boehm-gc/include
-I../gcc-trunk/libjava/libltdl -I../gcc-trunk/libjava/libltdl
-I../gcc-trunk/libjava/.././libjava/../gcc
-I../gcc-trunk/libjava/../zlib
-I../gcc-trunk/libjava/../libffi/include -I../libffi/include -fPIC
-I../gcc-trunk/gcc-build/i386-apple-darwin8.10.1/boehm-gc/include
-I../gcc-trunk/gcc-build/i386-apple-darwin8.10.1/libffi/include
-fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum
-D_FILE_OFFSET_BITS=64 -ffloat-store -fomit-frame-pointer -Usun
-Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local/gcc-trunk\"
-DTOOLEXECLIBDIR=\"/usr/local/gcc-trunk/lib\"
-DJAVA_HOME=\"/usr/local/gcc-trunk\"
-DBOOT_CLASS_PATH=\"/usr/local/gcc-trunk/share/java/libgcj-4.3.0.jar\"
-DJAVA_EXT_DIRS=\"/usr/local/gcc-trunk/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/local/gcc-trunk/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/usr/local/gcc-trunk/lib/gcj-4.3.0\"
-DPATH_SEPARATOR=\":\"
-DECJ_JAR_FILE=\"/usr/local/gcc-trunk/share/java/ecj.jar\"
-DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/gcc-trunk/lib/gcj-4.3.0/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.3.0/classmap.db\" -Os -g
-fPIC -MT prims.lo -MD -MP -MF .deps/prims.Tpo -c
../gcc-trunk/libjava/prims.cc  -fno-common -DPIC -o .libs/prims.o
../gcc-trunk/libjava/java/lang/Class.h:572: error: 'jstring' is not a
class or namespace
../gcc-trunk/libjava/java/lang/Class.h:572: error: ISO C++ forbids
declaration of '_Jv_GetInterpClassSourceFile' with no type
make[1]: *** [prims.lo] Error 1
make: *** [all-recursive] Error 1



More information about the Java mailing list