Created
April 24, 2024 12:36
-
-
Save froody/4b2557ed0880709bf54be21aeaa0693a to your computer and use it in GitHub Desktop.
bazel build error with https://gist.github.com/froody/45d2cd6ec806824068019f63283e0426 on alpine-3.19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abuild -F -r | |
>>> bazel6: Building testing/bazel6 6.4.0-r0 (using abuild 3.12.0-r0) started Wed, 24 Apr 2024 12:28:34 +0000 | |
>>> bazel6: Checking sanity of /aports/testing/bazel6/APKBUILD... | |
>>> bazel6: Analyzing dependencies... | |
>>> bazel6: Installing for build: build-base bash openjdk11-jdk linux-headers python3 unzip zip | |
WARNING: opening /root/packages//testing: No such file or directory | |
WARNING: opening /root/packages//community: No such file or directory | |
WARNING: opening /root/packages//main: No such file or directory | |
(1/32) Installing libmagic (5.45-r1) | |
(2/32) Installing file (5.45-r1) | |
(3/32) Installing build-base (0.5-r3) | |
(4/32) Installing bash (5.2.21-r0) | |
Executing bash-5.2.21-r0.post-install | |
(5/32) Installing java-common (0.5-r0) | |
(6/32) Installing libtasn1 (4.19.0-r2) | |
(7/32) Installing p11-kit (0.25.3-r0) | |
(8/32) Installing p11-kit-trust (0.25.3-r0) | |
(9/32) Installing java-cacerts (1.0-r1) | |
(10/32) Installing openjdk11-jre-headless (11.0.22_p7-r0) | |
(11/32) Installing libxau (1.0.11-r3) | |
(12/32) Installing libmd (1.1.0-r0) | |
(13/32) Installing libbsd (0.11.7-r3) | |
(14/32) Installing libxdmcp (1.1.4-r3) | |
(15/32) Installing libxcb (1.16-r0) | |
(16/32) Installing libx11 (1.8.7-r0) | |
(17/32) Installing libxext (1.3.5-r3) | |
(18/32) Installing libxi (1.8.1-r2) | |
(19/32) Installing libxrender (0.9.11-r4) | |
(20/32) Installing libxtst (1.2.4-r4) | |
(21/32) Installing alsa-lib (1.2.10-r0) | |
(22/32) Installing libpng (1.6.40-r0) | |
(23/32) Installing freetype (2.13.2-r0) | |
(24/32) Installing giflib (5.2.2-r0) | |
(25/32) Installing lcms2 (2.15-r4) | |
(26/32) Installing openjdk11-jre (11.0.22_p7-r0) | |
(27/32) Installing openjdk11-jmods (11.0.22_p7-r0) | |
(28/32) Installing openjdk11-jdk (11.0.22_p7-r0) | |
(29/32) Installing linux-headers (6.5-r0) | |
(30/32) Installing unzip (6.0-r14) | |
(31/32) Installing zip (3.0-r12) | |
(32/32) Installing .makedepends-bazel6 (20240424.122835) | |
Executing busybox-1.36.1-r15.trigger | |
Executing java-common-0.5-r0.trigger | |
Executing ca-certificates-20240226-r0.trigger | |
OK: 915 MiB in 145 packages | |
>>> bazel6: Cleaning up srcdir | |
>>> bazel6: Cleaning up pkgdir | |
>>> bazel6: Cleaning up tmpdir | |
>>> bazel6: Fetching https://github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-dist.zip | |
>>> bazel6: Fetching https://github.com/bazelbuild/bazel/releases/download/6.4.0/bazel-6.4.0-dist.zip | |
>>> bazel6: Checking sha512sums... | |
bazel-6.4.0-dist.zip: OK | |
0001-Do-not-use-prebuilt-binaries.patch: OK | |
0002-Prefer-local_jdk-instead-of-remote_jdk11.patch: OK | |
0003-Make-generate_bash_completion-compatible-with-busybo.patch: OK | |
0004-Use-nojdk-bazel-for-generating-the-bash-completion.patch: OK | |
0005-Fix-cstdit.patch: OK | |
>>> bazel6: Unpacking /var/cache/distfiles/bazel-6.4.0-dist.zip... | |
>>> bazel6: 0001-Do-not-use-prebuilt-binaries.patch | |
patching file tools/jdk/BUILD.tools | |
>>> bazel6: 0002-Prefer-local_jdk-instead-of-remote_jdk11.patch | |
patching file src/main/java/com/google/devtools/build/lib/rules/java/JavaOptions.java | |
patching file tools/jdk/BUILD.tools | |
patching file tools/jdk/default_java_toolchain.bzl | |
>>> bazel6: 0003-Make-generate_bash_completion-compatible-with-busybo.patch | |
patching file scripts/generate_bash_completion.sh | |
>>> bazel6: 0004-Use-nojdk-bazel-for-generating-the-bash-completion.patch | |
patching file scripts/BUILD | |
>>> bazel6: 0005-Fix-cstdit.patch | |
patching file .bazelrc | |
patching file WORKSPACE | |
patching file src/main/cpp/util/numbers.h | |
patching file src/tools/singlejar/port.h | |
🍃 Building Bazel from scratch...... | |
🍃 Building Bazel with Bazel. | |
DEBUG: /tmp/bazel_XXjPkKPa/out/external/build_bazel_rules_nodejs/index.bzl:122:10: WARNING: check_rules_nodejs_version has been removed. This is a no-op, please remove the call. | |
INFO: Analyzed target //src:bazel_nojdk (387 packages loaded, 10496 targets configured). | |
INFO: Found 1 target... | |
checking cached actions | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by com.google.devtools.build.lib.unsafe.StringUnsafe (file:/tmp/bazel_XXjPkKPa/archive/libblaze.jar) to constructor java.lang.String(byte[],byte) | |
WARNING: Please consider reporting this to the maintainers of com.google.devtools.build.lib.unsafe.StringUnsafe | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
ERROR: /tmp/bazel_XXjPkKPa/out/external/com_google_absl/absl/base/BUILD.bazel:151:11: Compiling absl/base/internal/low_level_alloc.cc failed: (Exit 1): gcc failed: error executing command (from target @com_google_absl//absl/base:malloc_internal) | |
(cd /tmp/bazel_XXjPkKPa/out/execroot/io_bazel && \ | |
exec env - \ | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ | |
PWD=/proc/self/cwd \ | |
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt/bin/external/com_google_absl/absl/base/_objs/malloc_internal/low_level_alloc.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_absl/absl/base/_objs/malloc_internal/low_level_alloc.o' '-DBAZEL_CURRENT_REPOSITORY="com_google_absl"' -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/base/internal/low_level_alloc.cc -o bazel-out/k8-opt/bin/external/com_google_absl/absl/base/_objs/malloc_internal/low_level_alloc.o) | |
# Configuration: e58989a0a9a4e4950c2c10f069c7ecbe227dcfbe61cf34358c93aa32ba45cd37 | |
# Execution platform: //:default_host_platform | |
In file included from external/com_google_absl/absl/base/internal/low_level_alloc.cc:26: | |
external/com_google_absl/absl/base/internal/direct_mmap.h:75:25: error: 'off64_t' has not been declared | |
75 | off64_t offset) noexcept { | |
| ^~~~~~~ | |
ERROR: /tmp/bazel_XXjPkKPa/out/external/com_google_absl/absl/base/BUILD.bazel:151:11: Compiling absl/base/internal/low_level_alloc.cc [for tool] failed: (Exit 1): gcc failed: error executing command (from target @com_google_absl//absl/base:malloc_internal) | |
(cd /tmp/bazel_XXjPkKPa/out/execroot/io_bazel && \ | |
exec env - \ | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ | |
PWD=/proc/self/cwd \ | |
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++14' -MD -MF bazel-out/k8-opt-exec-EDC14992/bin/external/com_google_absl/absl/base/_objs/malloc_internal/low_level_alloc.d '-frandom-seed=bazel-out/k8-opt-exec-EDC14992/bin/external/com_google_absl/absl/base/_objs/malloc_internal/low_level_alloc.o' '-DBAZEL_CURRENT_REPOSITORY="com_google_absl"' -iquote external/com_google_absl -iquote bazel-out/k8-opt-exec-EDC14992/bin/external/com_google_absl -g0 -g0 -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/com_google_absl/absl/base/internal/low_level_alloc.cc -o bazel-out/k8-opt-exec-EDC14992/bin/external/com_google_absl/absl/base/_objs/malloc_internal/low_level_alloc.o) | |
# Configuration: 2b31bc65fbc0dc8c7378bdec5fecc828501acb83cd4c73e64e4f2c33e4b0b837 | |
# Execution platform: //:default_host_platform | |
In file included from external/com_google_absl/absl/base/internal/low_level_alloc.cc:26: | |
external/com_google_absl/absl/base/internal/direct_mmap.h:75:25: error: 'off64_t' has not been declared | |
75 | off64_t offset) noexcept { | |
| ^~~~~~~ | |
Target //src:bazel_nojdk failed to build | |
INFO: Elapsed time: 11.459s, Critical Path: 1.62s | |
INFO: 797 processes: 586 internal, 211 local. | |
FAILED: Build did NOT complete successfully | |
ERROR: Could not build Bazel | |
>>> ERROR: bazel6: build failed | |
>>> bazel6: Uninstalling dependencies... | |
(1/32) Purging .makedepends-bazel6 (20240424.122835) | |
(2/32) Purging build-base (0.5-r3) | |
(3/32) Purging file (5.45-r1) | |
(4/32) Purging bash (5.2.21-r0) | |
Executing bash-5.2.21-r0.pre-deinstall | |
(5/32) Purging openjdk11-jdk (11.0.22_p7-r0) | |
(6/32) Purging openjdk11-jre (11.0.22_p7-r0) | |
(7/32) Purging openjdk11-jmods (11.0.22_p7-r0) | |
(8/32) Purging linux-headers (6.5-r0) | |
(9/32) Purging zip (3.0-r12) | |
(10/32) Purging unzip (6.0-r14) | |
(11/32) Purging alsa-lib (1.2.10-r0) | |
(12/32) Purging freetype (2.13.2-r0) | |
(13/32) Purging giflib (5.2.2-r0) | |
(14/32) Purging lcms2 (2.15-r4) | |
(15/32) Purging libmagic (5.45-r1) | |
(16/32) Purging libpng (1.6.40-r0) | |
(17/32) Purging libxi (1.8.1-r2) | |
(18/32) Purging libxrender (0.9.11-r4) | |
(19/32) Purging libxtst (1.2.4-r4) | |
(20/32) Purging openjdk11-jre-headless (11.0.22_p7-r0) | |
(21/32) Purging java-common (0.5-r0) | |
(22/32) Purging java-cacerts (1.0-r1) | |
Executing java-cacerts-1.0-r1.post-deinstall | |
(23/32) Purging p11-kit-trust (0.25.3-r0) | |
(24/32) Purging p11-kit (0.25.3-r0) | |
(25/32) Purging libxext (1.3.5-r3) | |
(26/32) Purging libx11 (1.8.7-r0) | |
(27/32) Purging libxcb (1.16-r0) | |
(28/32) Purging libxdmcp (1.1.4-r3) | |
(29/32) Purging libbsd (0.11.7-r3) | |
(30/32) Purging libmd (1.1.0-r0) | |
(31/32) Purging libtasn1 (4.19.0-r2) | |
(32/32) Purging libxau (1.0.11-r3) | |
Executing busybox-1.36.1-r15.trigger | |
Executing ca-certificates-20240226-r0.trigger | |
OK: 652 MiB in 113 packages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment