gcj cross compile.. libgcj.so missing.
Andrew Haley
aph@redhat.com
Tue May 31 17:44:00 GMT 2005
Tom Rathbone writes:
> Hi all,
>
> I just tried to compile a version (4.0.0) of gcc including gcj to
> target arm-unknown-linux-gnu. I used crosstool to build the toolchain
> and everything seemed to go well.. no errors. However when I try to
> compile HelloWorld.java I get the error:
>
> # arm-unknown-linux-gnu-gcj HelloWorld.java -o HelloWorld
> /home/tom/toolchain4/arm-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.4/lib/gcc/arm-unknown-linux-gnu/4.0.0/../../../../arm-unknown-linux-gnu/bin/ld:
> cannot find -lgcj
> collect2: ld returned 1 exit status
>
> Looking in "gcc-4.0-20050305-glibc-2.3.4/arm-unknown-linux-gnu/lib/"
> I see that I have no libgcj.so but i do have a libgcj.spec
>
> I also have gcc-4.0-20050305-glibc-2.3.4/share/java/libgcj-4.0.0.jar.
>
> Where should I be finding libgcj.so?
>
> If i look at the build directory I can see a directory called .libs/
> (build-gcc/arm-unknown-linux-gnu/libjava/.libs) containing invalid
> links called libgcj.so and libgcj.so.6 pointing to libgcj.so.6.0.0
> which doesn't exist.. there is however a file called libgcj.so.6.0.0U
>
> If I update the links to point at this file and then compile with the
> -L library path pointing at this directory then I get the following
> error, I'm pretty sure this is totally the wrong but would like to
> know where things have gone wrong.
>
> Does anybody have any ideas as to why I have no libgcj?
Show us the output of the top-level gcc configure.
Andrew.
More information about the Java
mailing list