Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790116 - dev-util/bazel-3.7.2: external/upb/upb/table.c:588:10: error: 'val.val' may be used uninitialized in this function (gcc-{10,11} -O3)
Summary: dev-util/bazel-3.7.2: external/upb/upb/table.c:588:10: error: 'val.val' may b...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
Depends on:
Reported: 2021-05-14 06:59 UTC by Stefan Strogin
Modified: 2021-11-22 15:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,194.59 KB, text/plain)
2021-05-14 06:59 UTC, Stefan Strogin

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Strogin gentoo-dev 2021-05-14 06:59:29 UTC
Created attachment 708216 [details]

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"


Happens only with -O3, builds fine with -O2.
Comment 1 Stefan Strogin gentoo-dev 2021-11-08 21:11:10 UTC
Still the same with bazel-3.7.2-r1 and gcc 10.3.0-r2 or 11.2.0 as well.