jdk8u build error in assembling asm_os_linux_aarch32.s
Choe, Jiwon
jiwon_choe at brown.edu
Mon Mar 16 21:58:17 UTC 2020
Hi,
Thanks for all your help and sorry for the trouble again. I realized that I
need to use qemu-debootstrap to create a target root filesystem, and I have
been able to get past the X libraries issue.
Now I am having problems with the freetype2 library. This is the error
message that I get with the build:
$ bash configure --with-jvm-variants=client
--openjdk-target=arm-linux-gnueabihf --with-sys-root=/opt/sysroot
--x-includes=/opt/sysroot/usr/include/
--x-libraries=/opt/sysroot/usr/lib/arm-linux-gnueabihf/
--with-freetype-include=/opt/sysroot/usr/include/freetype2/
--with-freetype-lib=/opt/sysroot/usr/lib/arm-linux-gnueabihf/
CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++
(clipped successful configuration messages)
configure: Found freetype include files at
/opt/sysroot/usr/include/freetype2/ using --with-freetype
checking for freetype includes... /opt/sysroot/usr/include/freetype2
checking for freetype libraries... /opt/sysroot/usr/lib/arm-linux-gnueabihf
checking if we can compile and link with freetype... no
configure: Could not compile and link with freetype. This might be a
32/64-bit mismatch.
configure: Using FREETYPE_CFLAGS=-I/opt/sysroot/usr/include/freetype2 and
FREETYPE_LIBS=-L/opt/sysroot/usr/lib/arm-linux-gnueabihf -lfreetype
configure: error: Can not continue without freetype. You might be able to
fix this by running 'sudo apt-get install libfreetype6-dev'.
configure exiting with result code 1
I've seen older emails from the mailing list archive, which talk about a
bug fix that resolves the issue, but the changes for the bug fix are
already in the source code that I am using.
Thanks,
Jiwon
On Tue, Mar 10, 2020 at 10:08 AM Alex Kashchenko <akashche at redhat.com>
wrote:
> Hi,
>
> On 03/02/2020 10:33 PM, Choe, Jiwon wrote:
> > Hello,
> >
> > I'm having trouble in compiling and building aarch32-port/jdk8u.
>
> I maintain this cross-compiling script for aarch32-port that may help:
>
> https://github.com/ojdkbuild/contrib_jdk8u-aarch32-ci
>
> It includes CC, CXX and --with-sys-root mentioned in other emails in
> this thread.
>
> >
> > This was what I ran:
> >
> > # bash configure --with-jvm-variants=client
> > --openjdk-target=arm-linux-gnueabihf
> > # make all
> >
> > And I got this error message during make:
> >
> > Assembling
> >
> /home/sim32/aarch32-openjdk8u/jdk8u/hotspot/src/os_cpu/linux_aarch32/vm/asm_os_linux_aarch32.s
> >
> /home/sim32/aarch32-openjdk8u/jdk8u/hotspot/src/os_cpu/linux_aarch32/vm/asm_os_linux_aarch32.s:
> > Assembler messages:
> >
> /home/sim32/aarch32-openjdk8u/jdk8u/hotspot/src/os_cpu/linux_aarch32/vm/asm_os_linux_aarch32.s:5:
> > Error: too many memory references for `mov'
> >
> /home/sim32/aarch32-openjdk8u/jdk8u/hotspot/src/os_cpu/linux_aarch32/vm/asm_os_linux_aarch32.s:6:
> > Error: no such instruction: `bx lr'
> > make[6]: *** [asm_os_linux_aarch32.o] Error 1
> > make[6]: *** Waiting for unfinished jobs....
> > make[5]: *** [the_vm] Error 2
> > make[4]: *** [product1] Error 2
> > make[3]: *** [generic_build1] Error 2
> > make[2]: *** [product1] Error 2
> > make[1]: ***
> >
> [/home/sim32/aarch32-openjdk8u/jdk8u/build/linux-aarch32-normal-client-release/hotspot/_hotspot.timestamp]
> > Error 2
> > make: *** [hotspot-only] Error 2
> >
> > Could anyone help in resolving this issue? Thanks in advance!
> >
> > -Jiwon
> >
>
>
> --
> -Alex
>
>
More information about the aarch32-port-dev
mailing list