Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473716 - 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
Summary: dev-util/systemtap-1.6 - session.cxx: In constructor ‘systemtap_session::syst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on: 500728
Blocks:
  Show dependency tree
 
Reported: 2013-06-18 16:06 UTC by Tomáš Chaloupka
Modified: 2014-03-04 00:15 UTC (History)
15 users (show)

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


Attachments
dev-util:systemtap-1.6:20130619-010939.log (20130619-010939.log,15.89 KB, text/plain)
2013-06-19 01:11 UTC, Jeroen Roovers (RETIRED)
Details
dev-util/systemtap-1.6 build.log (build.log,15.30 KB, text/plain)
2014-02-04 04:11 UTC, Randall Wald
Details
Patch for cxx11 (systemtap-1.6-cxx11.patch,1.54 KB, patch)
2014-02-22 21:03 UTC, Bodo Thiesen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Chaloupka 2013-06-18 16:06:43 UTC
Stable ststemtap-1.6 fails to build with error:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-util/systemtap-1.6/work/systemtap-1.6 ...
make -j5 
/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
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....
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

Reproducible: Always

Steps to Reproduce:
1.emerge =dev-util/systemtap-1.6

Actual Results:  
Build fails

Expected Results:  
Build success

emerge --info

Portage 2.2.0_alpha180 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.15-r3, 3.9.6-gentoo x86_64)
=================================================================
System uname: Linux-3.9.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16126568 total,    350576 free
KiB Swap:    2627288 total,   1491076 free
Timestamp of tree: Tue, 18 Jun 2013 15:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5, 3.3.2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
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.22-r1
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo my games nektoo gamerlay steam-overlay calculate ago java
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA skype-eula google-talkplugin CANON Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --with-bdeps=y --autounmask --autounmask-write --keep-going"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage /var/lib/portage/layman/games /var/lib/portage/layman/nektoo /var/lib/portage/layman/gamerlay /var/lib/portage/layman/steam /var/lib/portage/layman/calculate /var/lib/portage/layman/ago /var/lib/portage/layman/java"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth bluray branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm graphicsmagick iconv icu ipv6 jpeg jpeg2k kde kipi lcms ldap lensfun libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opencl opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 raw readline samba sdl semantic-desktop session slang spell spice sse sse2 sse3 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb usbredir v4l2 vaapi vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf 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" DVB_CARDS="tda10045" 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 ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev mouse keyboard joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="epson snapscan" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Tomáš Chaloupka 2013-06-18 16:17:12 UTC
Maybe 2.x should be stabilised? (dev-util/systemtap-2.2 builds ok)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 01:06:24 UTC
Please attach the entire build log to this bug report.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 01:11:42 UTC
Created attachment 351360 [details]
dev-util:systemtap-1.6:20130619-010939.log

Confirmed with sys-devel/gcc-4.7.3.
Comment 4 Till Schäfer 2014-02-03 12:26:08 UTC
same here. 

since icedtea-7.2.4.5 now hard depends on systemtap on amd64 this bug becomes more important.
Comment 5 Randall Wald 2014-02-04 04:11:56 UTC
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
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2014-02-05 01:35:25 UTC
Same here. Looks like a standard gcc-4.7 upgrade problem. Investigating.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2014-02-05 01:57:13 UTC
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?
Comment 8 Rostislav Devyatov 2014-02-08 22:49:42 UTC
Encountered the same error today during world update (new icedtea dependency)
Comment 9 Phy 2014-02-10 01:24:26 UTC
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
Comment 10 Bodo Thiesen 2014-02-22 21:03:34 UTC
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
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2014-03-04 00:15:24 UTC
fixed in systemtap-2.4 (stable now)