This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
cross compiling libgcj for powerpc-linux?
- To: java-discuss at sources dot redhat dot com
- Subject: cross compiling libgcj for powerpc-linux?
- From: "Mathias Kiss" <mathias_kiss at hotmail dot com>
- Date: Wed, 08 Nov 2000 13:11:19 CET
We are trying to cross build the gcj and libgcj for the powerpc target
and a i686-pc-linux host (Linux kernel 2.2.14)
Until now we have successfully built:
binutils-2.10
gcc-core-2.95.2
glibc-2.1.3 with glibc-2_1_3-ctype.patch,
glibc-crypt-2.1,glibc-linuxthreads-2.1.3
gcc-2.95.2 for c, c++ and java frontends
But we didn't succeed in building the libgcj-2.95.1 using our cross-compiler
for powerpc. Our questions are now:
- Can the libgcj-2.95.1 be built for a powerpc target (powerpc-linux /
powerpc-8xx-linux)?
Our target is RPXLite board with a Motorola MPC 823 PowerPC.
- Is ther any documentation for building the libgcj for a cross gcj
compiler?
We didn't find a solution neither in the cross-gcc FAQ's nor in the the news
groups.
-Which options are needed (--target=... / --host=.. )?
-Do we have to specify 'CC=powerpc-8xx-linux-gcc AR=powerpc-8xx-ar
AS=powerpc-8xx-as RANLIB=powerpc-8xx-linux-ranlib'?
- Should we run 'make all' or 'make bootstrap'? What does 'make bootstrap'
do?
We tried the following build steps for the libgcj.
CC=powerpc-8xx-linux-gcc AR=powerpc-8xx-ar AS=powerpc-8xx-as
RANLIB=powerpc-8xx-linux-ranlib /cross/src/libgcj-2.95.1/configure
--host=powerpc-8xx-linux --prefix=/cross/powerpc/target/powerpc-8xx-linux/
--target=powerpc-8xx-linux --enable-threads=posix --enable-shared
--enable-libstdcxx-v3
make all install
We got the following Error:
powerpc-8xx-linux-gcc -DLINUX_THREADS=1 -D_REENTRANT=1 -DSILENT=1
-DNO_SIGNALS=1
-DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I.
-I/cross/src/libgcj-2.95.1/boehm-gc
-I././targ-include -I/cross/src/libgcj-2.95.1/boehm-gc/./libc/include
-fno-built
in -g -O2 -c /cross/src/libgcj-2.95.1/boehm-gc/allchblk.c -o allchblk.o
In file included from /cross/src/libgcj-2.95.1/boehm-gc/allchblk.c:20:
/cross/src/libgcj-2.95.1/boehm-gc/gc_priv.h:469: parse error before `--'
make[1]: *** [allchblk.lo] Error 1
make[1]: Leaving directory
`/cross/powerpc/libgcj/powerpc-8xx-linux/boehm-gc'
make: *** [all-target-boehm-gc] Error 2
Any information would help us a lot.
Thanks in advance
Mathias Kiss,
Patrick Spiess
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.