libjava issues with arm-linux-gcj from arm-linux-gcc 3.3.2
Andrew Haley
aph@redhat.com
Thu Aug 18 18:42:00 GMT 2005
Nathan M writes:
> On 8/17/05, Andrew Haley <aph@redhat.com> wrote:
> > Well, we don't know what changes they made, so we can't help with
> > that. For all I know there might be no changes at all.
>
> hmmm, I have no idea what changes they may have made either.
Is there any reason you can't just ask for the source?
> > In any case, gcc 3.3 is so old (May 2003) that it will be hard for us
> > to help you with it.
>
> gcc 3.3.2 is the only one supported by the manufacturer Compulab
> and the libraries that have been compiled for the system. Again
> this is an embedded system so I kind of want to stay with what's
> supported rather than try to update things like one would on a
> common x86 desktop platform.
So I see, right. Well, I can see that gcc 3.3.2 was configured with
../configure --target=arm-linux --disable-shared --with-headers=/home/gerg/new-wave.xscale/linux-2.4.x/include --with-gnu-as --with-gnu-ld --enable-multilib
and if you want to build libgcj it you'll need to do the same, with
the same compiler sources.
> Also I think I may have given some mis-information earlier in this
> thread. I think I stated that libjava was included with my
> arm-linux-gcc 3.3.2 toolchain from compulab and that it wasn't
> compiled. I just realized that it isn't and that I had obtained a
> standard copy of libjava 3.3.2 seperately from the gcc site (that's
> what I had been trying to compile [still unsuccessful]).
Right, becaue you have to compile it as part of the toolchain.
AFAICS there's nothing to stop you from downloading the source of gcc
3.3.2, installing the headers from linux somewhere, and running
configure as above. That should beuild the lot.
> Therefore my arm-linux-gcc 3.3.2 toolchain includes arm-linux-gcj
> in it's /bin section however there is no libjava binaries or source
> in the package. So somehow I still need to find and obtain a copy
> of libjava/java.lang compatible with Compulab's arm-linux, assuming
> such a package actually exists. Is libjava/java.lang typically
> platform specific?
Yes.
> My guess is that the same libjava/java.lang files would be
> compatible regardless of whether you're using gcj or arm-linux-gcj?
> In that case the standard libjava from gcc-3.3.2 would suffice if
> only I could get it to configure and compile.
I'd build the lot.
Andrew.
More information about the Java
mailing list