OpenJDK zero on sparc linux
seb at frankengul.org
seb at frankengul.org
Mon Apr 7 06:21:24 PDT 2008
On Mon, Apr 07, 2008 at 11:23:17AM +0100, Gary Benson wrote:
> Sébastien Bernard wrote:
> > This turn to be some problem with the arch.
> > Sometimes, the path is build with sparc, sometimes , with
> > sparc64. While some libs are build in sparc, the link are done with
> > the other, thus leading to some not found syndrom.
> > Next, I rebuild using sparc32 ./configure.
> > Everything went smooth until it tried to execute the recently build
> > j2re and j2dk.
> > Execution aborts immediately, with a SIGABORT. I don't really know
> > why but I think it's related to the default compiler.
> > I run an unstable debian and the compiler used is the gcc-4.3, idem
> > for g++ and gcj.
>
> This is probably a multilib issue. What does your uname -m say
> normally, and what does it say when you use sparc32?
Can you elaborate ?
uname -m says sparc64
sparc32 uname -m says sparc
I saw a lot of `uname -m` in the Makefiles.
It would be much easier to get the ARCH once and for all in the configure script.
On hppa, I tricked the build with a uname script which returns hppa.
Unfortunately, I'm unable to trick the build into using gcc-4.1 instead of gcc.
Even passing gcc-4.1 as CC works with the configure script but is ignored when building
the interpreter.
I could do the same trick as the uname ie a gcc shell script than invokes the right command.
I'll try tonight (gmt+1) to check if the output is correct as gcc-4.3 is known to have some known
regressions.
>
> > I tried to build the jdk on hppa too and it fails miserable for
> > the same reason than sparc (uname -m gives hppa64, but userland
> > is 32bit).
>
> Hmmm, that sounds broken. Can you post the output from ./configure
> for that one?
The plain output of configure ?
I'm joining the output.
It says everithing is ok but the zero_platform is set to
Makefile:ZERO_ARCHDEF = PARISC64
platform_zero:sysdefs = -DLINUX -D_GNU_SOURCE -DCC_INTERP -DZERO -DPARISC64 -DZERO_LIBARCH=\"parisc64\"
There is no hppa64 in userland. Only the kernel is built this way with a special cross-compile toolchain.
>
> Cheers,
> Gary
>
> --
> http://gbenson.net/
-------------- next part --------------
seb at hpnux:~/icedtea6$ ./configure --with-gcj-home=/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0 --with-libgcj-jar=/usr//share/java/libgcj-4.2.jar --prefix=/usr/local/icedtea --with-jar=gjar-4.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... hppa2.0-unknown-linux-gnu
checking host system type... hppa2.0-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for find... /usr/bin/find
checking for patch... /usr/bin/patch
checking for tar... /bin/tar
checking for chmod... /bin/chmod
checking for md5sum... /usr/bin/md5sum
checking for wget... /usr/bin/wget
checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for cpio... /bin/cpio
checking for file... /usr/bin/file
checking for fastjar... fastjar
checking for gawk... /usr/bin/gawk
checking for gij... /usr/bin/gij
checking for ecj... /usr/bin/ecj
checking for javac... /usr/bin/ecj -nowarn
checking for gjavah... /usr/bin/gjavah
checking for gjar-4.2... /usr/bin/gjar-4.2
checking for grmic... /usr/bin/grmic
checking for eclipse-ecj.jar... /usr/share/java/eclipse-ecj.jar
checking libgcj jar... /usr/share/java/libgcj-4.2.jar
checking for xalan2 jar... /usr/share/java/xalan2.jar
checking for xalan2-serializer jar... /usr/share/java/serializer.jar
checking for xerces2 jar... /usr/share/java/xercesImpl.jar
checking openjdk source zip... not specified
checking openjdk sources... /home/seb/icedtea6/openjdk
checking whether to use CACAO as VM... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether to use the zero-assembler port... yes
checking for void *... yes
checking size of void *... 4
checking whether byte ordering is bigendian... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking X11/X.h usability... yes
checking X11/X.h presence... yes
checking for X11/X.h... yes
checking Xm/Xm.h usability... yes
checking Xm/Xm.h presence... yes
checking for Xm/Xm.h... yes
checking Xm/XmP.h usability... yes
checking Xm/XmP.h presence... yes
checking for Xm/XmP.h... yes
checking Xm/Display.h usability... yes
checking Xm/Display.h presence... yes
checking for Xm/Display.h... yes
checking for main in -ljpeg... yes
checking for main in -lgif... yes
checking for main in -lz... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XPROTO... yes
checking for XT... yes
checking for XP... yes
checking for X11... yes
checking for XINERAMA... yes
checking for LIBPNG... yes
checking for XTST... yes
checking for FREETYPE2... yes
checking for ALSA... yes
checking for MOZILLA... no
checking for MOZILLA... no
checking for MOZILLA... no
checking for MOZILLA... yes
checking for GLIB... yes
checking for GTK... yes
checking for LIBFFI... no
checking ffi.h usability... yes
checking ffi.h presence... yes
checking for ffi.h... yes
checking for library containing ffi_call... -lffi
configure: creating ./config.status
config.status: creating Makefile
config.status: creating javac
config.status: creating javap
config.status: creating platform_zero
config.status: creating jvm.cfg
config.status: creating ergo.c
config.status: executing depfiles commands
seb at hpnux:~/icedtea6$ echo $PATH
/home/seb/bin:/home/seb/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
seb at hpnux:~/icedtea6$ export PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
seb at hpnux:~/icedtea6$ ./configure --with-gcj-home=/usr/lib/jvm/java-1.5.0-gcj-4.2-1.5.0.0 --with-libgcj-jar=/usr/share//java/libgcj-4.2.jar --prefix=/usr/local/icedtea --with-jar=gjar-4.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... hppa-unknown-linux-gnu
checking host system type... hppa-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for find... /usr/bin/find
checking for patch... /usr/bin/patch
checking for tar... /bin/tar
checking for chmod... /bin/chmod
checking for md5sum... /usr/bin/md5sum
checking for wget... /usr/bin/wget
checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for cpio... /bin/cpio
checking for file... /usr/bin/file
checking for fastjar... fastjar
checking for gawk... /usr/bin/gawk
checking for gij... /usr/bin/gij
checking for ecj... /usr/bin/ecj
checking for javac... /usr/bin/ecj -nowarn
checking for gjavah... /usr/bin/gjavah
checking for gjar-4.2... /usr/bin/gjar-4.2
checking for grmic... /usr/bin/grmic
checking for eclipse-ecj.jar... /usr/share/java/eclipse-ecj.jar
checking libgcj jar... /usr/share/java/libgcj-4.2.jar
checking for xalan2 jar... /usr/share/java/xalan2.jar
checking for xalan2-serializer jar... /usr/share/java/serializer.jar
checking for xerces2 jar... /usr/share/java/xercesImpl.jar
checking openjdk source zip... not specified
checking openjdk sources... /home/seb/icedtea6/openjdk
checking whether to use CACAO as VM... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether to use the zero-assembler port... yes
checking for void *... yes
checking size of void *... 4
checking whether byte ordering is bigendian... yes
checking cups/cups.h usability... yes
checking cups/cups.h presence... yes
checking for cups/cups.h... yes
checking cups/ppd.h usability... yes
checking cups/ppd.h presence... yes
checking for cups/ppd.h... yes
checking X11/X.h usability... yes
checking X11/X.h presence... yes
checking for X11/X.h... yes
checking Xm/Xm.h usability... yes
checking Xm/Xm.h presence... yes
checking for Xm/Xm.h... yes
checking Xm/XmP.h usability... yes
checking Xm/XmP.h presence... yes
checking for Xm/XmP.h... yes
checking Xm/Display.h usability... yes
checking Xm/Display.h presence... yes
checking for Xm/Display.h... yes
checking for main in -ljpeg... yes
checking for main in -lgif... yes
checking for main in -lz... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XPROTO... yes
checking for XT... yes
checking for XP... yes
checking for X11... yes
checking for XINERAMA... yes
checking for LIBPNG... yes
checking for XTST... yes
checking for FREETYPE2... yes
checking for ALSA... yes
checking for MOZILLA... no
checking for MOZILLA... no
checking for MOZILLA... no
checking for MOZILLA... yes
checking for GLIB... yes
checking for GTK... yes
checking for LIBFFI... no
checking ffi.h usability... yes
checking ffi.h presence... yes
checking for ffi.h... yes
checking for library containing ffi_call... -lffi
configure: creating ./config.status
config.status: creating Makefile
config.status: creating javac
config.status: creating javap
config.status: creating platform_zero
config.status: creating jvm.cfg
config.status: creating ergo.c
config.status: executing depfiles commands
seb at hpnux:~/icedtea6$
More information about the distro-pkg-dev
mailing list