-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No bazel5 on fedora:36 (and fedora:latest) #18
Comments
@Mizux thanks for reaching out. Apologies I missed this! It seems compiling bazel often is wrestling with SUBCOMMAND: # //src/main/cpp/util:filesystem [action 'Compiling src/main/cpp/util/file.cc', configuration: 420d59a20d5e3ca2685f8568af0bd1d01d366261653c3073d6906d0b217c0b95, execution platform: //:default_host_platform]
(cd /var/tmp/bazel_nEPnpFUI/out/execroot/io_bazel && \
exec env - \
PATH=/root/rpmbuild/BUILD/bazel-5.2.0/bin-hack:/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++0x' -MD -MF bazel-out/k8-opt/bin/src/main/cpp/util/_objs/filesystem/file.pic.d '-frandom-seed=bazel-out/k8-opt/bin/src/main/cpp/util/_objs/filesystem/file.pic.o' -fPIC -DBLAZE_OPENSOURCE -iquote . -iquote bazel-out/k8-opt/bin -include/usr/include/c++/11/limits -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c src/main/cpp/util/file.cc -o bazel-out/k8-opt/bin/src/main/cpp/util/_objs/filesystem/file.pic.o)
# Configuration: 420d59a20d5e3ca2685f8568af0bd1d01d366261653c3073d6906d0b217c0b95
# Execution platform: //:default_host_platform
ERROR: /root/rpmbuild/BUILD/bazel-5.2.0/src/main/cpp/util/BUILD:34:11: Compiling src/main/cpp/util/file.cc failed: (Exit 1): gcc failed: error executing command
(cd /var/tmp/bazel_nEPnpFUI/out/execroot/io_bazel && \
exec env - \
PATH=/root/rpmbuild/BUILD/bazel-5.2.0/bin-hack:/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++0x' -MD -MF bazel-out/k8-opt/bin/src/main/cpp/util/_objs/filesystem/file.pic.d '-frandom-seed=bazel-out/k8-opt/bin/src/main/cpp/util/_objs/filesystem/file.pic.o' -fPIC -DBLAZE_OPENSOURCE -iquote . -iquote bazel-out/k8-opt/bin -include/usr/include/c++/11/limits -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c src/main/cpp/util/file.cc -o bazel-out/k8-opt/bin/src/main/cpp/util/_objs/filesystem/file.pic.o)
# Configuration: 420d59a20d5e3ca2685f8568af0bd1d01d366261653c3073d6906d0b217c0b95
# Execution platform: //:default_host_platform
<command-line>: fatal error: /usr/include/c++/11/limits: No such file or directory
compilation terminated.
Target //src:bazel_nojdk failed to build
INFO: Elapsed time: 95.831s, Critical Path: 14.19s
INFO: 384 processes: 36 internal, 348 local.
FAILED: Build did NOT complete successfully
ERROR: Could not build Bazel
error: Bad exit status from /var/tmp/rpm-tmp.uew7RG (%build) I recreated this just by bumping the version: diff --git a/bazel.spec b/bazel.spec
index de58e68..dbf8389 100644
--- a/bazel.spec
+++ b/bazel.spec
@@ -3,7 +3,7 @@
%define _disable_source_fetch 0
Name: bazel5
-Version: 5.0.0
+Version: 5.2.0
Release: 0%{?dist}
Summary: Correct, reproducible, and fast builds for everyone.
License: Apache License 2.0 and then from this project's repo, run also, yes I need to hand over maintainership on the fedora builds |
ps: I link this issue with Bazel 5 issue tracker, hope bazel folks will support you... |
per #18 (comment) Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
Bazel5 available on Fedora:latest (36) -> closing FROM fedora:latest
RUN dnf -y install dnf-plugins-core \
&& dnf -y copr enable vbatts/bazel \
&& dnf -y install bazel5
RUN bazel version Trace last command
ps: Thx vbatts ! |
Docker hub just migrate
fedora:latest
tofedora:36
and we can't installbazel5
following the bazel install step....ref: https://hub.docker.com/_/fedora
ref: https://bazel.build/install/redhat
https://download.copr.fedorainfracloud.org/results/vbatts/bazel/fedora-35-x86_64/ (bazel5)
https://download.copr.fedorainfracloud.org/results/vbatts/bazel/fedora-36-x86_64/ (no bazel5)
Any ETA ?
EDIT: I don't know the fedora CI ecosystem but I guess there is some culprit here: https://copr.fedorainfracloud.org/coprs/vbatts/bazel/build/3493215/
ps: If you need/want to give away maintenance/ownership of this package let me know ;)
The text was updated successfully, but these errors were encountered: