This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: gcj segfaults on i686/x86_64-apple-darwin*


On Fri, Nov 13, 2009 at 12:17:45AM +0100, Andreas Tobler wrote:
>
> The patchlet I posted in the 41991 PR does allow me to compile a java  
> file into a class file and execute it with gij. Also the same for java  
> to binary compile. This was not the case before. I went back to Jan 31  
> 09 and I always got an Abort with ecj1.
>
> Note beside, I always installed the built gcc and tested the installed  
> binaries.
>
> [deuterium:~] andreast% gcj -C hello.java
> [deuterium:~] andreast% gij hello
> Hello World
> Hello Andreas
>
> [deuterium:~] andreast% gcj --main=testme -O testme.java
> [deuterium:~] andreast% ./a.out
> Hello
>
> [deuterium:~] andreast% gcj -v
> Using built-in specs.
> Reading specs from  
> /Volumes/development/gcc/head/testbin-x86_64/lib/gcc/x86_64-apple-darwin9/4.5.0/../../../libgcj.spec
>  rename spec startfile to startfileorig
> rename spec lib to liborig
> COLLECT_GCC=gcj
> COLLECT_LTO_WRAPPER=/Volumes/development/gcc/head/testbin-x86_64/libexec/gcc/x86_64-apple-darwin9/4.5.0/lto-wrapper
> Target: x86_64-apple-darwin9
> Configured with: /Volumes/development/gcc/head/gcc/configure  
> --prefix=/Volumes/development/gcc/head/testbin-x86_64  
> --build=x86_64-apple-darwin9 --target=x86_64-apple-darwin9  
> --disable-static --with-gmp=/usr/local/x86_64  
> --with-mpfr=/usr/local/x86_64 --enable-java-awt=xlib  
> --enable-languages=c,c++,java
> Thread model: posix
> gcc version 4.5.0 20091111 (experimental) [trunk revision 153973] (GCC)
>
>
> I'll run some more tests.
>
> Andreas
>

Andreas,
   I'll try the proposed patch under x86_64-apple-darwin9 this weekend.
It wouldn't be a huge surprise if it worked as darwin10 has subsumed
libgcc into libSystem. Thus under darwin10, the system unwinder is
always in use (rather that the one in FSF libgcc as is the case under darwin9).
              Jack


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