This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/43086] PR16923 fails with Assertion failed: (class_id)
- From: "mrs at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Apr 2010 18:39:29 -0000
- Subject: [Bug java/43086] PR16923 fails with Assertion failed: (class_id)
- References: <bug-43086-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from mrs at gcc dot gnu dot org 2010-04-21 18:39 -------
When I run it by hand, I get:
$ /Users/mrs/net/gcc-java/gcc/xgcc -B/Users/mrs/net/gcc-java/gcc/
/Users/mrs/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.c
-bind_at_load -multiply_defined suppress -I. -I..
-I/Users/mrs/net/gcc/libjava/testsuite/libjava.jni
-I/Users/mrs/net/gcc/libjava/testsuite/../include
-I/Users/mrs/net/gcc/libjava/testsuite/../classpath/include
-fdollars-in-identifiers
-L/Users/mrs/net/gcc-java/x86_64-apple-darwin10/./libjava/.libs -ljvm
-shared-libgcc -ldl -lgcj -L/opt/local/lib -liconv -lm -o PR16923
$ export
CLASSPATH=~/net/gcc/libjava/testsuite/libjava.jni/invocation/PR16923.jar
$ DYLD_LIBRARY_PATH=../.libs:../../libgcc:/opt/local/lib ./PR16923
optionReceived
on x86_64-apple-darwin10 so this would be just a simple matter of ensuring the
setting of DYLD_LIBRARY_PATH, CLASSPATH and compiling with -L/opt/local/lib. I
suspect DYLD_LIBRARY_PATH and CLASSPATH are already correct. I'm hoping you
can confirm this incantation works for you.
I've filed PR43839 that covers getting -L added, which I hope resolves this
issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43086