OpenJDK zero on sparc linux
Gary Benson
gbenson at redhat.com
Fri Apr 4 01:27:46 PDT 2008
Hi Dennis,
The real error is above this one -- it failed to build libjvm.so with
a load of "relocation truncated to fit" errors. If you look in
openjdk-ecj/hotspot/build/linux/makefiles/gcc.make you'll see a bit
like this:
# position-independent code
ifneq ($(filter ppc ppc64,$(ZERO_LIBARCH)),)
PICFLAG = -fPIC
else
PICFLAG = -fpic
endif
Add "sparc" to that list, then
rm -Rf openjdk-ecj/control/build/linux-*/hotspot to clear out the
broken files, then try again. If that works I'll commit a fix.
Cheers,
Gary
Dennis Gilmore wrote:
> Trying to build openJDK on sparc linux using the zero implementation fails
> with
> gcc -g -c -o launcher.o
> launcher.c -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/os/linux/launcher -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/prims -DFULL_VERSION=\"1.6.0-b08\" -DARCH=\"sparc\"-DGAMMA -DLAUNCHER_TYPE=\"gamma\" -DLINK_INTO_LIBJVM -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO -DSPARC -DZERO_LIBARCH=\"sparc\" -DPRODUCT -I. -I../generated/adfiles -I../generated/jvmtifiles -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/asm -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/c1 -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/ci -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/classfile -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/code -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/compiler -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/gc_implementation -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/gc_implementation/shared -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/gc_implementation/parNew -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/gc_implementation/parallelScavenge -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/gc_implementation/concurrentMarkSweep -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/gc_interface -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/interpreter -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/memory -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/oops -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/prims -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/runtime -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/services -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/share/vm/utilities -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/cpu/zero/vm -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/os/linux/vm -I/builddir/build/BUILD/icedtea6-1.0/openjdk-ecj/hotspot/src/os_cpu/linux_zero/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"1.6.0-b08\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"mockbuild\"" -DJRE_RELEASE_VERSION="\"1.6.0-b08\"" -DHOTSPOT_VM_DISTRO="\"OpenJDK\""
> { \
> echo Linking launcher...; \
> \
> gcc -Xlinker -O1 -export-dynamic -L `pwd` -o gamma
> launcher.o -ljvm -lm -ldl -lpthread; \
> \
> }
> Linking launcher...
> /usr/bin/ld: cannot find -ljvm
>
> earlier in the build its able to find jvm to link against
>
> Full build log is http://files.ausil.us/aurora/openjdk-build.log
> spec file is http://files.ausil.us/aurora/java-1.6.0-openjdk.spec
>
> Dennis
>
> p.s. im not subscribed to this list so please CC me on replies
--
http://gbenson.net/
More information about the distro-pkg-dev
mailing list