Summary: | dev-util/systemtap-1.6 - session.cxx: In constructor ‘systemtap_session::systemtap_session()’: session.cxx:112:43: error: ‘getpid’ was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tomáš Chaloupka <chalucha> |
Component: | [OLD] Development | Assignee: | Sven Wegener <swegener> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex, alonbl, asturm, bothie, bugs.gentoo.org, david.w.noon, dilfridge, forrestfunk81, lkd-gentoo, nbowler, olivier, rdwald, sir_tuam, tobias.pal, walch.martin |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 500728 | ||
Bug Blocks: | |||
Attachments: |
dev-util:systemtap-1.6:20130619-010939.log
dev-util/systemtap-1.6 build.log Patch for cxx11 |
Description
Tomáš Chaloupka
2013-06-18 16:06:43 UTC
Maybe 2.x should be stabilised? (dev-util/systemtap-2.2 builds ok) Please attach the entire build log to this bug report. Created attachment 351360 [details]
dev-util:systemtap-1.6:20130619-010939.log
Confirmed with sys-devel/gcc-4.7.3.
same here. since icedtea-7.2.4.5 now hard depends on systemtap on amd64 this bug becomes more important. Created attachment 369498 [details] dev-util/systemtap-1.6 build.log I'm also experiencing this bug. I've attached my full build.log, and my emerge --info is below. Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.7-gentoo-r1.2 x86_64) ================================================================= System uname: Linux-3.10.7-gentoo-r1.2-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.2 KiB Mem: 8064192 total, 1280624 free KiB Swap: 10485756 total, 9266040 free Timestamp of tree: Tue, 04 Feb 2014 03:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5-r3, 3.3.3 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo sunrise rwald steam-overlay bumblebee ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/rwald /var/lib/layman/steam /var/lib/layman/bumblebee" USE="64bit X a52 aac aalib acl acpi aim alsa amd64 animgif anthy applet audacious bash-completion berkdb bidi bittorrent bluetooth branding bzip2 cairo caps cdda cddb cdr cjk cli console consolekit cracklib crypt css cups curl cxx darcs dbus device-mapper directfb djvu dri dts dvd dvdr dvi emboss enca encode exif faac fam fat fbcon fbcondecor fbsplash flac fontconfig fortran ftp fts3 gcj gdbm gecko-mediaplayer gif gimp git gmail gnutls gpg gpm gs gtk hdaps hddtemp hdf iconv icq icu id3 id3tag ieee1394 imagemagick imap ipv6 irc jabber java java6 javascript jingle john jpeg kdrive kerberos kernel-patch kpathsea lame laptop latex lcms ldap libcaca libnotify lm_sensors lzma mad matroska md5sum mmx mng modules mono moonlight mp3 mp4 mpeg mplayer msn mtp multilib musicbrainz mysql ncurses nethack nls nptl nsplugin ntfs ntfsprogs nvidia offensive ogg opengl openmp pam pango pcre pdf pidgin png policykit pop ppds prediction prime pulseaudio qt-static qt3support rar raw readline real science sdl secure-delete session smtp spell sqlite sse sse2 ssl stream subversion svg system-sqlite tcpd theora threads thunderbird tiff timidity truetype udev udisks uim unicode upower usb v4l v4l2 vaapi vdpau vim vim-syntax vlm vorbis wav webkit wifi wma wordperfect wxwidgets x264 xcb xcomposite xft xml xscreensaver xv xvid xvmc yahoo zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US ja ja_JP es es_MX es_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON Same here. Looks like a standard gcc-4.7 upgrade problem. Investigating. getpid and getcwd can be pulled in by standard gcc-4.7 and above procedure, see patch below. diff -ruN systemtap-1.6.orig/session.cxx systemtap-1.6/session.cxx --- systemtap-1.6.orig/session.cxx 2011-07-25 20:12:01.000000000 +0200 +++ systemtap-1.6/session.cxx 2014-02-05 02:44:25.043147376 +0100 @@ -30,6 +30,8 @@ #include <sys/stat.h> #include <sys/utsname.h> #include <elfutils/libdwfl.h> +#include <sys/types.h> +#include <unistd.h> } #if HAVE_NSS Unfortunately that does not really help since afterwards we end up with a new error message, translate.cxx: In function ‘void emit_symbol_data(systemtap_session&)’: translate.cxx:5572:78: error: narrowing conversion of ‘-1’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Werror=narrowing] cc1plus: all warnings being treated as errors make[2]: *** [stap-translate.o] Error 1 1) Nothing should build with -Werror (against tree policy) 2) Nevertheless this is fishy enough that I dont want to simply patch it out. systemtap-2.4 builds fine. Sven, can we please please stabilize that asap? Encountered the same error today during world update (new icedtea dependency) I've also encountered this error. Portage 2.2.7 (default/linux/amd64/13.0/no-multilib, gcc-4.7.3, glibc-2.16.0, 3.10.25-gentoo-SunDowner x86_64) ================================================================= System uname: Linux-3.10.25-gentoo-SunDowner-x86_64-Intel-R-_Core-TM-_i7-4930K_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16352152 total, 11098192 free KiB Swap: 31457276 total, 31457276 free Timestamp of tree: Sun, 09 Feb 2014 16:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5-r3, 3.3.2-r2 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx-i -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=core-avx-i -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" etc etc. make -j9 /bin/sh ./git_version.sh -k -s . -o git_version.h git_version.sh: Output is new file, creating git_version.h make all-recursive make[1]: Entering directory `/var/tmp/portage/dev-util/systemtap-1.6/work/systemtap-1.6' Making all in . make[2]: Entering directory `/var/tmp/portage/dev-util/systemtap-1.6/work/systemtap-1.6' CXX stap-main.o CXX stap-session.o CXX stap-parse.o CXX stap-staptree.o CXX stap-elaborate.o CXX stap-translate.o CXX stap-buildrun.o CXX stap-tapsets.o CC stap-loc2c.o session.cxx: In constructor ‘systemtap_session::systemtap_session()’: session.cxx:112:43: error: ‘getpid’ was not declared in this scope session.cxx: In member function ‘void systemtap_session::check_options(int, char* const*)’: session.cxx:1222:34: error: ‘getcwd’ was not declared in this scope make[2]: *** [stap-session.o] Error 1 make[2]: *** Waiting for unfinished jobs.... translate.cxx: In function ‘void emit_symbol_data(systemtap_session&)’: translate.cxx:5572:78: error: narrowing conversion of ‘-1’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Werror=narrowing] cc1plus: all warnings being treated as errors make[2]: *** [stap-translate.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-util/systemtap-1.6/work/systemtap-1.6' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/systemtap-1.6/work/systemtap-1.6' make: *** [all] Error 2 emake failed Created attachment 371088 [details, diff] Patch for cxx11 (In reply to Andreas K. Hüttel from comment #7) > translate.cxx: In function ‘void emit_symbol_data(systemtap_session&)’: > translate.cxx:5572:78: error: narrowing conversion of ‘-1’ from ‘int’ to > ‘long unsigned int’ inside { } is ill-formed in C++11 [-Werror=narrowing] > cc1plus: all warnings being treated as errors > make[2]: *** [stap-translate.o] Error 1 > > 2) Nevertheless this is fishy enough that I dont want to simply patch it out. Almost no problem here. Just replace ~0 by ~0LU. However, there are a few additional problems that show up then ... -> patch Regards, Bodo fixed in systemtap-2.4 (stable now) |