This is the mail archive of the java-prs@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: libgcj/60


The following reply was made to PR libgcj/60; it has been noted by GNATS.

From: Kevin Hendricks <khendricks@ivey.uwo.ca>
To: tromey@cygnus.com, java-gnats@sourceware.cygnus.com,
        khendricks@ivey.uwo.ca, tromey@cygnus.com
Cc:  
Subject: Re: libgcj/60
Date: Thu, 4 Nov 1999 14:38:27 -0500

 Hi,
 
 As requested, I have downloaded the 11-04 snapshot.
 
 There are numerous problems in the build:
 
 Does anyone ever build these snapshots on Linux or Linux PPC?
 
 -  in libffi/powerpc/sysv.S you need to change
    #include <powerpc/asm.h> 
 to
    #include "asm.h"
 
 - in libjava/include/  java-array.h is missing but it is referenced by
 java/lang/String.h , etc
   (to work around this I made a sym link to ../gcj/array.h  (is this right?)
 
 - for some reason the powerpc builds are defaulting to msoft-float even if I
 specify not to in configure
 
 - in boehm-gc/misc.c thre is a reference to GC_init_linuxppc() which  used to
 exist in os_dep.c but does not anymore.  I didn't know whether to copy it out
 of an old os_dep.c or simply comment it out.  I commented it out (is that
 right?)
 
 - after installation you can get a message about a malformed spec file after
 216 characters.  I tracked this down to the very last line of libgcj.spec which
 simply has jc1: and nothing else.  I simply removed the jc1: and then these
 error messages went away.
 
 So I finally had something to test:
 
 - gcj -C Hello.java works fine
 
 - gcj -fassume-compiled -c Hello.java works fine
 
  - gcj  -oHello.exe --main=Hello Hello.java will complete but when run comes
 back with the exact same error message as the earlier libgcj did, namely:
 
 Program received signal SIGSEGV in GC_mark_from_mark_stack() in
 boehm-gc/mark.c: 161
 
 - gcj -static -oHello.exe --main=Hello Hello.java  
 used to work in libgcj for gcc 2.95.1 but it errors out with the following
 message under the snapshot.
 
 /usr/lib/libc.a(brk.o): In function `brk':
 brk.o(.text+0x16): relocation truncated to fit: R_PPC_SDAREL16 __curbrk
 collect2: ld returned 1 exit status (problem in glibc?)
 
 - gcj -oHello.exe /usr/lib/libgcj.a /usr/lib/libzgcj.a /usr/lib/libgcjgc
 Hello.java
 will build but when run will segfault and die in the same place in
 GC_mark_from_mark_stack().
 
 
 So needless to say, things are not very pretty for gcj on ppc.
 
 Please let me know once you get the other build issues ironed out and I woulod
 be happy to try again.
 
 Kevin
 
 
 

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