Q : Initial problems
Mart Käsper
mart@netsoftlund.se
Wed Jul 26 01:43:00 GMT 2000
Hi,
as a newbie in the GCJ area, I've run into some initial stuff that I
haven't been able to resolve from FAQ/mail-lists/etc - I'm sure the
solution lies in front of me, please guide me ...
My environment is Solaris 2.6 (SPARC) and Red Hat 6.0 (yes - same
behaviour on both platforms), GCC 2.95.2. JDK used is 1.2.1 on Sun,
1.1.7v3 on RedHat.
* when running gcj, it complains about not being able to read the
specs at /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 in
the file libgcj.spec. I had to create a link named so pointing to
specs (in the same directory). Obviously there is something fishy
already here, isn't it ?
* how does cgj know where to fetch the JDK-originated symbols from ?
Should I compile the JDK runtime classes at first, or what ? I tried
just to include the runtime jar to the classpath while compiling :
gcj -o st --classpath=.:<jdk path>/rt.jar --main=Test Test.java
but it only resulted in a lot of linking problems (mostly JDK
related).
* On Solaris, I've tried both ready-built binaries and built-from-src,
but gotten neither to work properly.
My built from source variant created a binary OK, but running it
produces a core dump (apparently something with the initial creation
of static variables, according to adb).
Where should I start ?
======================================================================
Mart Käsper E-mail : mart@netsoftlund.se
Netsoft Lund AB
Bredgatan 17 Tel (in place) : +46 46 19 04 95
S-222 21 Lund, Sweden Tel (on the road) : 070 / 319 04 95
======================================================================
#include <std.disclaimer>
======================================================================
Lisa, du och dina historier: Bart är en vampyr, öl
dödar hjärnceller. Nu gÃÂ¥r vi tillbaks till... den där
... byggnads...saken... där vÃÂ¥ra sängar och TV... är.
-- Homer Simpson
More information about the Java
mailing list