Bug ID 1178564
Summary Bazel 3.4 not built for armv7 due to a missing include path
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware armv7
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Java
Assignee java-maintainers@suse.de
Reporter guillaume.gardet@arm.com
QA Contact qa-bugs@suse.de
CC afaerber@suse.com, dmueller@suse.com
Found By ---
Blocker ---

Bazel 3.4 is not built for armv7 due to a missing include path.
It complains about 'jni_md.h' being not found:
In file included from
src/main/java/com/google/devtools/build/lib/syntax/cpu_profiler_posix.cc:20:
[  798s]
bazel-out/arm-opt/bin/external/bazel_tools/tools/jdk/include/jni.h:45:10: fatal
error: jni_md.h: No such file or directory
[  798s]    45 | #include "jni_md.h"
[  798s]       |          ^~~~~~~~~~
[  798s] compilation terminated.

But it is available at
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0/include/linux/jni_md.h

x86_64 and aarch64 are not affected.

Not sure how to add /usr/lib/jvm/java-1.8.0-openjdk-1.8.0/include/linux/ to the
list of include path for bazel. Or is it a fix for openjdk?

Latest build log:
https://build.opensuse.org/package/live_build_log/devel:tools:building/bazel3.4/openSUSE_Factory_ARM/armv7l


You are receiving this mail because: