gcj & libgcj
mark kimsal
chugadie.geo@yahoo.com
Fri Aug 18 10:58:00 GMT 2000
Andrew Haley wrote:
> mark kimsal writes:
> >
> > And when i compile the snapshot from 08-16 it installs fine, but when i
> > run it says
> > "can't find libgcj.spec"
> > or something similar. I have read all the faqs and docs, I have
> > searched the mailing list, and I did use the same
> > --prefix=/home/user/gcc for configuring gcc with java and libgcj.
>
> The fact that you've compiled and installed libgcj says that your gcj
> works. So, you need to give us more information.
>
That's just the thing, libgcj does not compile fine. The snapshot does not
give errors, but it also does not create a libgcj.spec file. 2.95.1 does give
errors during the make.
> I assume that in both the gcc directory and the libjava directory,
> you've configured then done a "make" and then a "make install".
>
In a seperate build dir as per the instructions, i ran config, make, and make
install for both gcc and libgcj
config for gcc was like --prefix=/home/user/gcc --with-gnu-as --with-gnu-ld
--enable-languages="java"
config for libgcj was like --prefix=/home/user/gcc
>
> I assume that gcj is in your path.
>
yes.
> So, when you try to do "gcj HelloWorld.java" or somesuch, please run
> the compiler with the "-v" option so we can see what the exact
> symptoms are. We need to see the output of that command.
>
gcj -v SomeJavaProg.java yields
Reading specs from /home/user/gcc/lib/gcc-lib/i686-pc-linux-gnu/specs
Reading specs from libgcj.spec
gcj: libgcj.spec no such file or directory
> Also, please have a look to see if libgcj.spec is anywhere in your
> /home/user/gcc tree.
>
locate libgcj.spec yields nothing
More information about the Java
mailing list