This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Re: Enable libgcj for Linux targets
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: Enable libgcj for Linux targets
- From: Rod Stewart <stewart at lab43 dot org>
- Date: Mon, 22 Jan 2001 18:09:40 -0500 (EST)
- cc: gcc-patches at gcc dot gnu dot org, java-patches at sources dot redhat dot com
On Mon, 22 Jan 2001, Bryce McKinlay wrote:
> Now that the V3 ABI is supported by Java, libgcj should build and work
> out-of-the-box on most linux platforms, at least.
>
> This patch removes libgcj from linux $noconfigdirs so that it will be
> built by default when GCC is configured with
> "--enable-languages=java,...". Hopefully this can also be done for other
> platforms once some build portability issues are resolved.
So I have to specify the above to get java to build? Well not on ARM
GNU/Linux, it decided to try to build the java stuff. Is there an
exclusive configure option to tell it not to build java? Something like
--disable-language=java,...
I also needed the following patch, not certain if this is completely
correct:
[build@feynman gcc]$ cvs diff -up boehm-gc/gcconfig.h
Index: boehm-gc/gcconfig.h
===================================================================
RCS file: /cvs/gcc/egcs/boehm-gc/gcconfig.h,v
retrieving revision 1.15
diff -u -p -r1.15 gcconfig.h
--- gcconfig.h 2000/12/10 22:57:37 1.15
+++ gcconfig.h 2001/01/22 22:56:19
@@ -166,7 +166,7 @@
# define SPARC
# define mach_type_known
# endif
-# if defined(LINUX) && defined(arm)
+# if defined(LINUX) && defined(__arm__)
# define ARM32
# define mach_type_known
# endif
Then it failed with the following:
make[2]: Entering directory
`/home/build/bb/obj-gcc-20010122/armv3l-unknown-linux-gnu/libjava'
/bin/sh ./libtool --mode=compile /home/build/bb/obj-gcc-20010122/gcc/g++
-B/home/build/bb/obj-gcc-20010122/gcc/ -nostdinc++ -nostdinc++
-I/home/build/bb/gcc/libstdc++-v3/include
-I/home/build/bb/gcc/libstdc++-v3/include/std
-I/home/build/bb/gcc/libstdc++-v3/include/c_std
-I/home/build/bb/obj-gcc-20010122/armv3l-unknown-linux-gnu/libstdc++-v3/include
-I/home/build/bb/gcc/libstdc++-v3/libsupc++
-I/home/build/bb/obj-gcc-20010122/armv3l-unknown-linux-gnu/libstdc++-v3/libio
-I/home/build/bb/gcc/libstdc++-v3/libio
-I/home/build/bb/gcc/libstdc++-v3/libmath
-L/home/build/bb/obj-gcc-20010122/armv3l-unknown-linux-gnu/libstdc++-v3/src
-L/home/build/bb/obj-gcc-20010122/armv3l-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/usr/local/armv3l-unknown-linux-gnu/bin/
-B/usr/local/armv3l-unknown-linux-gnu/lib/ -isystem
/usr/local/armv3l-unknown-linux-gnu/include -DHAVE_CONFIG_H
-I. -I../../../gcc/libjava -I./include -I../../../gcc/libjava -Iinclude
-I../../../gcc/libjava/include -I../../../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../../../gcc/libjava/libltdl -I../../../gcc/libjava/libltdl
-I../../../gcc/libjava/../gcc -I../../../gcc/libjava/../include
-I../../../gcc/libjava/../zlib -I../../../gcc/libjava/../libffi/include
-I../libffi/include -fno-rtti -fvtable-thunks -fasynchronous-exceptions
-fdollars-in-identifiers -fsjlj-exceptions -W -Wall -D_GNU_SOURCE -g -O2
-fvtable-thunks -D_GNU_SOURCE -c ../../../gcc/libjava/prims.cc
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[2]: *** [prims.lo] Error 1
Thanks,
-Rms