This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cross compiling libgcj for powerpc-linux?


>>>>> "Mathias" == Mathias Kiss <mathias_kiss@hotmail.com> writes:

Mathias> - Can the libgcj-2.95.1 be built for a powerpc target
Mathias> (powerpc-linux / powerpc-8xx-linux)?

I don't know about 2.95.1 in this situation.

I have successfully cross-built libgcj, for a MIPS target.
I've also successfully built libgcj (not 2.95.1 but a more recent
version) for the PPC (native PPC Linux build).

So I'd imagine it is possible, though some small amount of configure
hacking might be required.

Mathias> - Is ther any documentation for building the libgcj for a
Mathias> cross gcj compiler?

Nope :-(

Luckily, though, it is just like cross-building anything else.  Just
configure libgcj the same way you configured your cross-gcc.

Mathias> -Which options are needed (--target=... / --host=.. )?

Just like gcc.

Mathias> -Do we have to specify 'CC=powerpc-8xx-linux-gcc
Mathias> AR=powerpc-8xx-ar AS=powerpc-8xx-as
Mathias> RANLIB=powerpc-8xx-linux-ranlib'?

Nope, configure will do this for you.

Mathias> - Should we run 'make all' or 'make bootstrap'? What does
Mathias> 'make bootstrap' do?

`bootstrap' is only used by gcc builds.  Don't use it for libgcj.

Mathias> /cross/src/libgcj-2.95.1/boehm-gc/gc_priv.h:469: parse error before `--'

I don't think libgcj 2.95.1 worked on PPC at all.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]