Compiling on an aarch64 machine (Raspberry Pi 5)
Linux pi5 6.6.62+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux
the @org_lzma_lzma compilation fails:
bazel build @org_lzma_lzma//... --keep_going
Starting local Bazel server and connecting to it...
INFO: Analyzed 3 targets (65 packages loaded, 482 targets configured).
ERROR: /home/pi/.cache/bazel/_bazel_pi/0cde8161736ea9e02205f75b95c5e10c/external/org_lzma_lzma/BUILD.bazel:52:11: Compiling src/liblzma/check/crc64_fast.c failed: (Exit 1): gcc failed: error executing CppCompile command (from target @@org_lzma_lzma//:lzma) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -MD -MF ... (remaining 42 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/org_lzma_lzma/src/liblzma/check/crc64_fast.c:69:25: fatal error: cpuid.h: No such file or directory
69 | # include <cpuid.h>
| ^~~~~~~~~
compilation terminated.
Apparently, this needs some defines and/or bazelselect() somewhere to do different things depending on architecture (cpuid is only something available on x86).
(I noticed that in the compilation of XLS)
Compiling on an aarch64 machine (Raspberry Pi 5)
the
@org_lzma_lzmacompilation fails:Apparently, this needs some defines and/or bazel
select()somewhere to do different things depending on architecture (cpuid is only something available on x86).(I noticed that in the compilation of XLS)