configure misses check for linux-glibc-devel / linux-headers / kernel-headers ?

Baesken, Matthias matthias.baesken at sap.com
Fri Mar 4 09:08:32 UTC 2022


Hi , while attempting to build jdk on an Alpine Linux I was running into the following issue :
After some additional package installations  configure  was passing successfully , however hotspot build failed with

/openjdk_build/jdk_1/jdk/src/hotspot/os/linux/os_linux.cpp:109:11: fatal error: linux/elf-em.h: No such file or directory
  109 | # include <linux/elf-em.h>

Looks like we do not check for this in configure , should we add a check for it and helpful output what to install  ?

The package name on Alpine was  linux-headers     ( apk add linux-headers fixed this issue ).

On SUSE 12 / 15 the package is named linux-glibc-devel , on  RHEL 7 / 8   it is kernel-headers  .

Best regards, Matthias






More information about the build-dev mailing list