This is the mail archive of the java-discuss@sourceware.cygnus.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: Starting with gcj - having problems


Heiko Nardmann wrote:
> Now I can compile it! All the gcc-2.95.2 stuff is installed in
> /usr/opt/gcc-2.95.2.
> So I use
> 1) '../configure --enable-threads=posix --enable-gc=boehm
                                          ^^^^^^^^^^^^^^^^^
That should be "--enable-java-gc=boehm".  But it probably didn't make a
difference... boehm is used by default in libgcj, so you don't even have
to mention it on the "configure" line.

> 2) make
> 3) make install
> Is this ok?

Yes.

> Now calling gcj with the test file still results in the same error
> messages.

What were the error messages?  You mean complaining about libgcj.spec? 
Make sure the file /usr/opt/gcc-2.95.2/lib/libgcj.spec exists.  If not,
libgcj may not have built properly.

One thing the FAQ may or may not mention is that gcj must be in your
PATH before you attempt to build libgcj (I sometimes forget this
myself).

> '../configure --help' did not give any explanation about enable-threads
> or enable-gc.

The help messages ought to be fixed.  Perhaps we should file a bug in
gnats?

> What does this mean? Which alternatives do I have?

For now, posix threads and boehm gc are the only viable options.  You
can disable them, but that only results in a crippled libgcj, since Java
requires threads and GC.

-- 
Jeff Sturm
jsturm@sigma6.com

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