Fwd: Crosscopiled OpenJRE 9 crashes on java -h
David Holmes
david.holmes at oracle.com
Sun Apr 2 20:42:19 UTC 2017
Hi Bruno,
Were these set explicitly?
> CPP_FLAGS=-lstdc++ CXX_FLAGS=-lstdc++
>
CPP=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-cpp
>
CXX=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-g++
>
CC=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc
>
LD=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc
For the first one you should be using --with-stdc++lib=dynamic|static
For the toolkit you should be using --with-devkit=xxx
My guess is that the wrong libc has been statically linked.
David
On 3/04/2017 3:09 AM, Bruno Kremel wrote:
>
> Bruno Kremel <bruno.kremel at gmail.com> writes:
>
> Hi All,
>
> I have crosscompiled OpenJDK 9 for ARM (Freescale iMX6).
> Now I have issues running it. If I run:
> # java --help
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # SIGSEGV (0xb) at pc=0x76e40324, pid=234, tid=235
> #
> # JRE version: (9.0) (build )
> # Java VM: OpenJDK Client VM (9-internal+0-adhoc.bruno.openjdk-jdk-9163, mixed mode, sharing, serial gc, linux-arm)
> # Problematic frame:
> # C [libc.so.6+0x58324] strlen+0x23
> #
> # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # /root/hs_err_pid234.log
> #
> # If you would like to submit a bug report, please visit:
> # http://bugreport.java.com/bugreport/crash.jsp
> #
> Aborted
>
> I also attach the generated error log:
>
> I built tag 163 in HG.
>
> These are the configure switches:
> ./configure
> --with-freetype-include=/home/bruno/linux/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/freetype2
> --with-freetype-lib=/home/bruno/linux/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
> --with-freetype=/home/bruno/linux/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/
> --with-debug-level=release --with-native-debug-symbols=none
> --openjdk-target=arm-buildroot-linux-gnueabihf
> --with-sys-root=/home/bruno/linux/buildroot/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot
> --with-tools-dir=/home/bruno/linux/buildroot/output/host
> --disable-freetype-bundling --enable-unlimited-crypto
> --enable-headless-only --disable-warnings-as-errors
> --with-abi-profile=arm-vfp-hflt --with-jvm-variants=client
> OBJCOPY=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-objcopy
> STRIP=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-strip
> CPP_FLAGS=-lstdc++ CXX_FLAGS=-lstdc++
> CPP=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-cpp
> CXX=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-g++
> CC=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc
> LD=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc
>
> And make:
> make
> OBJCOPY=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-objcopy \
> STRIP=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-strip \
> BUILD_CC=gcc BUILD_LD=gcc \
> CPP=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-cpp \
> CXX=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-g++\
> CC=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc\
> LD=/home/bruno/linux/buildroot/output/host/usr/bin/arm-linux-gnueabihf-gcc\
> -C /home/bruno/linux/buildroot/output/build/openjdk-jdk-9+163 CONF=linux-arm-normal-client-release
>
>
> Do you have any suggestion as what can cause this?
>
> Thanks
> Bruno
>
More information about the jdk9-dev
mailing list