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.