Hi,
My host OS has systemtap-sdt-devel installed for some reason. I temporarily renamed the sdt.h to get it out of the way and the build worked.
If all I have to do is remove that package (and hopefully not need something that depends on it) then that works out OK.
On the other hand, this could be an indication that when building openjdk-8-native, the recipe is not properly distinguishing the native (target) sysroot versus the host sysroot (for the GCC on the system). Or the fact that the buildtools
are used doesn’t prevent it from still checking the host system’s sysroot.
For now, the answer is don’t have systemtap-sdt-devel on your CentOS7 system (or use a docker container without it).
Regards,
Darcy
Darcy Watkins :: Senior Staff Engineer, Firmware
SIERRA WIRELESS
Direct +1 604 233 7989 :: Fax +1 604 231 1109 :: Main +1 604 231 1100
13811 Wireless Way :: Richmond, BC Canada V6V 3A4
[M4]
dwatkins@... :: www.sierrawireless.com
From: Darcy Watkins <dwatkins@...>
Date: Thursday, October 29, 2020 at 8:39 AM
To: "yocto@..." <yocto@...>
Subject: Meta-java - openjdk-8-native - fatal error: sys/sdt.h: No such file or directory
Hi,
Openjdk-8-native breaks due to some mixup related to sdt.h not found
Dunfell branch built on CentOS7 with the buildtools installed.
This is first attempt with dunfell. Warrior built openjdk-8-native OK
I remember seeing something like this long ago but I don’t remember the fix.
--------
| /home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/jdk8u-jdk8u272-ga/hotspot/src/share/vm/utilities/dtrace.hpp:31:10: fatal error: sys/sdt.h: No such file or directory
| 31 | #include <sys/sdt.h>
| | ^~~~~~~~~~~
| compilation terminated.
| make[6]: *** [/home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/jdk8u-jdk8u272-ga/hotspot/make/linux/makefiles/vm.make:310: precompiled.hpp.gch] Error 1
| make[5]: *** [/home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/jdk8u-jdk8u272-ga/hotspot/make/linux/makefiles/top.make:119: the_vm] Error 2
| make[4]: *** [/home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/jdk8u-jdk8u272-ga/hotspot/make/linux/Makefile:284: product] Error 2
| make[3]: *** [Makefile:231: generic_build2] Error 2
| make[2]: *** [Makefile:177: product] Error 2
| make[1]: *** [HotspotWrapper.gmk:45: /home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/build/hotspot/_hotspot.timestamp] Error 2
| make: *** [/home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/jdk8u-jdk8u272-ga//make/Main.gmk:110: hotspot-only] Error 2
| WARNING: /home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/build/tmp/work/x86_64-linux/openjdk-8-native/272-r0/temp/run.do_compile.27136:1 exit 1 from 'exit 1'
|
ERROR: Task (/home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/upstream/yocto/meta-java/recipes-core/openjdk/openjdk-8-native_272.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 973 tasks of which 966 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/dwatkins/workspace/zeta/upgrade-yocto_mg90-MG-os/upstream/yocto/meta-java/recipes-core/openjdk/openjdk-8-native_272.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Regards,
Darcy
Darcy Watkins :: Senior Staff Engineer, Firmware
SIERRA WIRELESS
Direct +1 604 233 7989 :: Fax +1 604 231 1109 :: Main +1 604 231 1100
13811 Wireless Way :: Richmond, BC Canada V6V 3A4
[M4]
dwatkins@... :: www.sierrawireless.com