Compiling a native 1.4 with gcc 3.3 on FreeBSD 5-CURRENT

Peter Schuller peter.schuller at infidyne.com
Tue Nov 25 09:11:27 PST 2003


> > Yes - still having the same problem.
>
> I've just tested with -CURRENT as at 2003-11-18, and the jdk-1.4.2p5
> build completed without problems.
>
> I already had a native jdk14 with which to bootstrap.  Perhaps you're
> using the linux-sun-jdk14 package for your build?

I have blackdown 1.4.1 and sun 1.4.2 installed. I have not modified anything 
so it should be using the sun one by default if I'm not reading the Makefile 
incorrectly.

(On 4.9 the sun jdks wouldn't run for me though so I had to fiddle a bit and 
bootstrap with blackdown 1.4.1, which ended up working fine.)

But no, I don't have a previous version of the native JDK. This is the first 
time I have gotten around to trying to build the native version. Previously I 
have been too lazy to deal with the SCSL download procedure :)

> If not, then it may be a difference in -CURRENT.  I haven't upgraded
> to 5.2-BETA because that's horribly unstable on several fronts at the
> moment.  Once it's stabilized, I'll try the build again and let you know
> if I encounter the same problem.

Okay.

FYI, /usr/lib/libstdc++ definitely contains the __gxx_personality_v0 symbol on 
my machine (strings output), but the Linux compatibility libstdc++ libraries 
don't. Could it be that somehow the linker is finding the Linux compatibility 
library instead of the native one? Perhaps that's completely out of the 
question; I don't know enough about this to judge.

The compiler invokation that fails is this (line breaks added for E-Mail 
formatting):

/usr/bin/gcc -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -o 
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/unpack  
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/bytes.o  
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/bands.o  
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/coding.o  
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/unpack.o  
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/utils.o  
/usr/ports/java/jdk14/work/control/build/bsd-i586/tmp/sun.tools.unpack/obj/zip.o

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey at scode.org
E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org




More information about the freebsd-java mailing list