Created attachment 708216 [details] build.log ERROR: /var/tmp/portage/dev-util/bazel-3.7.2/temp/bazel_1276vHji/out/external/upb/BUILD:57:11: C++ compilation of rule '@upb//:upb' failed (Exit 1): gcc failed: error executing command (cd /var/tmp/portage/dev-util/bazel-3.7.2/temp/bazel_1276vHji/out/execroot/io_bazel && \ exec env - \ LD_LIBRARY_PATH=/usr/lib64/openjdk-11/lib/:/usr/lib64/openjdk-11/lib/server/ \ PATH=/usr/lib64/openjdk-11/bin:/usr/lib/portage/python3.9/ebuild-helpers/xattr:/usr/lib/portage/python3.9/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/12/bin:/usr/lib/llvm/11/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 -MD -MF bazel-out/k8-opt/bin/external/upb/_objs/upb/table.d '-frandom-seed=bazel-out/k8-opt/bin/external/upb/_objs/upb/table.o' -iquote external/upb -iquote bazel-out/k8-opt/bin/external/upb '-march=skylake' -O3 -pipe -Werror -Wno-long-long -pedantic -Wstrict-prototypes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/upb/upb/table.c -o bazel-out/k8-opt/bin/external/upb/_objs/upb/table.o) Execution platform: //:default_host_platform external/upb/upb/table.c: In function 'upb_inttable_pop': external/upb/upb/table.c:588:10: error: 'val.val' may be used uninitialized in this function [-Werror=maybe-uninitialized] 588 | return val; | ^~~ cc1: all warnings being treated as errors Target //src:bazel_nojdk failed to build INFO: Elapsed time: 431.542s, Critical Path: 22.45s INFO: 333 processes: 10 internal, 323 local. FAILED: Build did NOT complete successfully ERROR: Could not build Bazel --- $ emerge -pqv '=dev-util/bazel-3.7.2::gentoo' [ebuild R ] dev-util/bazel-3.7.2 USE="-examples (-prefix) -static-libs -tools" x86_64-pc-linux-gnu-10.3.0 Happens only with -O3, builds fine with -O2.
Still the same with bazel-3.7.2-r1 and gcc 10.3.0-r2 or 11.2.0 as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=937bb2fe50b5f938cca85d4a3b2ba55dbf71e617 commit 937bb2fe50b5f938cca85d4a3b2ba55dbf71e617 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2024-02-24 12:50:14 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2024-02-24 12:50:14 +0000 dev-build/bazel: treeclean Bug: https://bugs.gentoo.org/878501 Closes: https://bugs.gentoo.org/906914 Closes: https://bugs.gentoo.org/917689 Closes: https://bugs.gentoo.org/918703 Closes: https://bugs.gentoo.org/634046 Closes: https://bugs.gentoo.org/652776 Closes: https://bugs.gentoo.org/687538 Closes: https://bugs.gentoo.org/747370 Closes: https://bugs.gentoo.org/766243 Closes: https://bugs.gentoo.org/790116 Closes: https://bugs.gentoo.org/820179 Closes: https://bugs.gentoo.org/820182 Closes: https://bugs.gentoo.org/832935 Closes: https://bugs.gentoo.org/837023 Closes: https://bugs.gentoo.org/846464 Closes: https://bugs.gentoo.org/858314 Closes: https://bugs.gentoo.org/867292 Closes: https://bugs.gentoo.org/872455 Closes: https://bugs.gentoo.org/884477 Closes: https://bugs.gentoo.org/895300 Closes: https://bugs.gentoo.org/909434 Closes: https://bugs.gentoo.org/917257 Closes: https://bugs.gentoo.org/919798 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-build/bazel/Manifest | 7 -- dev-build/bazel/bazel-3.7.2-r1.ebuild | 117 --------------------- dev-build/bazel/bazel-4.2.2.ebuild | 100 ------------------ dev-build/bazel/bazel-5.0.0.ebuild | 96 ----------------- dev-build/bazel/bazel-5.1.1.ebuild | 96 ----------------- dev-build/bazel/bazel-5.3.0.ebuild | 102 ------------------ dev-build/bazel/bazel-6.2.0.ebuild | 102 ------------------ dev-build/bazel/bazel-6.4.0.ebuild | 102 ------------------ .../bazel-3.2.0-include-limits-for-gcc-11.patch | 25 ----- .../bazel-3.7.2-musl-temp-failure-retry.patch | 34 ------ .../files/bazel-4.2.2-absl_numeric_limits.patch | 41 -------- dev-build/bazel/metadata.xml | 20 ---- profiles/package.mask | 15 --- profiles/updates/1Q-2024 | 1 - 14 files changed, 858 deletions(-)