This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
libgcj cross-compilation problems (2)
- To: java-discuss at sourceware dot cygnus dot com
- Subject: libgcj cross-compilation problems (2)
- From: Chris Dornan <cdornan at arm dot com>
- Date: Thu, 20 Apr 2000 12:31:26 +0100 (BST)
Hi Folks,
[As I said in the previous mail message, having successfull compiled
gcc/g++/gcj and libgcj, native, for Solaris 2.7, and having
successfully cross-compiled gcc/g++/gcj for arm-elf, I am now trying
to cross-compile libgcj for arm-elf. I am using a patched gcc-2.95.2
and patched libgcj-2000-03-02.]
The build breaks down:
make[3]: Entering directory `/export/home/cdornan/libgcj-2000-03-02-arm/arm-elf/libjava'
javac="`cd ../../gcc && pwd`/gcj -B`cd ../../gcc && pwd`/ -C"; \
$javac -g -L/export/home/cdornan/libgcj-2000-03-02-arm/arm-elf/libjava -classpath /export/home/cdornan/libgcj-2000-03-02-arm/arm-elf/libjava:`cd ../../../libgcj-2000-03-02/libjava && /bin/pwd` \
-d /export/home/cdornan/libgcj-2000-03-02-arm/arm-elf/libjava java/lang/ConcreteProcess.java
/bin/sh: ../../gcc: does not exist
/bin/sh: ../../gcc: does not exist
/bin/sh: /gcj: not found
It seems to be trying to access gcj directly in the build tree, but I
am building libgcj outside of the gcc build tree. To get things
moving, I hand modified the make file so that it will run the
installed arm-elf-gcj and arm-elf-gcjh, but it breaks down:
In file included from ../../../libgcj-2000-03-02/libjava/include/jvm.h:25,
from ../../../libgcj-2000-03-02/libjava/prims.cc:24:
../../../libgcj-2000-03-02/libjava/gcj/field.h:15: java/lang/reflect/Field.h: No such file or directory
../../../libgcj-2000-03-02/libjava/prims.cc:37: java/lang/Runtime.h: No such file or directory
and reports that it cannot find a whole pile of other header files. I
cannot find these header files anywhere in either the libgcj sources
or the gcc/g++/gcj sources.
Can anyone see what is happening?
Chris Dornan
cdornan@arm.com