bazel-team team mailing list archive
-
bazel-team team
-
Mailing list archive
-
Message #00035
Bug#983982: bazel-bootstrap: ftbfs with GCC-11
Package: src:bazel-bootstrap
Version: 3.5.1+ds-3
Severity: normal
Tags: sid bookworm
User: debian-gcc@xxxxxxxxxxxxxxxx
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/bazel-bootstrap_3.5.1+ds-3_unstable_gcc11.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
[1A[K
[1A[K
[1A[K
[1A[K
[1A[K[32m[121 / 1,598][0m 4 actions running
JavacBootstrap .../devtools/build/buildjar/libskylark-deps.jar; 47s local
@debian_proto_deps//:descriptor_proto; 37s local
Compiling src/main/protobuf/failure_details.pb.cc; 27s local
Compiling third_party/ijar/mapped_file_unix.cc; 0s local
[1A[K
[1A[K
[1A[K
[1A[K
[1A[K[31m[1mERROR: [0m/<<PKGBUILDDIR>>/third_party/ijar/BUILD:10:11: C++ compilation of rule '//third_party/ijar:zip' failed (Exit 1): gcc failed: error executing command
(cd /tmp/bazel_iK5QSBRe/out/execroot/io_bazel && \
exec env - \
CCACHE_DISABLE=1 \
CCACHE_TEMPDIR=/<<PKGBUILDDIR>>/debian/ccachetmp \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games \
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 -g '-std=c++0x' -Wdate-time '-D_FORTIFY_SOURCE=2' -g -O2 '-ffile-prefix-map=/<<PKGBUILDDIR>>=.' -fstack-protector-strong -Wformat '-Werror=format-security' -MD -MF bazel-out/k8-dbg/bin/third_party/ijar/_objs/zip/mapped_file_unix.pic.d '-frandom-seed=bazel-out/k8-dbg/bin/third_party/ijar/_objs/zip/mapped_file_unix.pic.o' -fPIC -DBLAZE_OPENSOURCE -iquote . -iquote bazel-out/k8-dbg/bin -iquote external/debian_cc_deps -iquote bazel-out/k8-dbg/bin/external/debian_cc_deps -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c third_party/ijar/mapped_file_unix.cc -o bazel-out/k8-dbg/bin/third_party/ijar/_objs/zip/mapped_file_unix.pic.o)
Execution platform: //:default_host_platform
[32m[122 / 1,598][0m 3 actions running
JavacBootstrap .../devtools/build/buildjar/libskylark-deps.jar; 47s local
@debian_proto_deps//:descriptor_proto; 37s local
Compiling src/main/protobuf/failure_details.pb.cc; 27s local
[1A[K
[1A[K
[1A[K
[1A[Kthird_party/ijar/mapped_file_unix.cc: In constructor 'devtools_ijar::MappedOutputFile::MappedOutputFile(const char*, size_t)':
third_party/ijar/mapped_file_unix.cc:115:21: error: 'numeric_limits' is not a member of 'std'
115 | std::numeric_limits<size_t>::max());
| ^~~~~~~~~~~~~~
third_party/ijar/mapped_file_unix.cc:115:42: error: expected primary-expression before '>' token
115 | std::numeric_limits<size_t>::max());
| ^
third_party/ijar/mapped_file_unix.cc:115:45: error: '::max' has not been declared; did you mean 'std::max'?
115 | std::numeric_limits<size_t>::max());
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from third_party/ijar/mapped_file_unix.cc:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: 'std::max' declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
[32m[122 / 1,598][0m 3 actions running
JavacBootstrap .../devtools/build/buildjar/libskylark-deps.jar; 47s local
@debian_proto_deps//:descriptor_proto; 37s local
Compiling src/main/protobuf/failure_details.pb.cc; 27s local
[1A[K
[1A[K
[1A[K
[1A[K[32mINFO: [0mElapsed time: 56.081s, Critical Path: 47.71s
[32m[125 / 1,598][0m checking cached actions
[1A[K[32mINFO: [0m89 processes: 89 local.
[32m[125 / 1,598][0m checking cached actions
[1A[K[31m[1mFAILED:[0m Build did NOT complete successfully
[1A[K[31m[1mFAILED:[0m Build did NOT complete successfully
[0m
ERROR: Could not build Bazel
make[1]: *** [debian/rules:58: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:54: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2