Re: PR16923

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Jack Howarth wrote:
>    I am trying to debug the failure of PR16923 on darwin at -m64 a bit further,
> however I can't seem to get this testcase to work outside of the build system
> (using the installed compiler). The libjava log shows for instance...
> 
> Executing on host: /sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/gcc/ /sw/src/fink.build/g
> cc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni/invocation/PR16923.c   -bind_at_load -multiply_defined suppress -I. -I.. -I/sw/src/fink.build/gcc4
> 4-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/libjava.jni -I/sw/src/fink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../include -I/sw/src/f
> ink.build/gcc44-4.3.999-20090218/gcc-4.4-20090218/libjava/testsuite/../classpath/include -fdollars-in-identifiers -L/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_ob
> jdir/i686-apple-darwin9/./libjava/.libs -ljvm -shared-libgcc -lgcj -liconv  -lm   -m32 -o PR16923    (timeout = 300)
> PASS: PR16923.c compilation
> set_ld_library_path_env_vars: ld_library_path=.:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs
> Setting LD_LIBRARY_PATH to .:/sw/src/fink.build/gcc44-4.3.999-20090218/darwin_objdir/i686-apple-darwin9/./libjava/.libs:.:/sw/src/fink.build/gcc44-4.3.999-20090218/dar
> win_objdir/i686-apple-darwin9/./libjava/.libs:/usr/local/NMRPipe/xview/mac/lib:/usr/openwin/lib:/usr/local/NMRPipe/nmrbin.mac/lib:/usr/local/lib
> optionReceived
> PASS: PR16923 output
> 
> If I copy PR16923.c to a separate directory and compile it with the installed gcc trunk
> compiler using...
> 
> gcc-4 ./PR16923.c -bind_at_load -multiply_defined suppress -fdollars-in-identifiers -L/sw/lib/gcc4.4/lib -L/sw/lib/gcc4.4/lib/gcj-4.4.0-10 -ljvm -shared-libgcc -lgcj -liconv -lm -m32 -o PR16923
> 
> The compilation succeeds but when I try to run the test case, I get...
> 
> Assertion failed: (class_id), function main, file ./PR16923.c, line 35.
> Abort
> 
> What am I missing here with regards to running these testcases outside of the
> build directories? Thanks in advance for any help.

It's trying to load PR16923.class, so that file has to be in the CLASSPATH.

> ps I guess it would be too much to hope that one of the java developers has
> a Darwin machine now?

Err, what for?

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.