Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789795 - dev-util/systemtap-4.5 - bpf-translate.cxx: error: num may be used uninitialized in this function [-Werror=maybe-uninitialized]
Summary: dev-util/systemtap-4.5 - bpf-translate.cxx: error: num may be used uninitiali...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2021-05-13 07:53 UTC by Toralf Förster
Modified: 2021-11-04 20:07 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.20 KB, text/plain)
2021-05-13 07:53 UTC, Toralf Förster
Details
dev-util:systemtap-4.5:20210512-235839.log (dev-util:systemtap-4.5:20210512-235839.log,46.83 KB, text/plain)
2021-05-13 07:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,216.25 KB, text/plain)
2021-05-13 07:53 UTC, Toralf Förster
Details
environment (environment,108.10 KB, text/plain)
2021-05-13 07:53 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.69 KB, application/x-bzip)
2021-05-13 07:53 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,11.96 KB, application/x-bzip)
2021-05-13 07:53 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,29.16 KB, application/x-bzip)
2021-05-13 07:53 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-13 07:53:49 UTC
bpf-translate.cxx:1214:34: error: ‘num’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1214 |       return this_prog.lookup_reg(num);
      |              ~~~~~~~~~~~~~~~~~~~~^~~~~
cc1plus: all warnings being treated as errors
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/libexec/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap-4.5"' -DPYEXECDIR='"/usr/lib/python3.8/site-packages"' -DPY3EXECDIR='"/usr/lib/python3.8/site-packages"' -I./includes -I./includes/sys -DSTAP_SDT_V2  -I/usr/include/nss -I/usr/include/nspr   -Wall -Wextra -Werror -fPIE  -I/usr/include/nss -I/usr/include/nspr  -fstack-protector-all -D_FORTIFY_SOURCE=2 -pipe -march=native -fno-diagnostics-color  -Og -g -c -o stap-cscommon.o `test -f 'cscommon.cxx' || echo './'`cscommon.cxx

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j2-20210510-165205

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-9.3.1
 [3] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Rust versions:
  [1]   rust-bin-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed May 12 22:20:25 UTC 2021

emerge -qpvO dev-util/systemtap
[ebuild  N    ] dev-util/systemtap-4.5  USE="ssl -libvirt (-selinux) -sqlite -test -zeroconf" PYTHON_SINGLE_TARGET="python3_8 -python3_7 -python3_9"
Comment 1 Toralf Förster gentoo-dev 2021-05-13 07:53:50 UTC
Created attachment 707859 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-13 07:53:52 UTC
Created attachment 707862 [details]
dev-util:systemtap-4.5:20210512-235839.log
Comment 3 Toralf Förster gentoo-dev 2021-05-13 07:53:53 UTC
Created attachment 707865 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-13 07:53:55 UTC
Created attachment 707868 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-13 07:53:56 UTC
Created attachment 707871 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-13 07:53:57 UTC
Created attachment 707874 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-13 07:53:58 UTC
Created attachment 707877 [details]
temp.tar.bz2
Comment 8 Ionen Wolkens gentoo-dev 2021-05-13 08:32:22 UTC
Needed CXXFLAGS=-Og to reproduce the warning (happens with both gcc10 and 11).
Comment 9 Larry the Git Cow gentoo-dev 2021-11-04 20:07:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f34a5e36c7ec1608f4752d2eda545751da14846c

commit f34a5e36c7ec1608f4752d2eda545751da14846c
Author:     Alessandro Barbieri <lssndrbarbieri@gmail.com>
AuthorDate: 2021-11-03 17:56:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-04 20:04:38 +0000

    dev-util/systemtap: EAPI 8
    
    bump python
    autoreconf
    
    Closes: https://bugs.gentoo.org/789795
    Closes: https://bugs.gentoo.org/820029
    Closes: https://bugs.gentoo.org/820155
    Closes: https://bugs.gentoo.org/532570
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/22808
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/systemtap/systemtap-4.5-r1.ebuild | 117 +++++++++++++++++++++++++++++
 1 file changed, 117 insertions(+)