testsuite problems on darwin was: [patch] HAVE_LC_MESSAGES for natSystem.cc

Tom Tromey tromey@redhat.com
Wed Jan 16 11:29:00 GMT 2002


>>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:

Andreas> I don't build shared and the -shared flag.
Andreas> I do this on the commandline:
Andreas> [titanium:powerpc-apple-darwin5.2/libjava/testsuite] andreast%
Andreas> /Volumes/xufs/gccsrc/objdir/gcc/xgcc -B/Volumes/xufs/gccsrc/objdir/gcc/
Andreas> ../../../../gcc/libjava/testsuite/libjava.jni/calls.c -I. -I..
Andreas> -I../../../../gcc/libjava/testsuite/../include -lm -o libcalls.o
Andreas> /usr/bin/ld: Undefined symbols:
Andreas> _main
Andreas> collect2: ld returned 1 exit status
I think this doesn't make sense unless you're trying to build shared.
The JNI tests work by compiling the native (JNI) code into a shared
library, which is then loaded at runtime. You could try adding `-c'
to the above command line so that gcc doesn't try to link. Maybe that
would help. Then you would link the resulting .o directly into the
executable. That might work; I haven't tried it. Anyway the test
suite isn't set up for this.
Andreas> FAIL: Array_1 compilation from source
Andreas> ERROR: No `main' given in program Array_1
Andreas> ERROR: No `main' given in program Array_1
Andreas> ERROR: No `main' given in program Array_2
Andreas> ERROR: No `main' given in program Array_2
Andreas> ERROR: No `main' given in program Array_3
Andreas> ERROR: No `main' given in program Array_3
Try building "hello world" yourself from the command line.
Don't bother with the test suite until you know gcj is working at
least a little bit.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /