On 07/16/2010 12:58 PM, Dmitrijs Ledkovs wrote:
Is it supported to build java without gc?
I don't think so. Even if it were, it wouldn't be very useful.
Probably a better use of time would be to fix whatever problem is
keeping the GC from working for you.
David Daney
Tried with 4.4 ubuntu
patched sources and gcc trunk svn 162241.
I have only found references with gcc 3.2 with similar attempts.
I want this to build a java cross-compiler to x86_64-w64-mingw32 and
current boehm-gc from gcc sources fails to compile for that.
The example below is the minimal native build which also fails exactly the same.
Building like so:
$ ../gcc/configure --enable-languages=java --enable-java-gc=no
Fails like so:
libtool: compile: /home/tdlk/src/bzr-mirrors/build-162241/./gcc/xgcc
-shared-libgcc -B/home/tdlk/src/bzr-mirrors/build-162241/./gcc
-nostdinc++ -L/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/local/i686-pc-linux-gnu/bin/
-B/usr/local/i686-pc-linux-gnu/lib/ -isystem
/usr/local/i686-pc-linux-gnu/include -isystem
/usr/local/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc/libjava -I./include -I./gcj -I../../../gcc/libjava
-Iinclude -I../../../gcc/libjava/include
-I../../../gcc/libjava/classpath/include -Iclasspath/include
-I../../../gcc/libjava/classpath/native/fdlibm
-I../../../gcc/libjava/libltdl -I../../../gcc/libjava/libltdl
-I../../../gcc/libjava/.././libjava/../gcc
-I../../../gcc/libjava/../zlib
-I../../../gcc/libjava/../libffi/include -I../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\"
-DTOOLEXECLIBDIR=\"/usr/local/lib\" -DJAVA_HOME=\"/usr/local\"
-DBOOT_CLASS_PATH=\"/usr/local/share/java/libgcj-4.6.0.jar\"
-DJAVA_EXT_DIRS=\"/usr/local/share/java/ext\"
-DGCJ_ENDORSED_DIRS=\"/usr/local/share/java/gcj-endorsed\"
-DGCJ_VERSIONED_LIBDIR=\"/usr/local/lib/gcj-4.6.0-12\"
-DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\"
-DLIBGCJ_DEFAULT_DATABASE=\"/usr/local/lib/gcj-4.6.0-12/classmap.db\"
-DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.6.0-12/classmap.db\" -g
-O2 -D_GNU_SOURCE -MT link.lo -MD -MP -MF .deps/link.Tpo -c
../../../gcc/libjava/link.cc -fPIC -DPIC -o .libs/link.o
../../../gcc/libjava/link.cc:29:16: fatal error: gc.h: No such file or directory
compilation terminated.
make[3]: *** [link.lo] Error 1
make[3]: Leaving directory
`/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/tdlk/src/bzr-mirrors/build-162241/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/tdlk/src/bzr-mirrors/build-162241'
make: *** [all] Error 2