jdk8u build error in assembling asm_os_linux_aarch32.s

Choe, Jiwon jiwon_choe at brown.edu
Tue Mar 17 13:55:48 UTC 2020


Thank you again for the quick reply.

The sysroot seems to be correctly populated with the freetype2 libraries.
/opt/sysroot/usr/include/freetype2 has all the header files, and
/opt/sysroot/usr/lib/arm-linux-gnueabihf has the following files:
-rw-r--r-- 1 root root   531014 Mar 13  2014 libfreetype.a
-rw-r--r-- 1 root root      918 Mar 13  2014 libfreetype.la
lrwxrwxrwx 1 root root       21 Mar 13  2014 libfreetype.so ->
libfreetype.so.6.11.1
lrwxrwxrwx 1 root root       21 Mar 13  2014 libfreetype.so.6 ->
libfreetype.so.6.11.1
-rw-r--r-- 1 root root   386916 Mar 13  2014 libfreetype.so.6.11.1

I think the error that's preventing me from moving forward is this:
"configure: Could not compile and link with freetype. This might be a
32/64-bit mismatch."

This is the related message in the config.log file:
1265 configure:47566: checking if we can compile and link with freetype
1266 configure:47591:  /usr/bin/arm-linux-gnueabihf-g++ -o conftest
 -I/opt/sysroot/usr/include/freetype2   conftest.cpp
 -L/opt/sysroot/usr/lib/arm-linux-gnueabihf -lfreetype >&5
1267
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld:
cannot find /lib/arm-linux-gnueabihf/libc.so.6
1268
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld:
cannot find /usr/lib/arm-linux-gnueabihf/libc_nonshared.a
1269
/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld:
cannot find /lib/arm-linux-gnueabihf/ld-linux-armhf.so.3
1270 collect2: error: ld returned 1 exit status

>From the log, some prior steps in the configuration also seem to have
failed for the same reason (checks for -lICE, -ldnet_stub, etc), but it
didn't stop the configuration from moving on to the next steps.
Is this an issue that I would need to fix for all configuration steps that
failed?

Thanks,
Jiwon

On Tue, Mar 17, 2020 at 5:37 AM Andrew Haley <aph at redhat.com> wrote:

> On 3/17/20 9:31 AM, Andrew Haley wrote:
> > On 3/16/20 9:58 PM, Choe, Jiwon wrote:
> >> 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.
> >
> > I suspect that your sysroot is not fully populated. Are the headers
> > and libraries freetype in there? OpenJDK has many dependencies.
>
> You can see what went wrong by looking at config.log in the build
> directory.
>
>  $ find build/linux-x86_64-server-slowdebug/ -name config.log
> build/linux-x86_64-server-slowdebug/configure-support/config.log
>
> --
> Andrew Haley  (he/him)
> Java Platform Lead Engineer
> Red Hat UK Ltd. <https://www.redhat.com>
> https://keybase.io/andrewhaley
> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
>
>


More information about the aarch32-port-dev mailing list