Java build fails on BSP 2.8 on 64-bit host machine

We’ve been building images for a few years and have several modules in production. All this time, I’ve been building in JDK1.8 into these images just fine with a 32-bit host machine Ubuintu 16.04 (BSP 2.8B3 and the rocko jdk) and they’ve been working well.
jdk for 2.8 (I build the layer) -
META_JAVA=fbe0b0eb30d93f5fa2101fb015f20c1dc118b4a6

I recently upgraded to a 64-bit host machine and Ubuntu 18.04 and verified that the 2.8 BSP without any appended layers bitbakes successfully. Once I append openjdk-8 in local.conf like I always had before, I get this error -

...
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: jaxp1.3-native-1.4.01-r0 do_compile: Function failed: do_compile (log file is located at /home/dave/yocto_28/build/tmp-glibc/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.29651)
ERROR: Logfile of failure stored in: /home/dave/yocto_28/build/tmp-glibc/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.29651
Log data follows:
| DEBUG: Executing shell function do_compile
| Illegal instruction (core dumped)
| WARNING: exit code 132 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/dave/yocto_28/build/tmp-glibc/work/x86_64-linux/jaxp1.3-native/1.4.01-r0/temp/log.do_compile.29651)
ERROR: Task (virtual:native:/home/dave/yocto_28/build/../layers/meta-java/recipes-core/xml-commons/jaxp1.3_1.4.01.bb:do_compile) failed with exit code '1'
ERROR: gnujaf-native-1.1.1-r1 do_compile: Function failed: do_compile (log file is located at /home/dave/yocto_28/build/tmp-glibc/work/x86_64-linux/gnujaf-native/1.1.1-r1/temp/log.do_compile.29655)
ERROR: Logfile of failure stored in: /home/dave/yocto_28/build/tmp-glibc/work/x86_64-linux/gnujaf-native/1.1.1-r1/temp/log.do_compile.29655
...
r1/temp/log.do_compile.29655)
ERROR: Task (virtual:native:/home/dave/yocto_28/build/../layers/meta-java/recipes-core/classpathx/gnujaf_1.1.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4723 tasks of which 4456 didn't need to be rerun and 2 failed.

This only happens on the 64-bit Ubuntu 18 host machine…I get what jaxp is but can’t seem to resolve it. Appreciate any help…

thanks,
Dave

Hi Dave,

It’s hard to tell what exactly went wrong from just the error message, could you provide the log files that were produced from the failure, maybe those will help provide some context.

Best Regards,
Jeremias

Hi Dave,

Does it work if you cherry-pick fd72459?

meta-java> git cherry-pick -x fd72459

Compare with here and here.

Max

Hey, I tried the cherrypick and it got me farther along with the build…thanks for the response. I did some research before and the threads I found talked about that very problem that the commit you sent fixed. I’m now getting this error, but I’m going to check the git log first…

ERROR: Function failed: do_compile (log file is located at /home/dave/yocto_28/build/tmp-libc/work/x86_64-linux/icedtea7-native/2.1.3-r1.0/temp/log.do_compile.32670)

ERROR: Task (/home/dave/yocto_28/build/…/layers/meta-java/recipes-core/icedtea/icedtea7-native_2.1.3.bb:do_compile) failed with exit code ‘1’

thanks again, Dave

Hi Dave

What is content on the error log? Did you apply any patch to the package icedtea7-native?

Best regards,
Jaski