This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re : Re : Re : can not find jc1 gcj or jvgenmain after gcc install
Hello,
I finally can compile a java file using GCJ ;) thanks Andrew ;)
it was exactly what Andrew said: the LD_LIBRARY_PATH environment variable
doesn't include the dir that contains libgcj_bc.so.1.
it is even not created, so I added it to other env variables and I added the
/usr/local2/lib to its value.
but is that normal ?
why should I create alone the variable and specify the path of libgcj_bc.so.1,
why gcc does not do everything alone when installing it ?
Asma
----- Message d'origine ----
De : Andrew Haley <aph@redhat.com>
À : charfi asma <charfiasma@yahoo.fr>
Cc : gcc-help@gcc.gnu.org
Envoyé le : Mar 14 septembre 2010, 18h 37min 26s
Objet : Re: Re : Re : can not find jc1 gcj or jvgenmain after gcc install
On 09/14/2010 05:16 PM, charfi asma wrote:
> Hello,
>
> I run the contrib/download_ecj and rebuilt the java fe
>
> this time I get this new error when calling : /usr/local2/bin/gcj -save-temps
> Hello.java --main=Hello -v 2>&1 | grep ecj
>
> /usr/local2/libexec/gcc/i686-pc-linux-gnu/4.5.1/ecj1 Hello.java -g1
> -fbootclasspath=./:/usr/local2/share/java/libgcj-4.5.1.jar -g1 -fsource=1.5
> -ftarget=1.5 -fzip-dependency Hello.zip -fzip-target Hello.jar
> /usr/local2/libexec/gcc/i686-pc-linux-gnu/4.5.1/ecj1: error while loading
>shared
>
> libraries: libgcj_bc.so.1: cannot open shared object file: No such file or
> directory
>
> I think that I did not well rebuild the libgcj, can you specify the
>instructions
>
> to do that ?
Try
ldd /usr/local2/libexec/gcc/i686-pc-linux-gnu/4.5.1/ecj1
LD_LIBRARY_PATH problems? Maybe LD_LIBRARY_PATH doesn't include the
dir that contains libgcj_bc.so.1?
Andrew.