This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
3.3.1 GCJ Cross compiler configuration issues
- From: "Peter Blemel" <pblemel at hotmail dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Wed, 07 Apr 2004 10:15:28 -0600
- Subject: 3.3.1 GCJ Cross compiler configuration issues
- Bcc:
Hello World!
I've been porting gcj and libgcj/libjava as a cross compiler for a powerpc
embedded sysem (running a proprietary RTOS). There are a couple of
configuration issues that I humbly suggest could be changed in the
configuration. I am looking for concurrence before I make an attempt at
submitting a patch. Granted I'm a couple of builds behind, but 3.3.1 is
what the rest of the team is using so I'm working with it too.
o The libjava/configure.host script sets up the build based on the host
configuration (as you'd expect, given it's name). The "problem" is that
it's really configuring the library for the target, not the host.
Given that, the case statements case "${host}" ... need to be case
"${target}".
o It appears as tho the only 'active' port to powerpc is Darwin, and the
various configuraton case statements all assume that powerpc*-* ==
powerpc*-*-darwin. I'd like to refine that so my powerpc-motorola-elf
build can have it's own configuration cases. I.e. At this point I can't
support the interpreter (perhaps when I get further down the road).
o configure.in setc GCC_UNWIND_INCLUDE to the GCC source tree by default but
then goes on to (basically) clear the definition for cross compiler builds.
The problem is that exception.cc is still included in the cross compiler
build, and it requires unwind-pe.h from the GCC include directory. The
'undef' statement in fact has a comment questioning the need to clear the
definition. If the intent was to omit exception.cc then the change lies
there. Otherwise, this statement needs to be removed from the
configuration.
At this point I am still building and haven't actually gotten things to run
on my target, but I'm making good progress. Thanks to everyone who's
helped make GCJ a possibility for our team!
Peter
_________________________________________________________________
Get rid of annoying pop-up ads with the new MSN Toolbar ? FREE!
http://toolbar.msn.com/go/onm00200414ave/direct/01/