Building jdk11 for arm-vfp-hflt (was arm-vfp-sflt)

Simon Nash simon at cjnash.com
Fri Oct 5 17:12:01 UTC 2018


On 05/10/2018 08:00, Aleksei Voitylov wrote:
> Right, this is what I thought. We are using 4.9+ so didn't hit this. 
> Would you like to research this further? I'll be happy to consider a fix 
> for this in the arm/ part of the code, but our mileage may vary if the 
> fix to support such an old compiler will be in shared code.
> 
Moving up to 4.9 has produced a working binary. I will now test this for compatibility with the required target platforms. Many thanks for your help.

Simon

> -Aleksei
> 
> 
> On 05/10/2018 09:49, Simon Nash wrote:
>> On 04/10/2018 08:04, Aleksei Voitylov wrote:
>>> Simon,
>>>
>>> this list is for aarch32-port project 
>>> (http://hg.openjdk.java.net/aarch32-port/). I'm confused because it 
>>> does not have JDK11 support integrated just yet (Andrey posted the 
>>> RFR just recently).
>>>
>>> If what you are trying to build is jdk/jdk or jdk/jdk11, I can report 
>>> that we are testing and supporting this architecture upstream. Works 
>>> for us perfectly. If you are ready to wait a little we are about to 
>>> release Liberica JDK 11 GA binaries for the Pi, which is currently 
>>> under extensive testing. Could you report the gcc compiler version, 
>>> configure options and the exact issue you are seeing?
>>>
>> I am building jdk/jdk11 using an older Linaro cross-compiler (gcc 4.7, 
>> milestone 2012.11) to avoid creating a runtime dependency on newer 
>> versions of GLIBC. This produces a working binary on jdk/jdk9u. Here 
>> is my configure command:
>>
>> bash ./configure --with-jdk-variant=normal --with-jvm-variants=client 
>> --with-abi-profile=arm-vfp-hflt --with-conf-name=hfclient \
>> --with-debug-level=release --disable-warnings-as-errors 
>> --openjdk-target=arm-linux-gnueabihf \
>> --with-tools-dir=/sd1/linaro/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/bin 
>> \
>> --with-sys-root=/sd1/linaro/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux/arm-linux-gnueabihf/libc 
>> \
>> --with-cups=/sd1/armhf/cups --with-alsa=/sd1/armhf/alsa \
>> --x-includes=/sd1/armhf/X11/include --x-libraries=/sd1/armhf/X11/lib \
>> --with-freetype=system 
>> --with-freetype-include=/sd1/armhf/freetype2/include 
>> --with-freetype-lib=/sd1/armhf/freetype2/lib \
>> --with-fontconfig=/sd1/armhf/fontconfig \
>> --with-boot-jdk=/sd1/jdk11.28 --with-version-string=11+28 \
>> CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ 
>> CPP=arm-linux-gnueabihf-cpp CXXCPP=arm-linux-gnueabihf-cpp \
>> LIBS="-Wl,-rpath-link /sd1/armhf/freetype2/lib 
>> -Wl,-rpath-link,/sd1/armhf/fontconfig/lib -Wl,-rpath-link 
>> /sd1/armhf/X11/lib"
>>
>> The error I am seeing is:
>>
>> pi at raspberrypi:/sd1/jdk11-armv7/jdk $ ./bin/java
>> #
>> # A fatal error has been detected by the Java Runtime Environment:
>> #
>> #  SIGILL (0x4) at pc=0x74453c1c, pid=1576, tid=1577
>> #
>> # JRE version:  (11.0+28) (build )
>> # Java VM: OpenJDK Client VM (11+28, mixed mode, serial gc, linux-)
>> # Problematic frame:
>> # j  java.lang.Class.getClassLoader0()Ljava/lang/ClassLoader;+0 java.base
>> #
>>
>> Many thanks.
>>
>> Simon
>>
>>> -Aleksei
>>>
>>>
>>> On 03/10/2018 23:55, Simon Nash wrote:
>>>> I have built the jdk11 GA sources using the abi profile 
>>>> arm-vfp-hflt. This works for jdk9u. My jdk11 build completes without 
>>>> errors but the resulting JDK image doesn't run (testing on an RPi 3 
>>>> with Raspbian Jessie). Depending on how I launch bin/java, I get 
>>>> either SIGILL or SIGSEGV in a intepreter codelet. Has anyone else 
>>>> been able to build and run jdk11 for arm-vfp-hflt?
>>>>
>>>> Simon
>>>
>>>
>>
> 
> 



More information about the aarch32-port-dev mailing list