Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473522 - sys-devel/gdb-7.6 error: ‘SYS_perf_event_open’ undeclared
Summary: sys-devel/gdb-7.6 error: ‘SYS_perf_event_open’ undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/ml/gdb-patches...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-16 19:50 UTC by William Throwe
Modified: 2013-09-29 04:00 UTC (History)
1 user (show)

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


Attachments
build.log.gz (sys-devel:gdb-7.6:20130616-194048.log.gz,60.68 KB, application/gzip)
2013-06-16 19:50 UTC, William Throwe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Throwe 2013-06-16 19:50:51 UTC
Created attachment 351150 [details]
build.log.gz

i686-pc-linux-gnu-gcc -march=native -O2 -pipe -ggdb   -I. -I. -I./common -I./config -DLOCALEDIR="\"/home/supernova/wthrowe/gentoo/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/..  -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber  -I./gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/home/supernova/wthrowe/gentoo/usr/include/python2.7 -I/home/supernova/wthrowe/gentoo/usr/include/python2.7 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body  -c -o linux-btrace.o -MT linux-btrace.o -MMD -MP -MF .deps/linux-btrace.Tpo ./common/linux-btrace.c
...
./common/linux-btrace.c: In function ‘kernel_supports_btrace’:
./common/linux-btrace.c:316:23: error: ‘SYS_perf_event_open’ undeclared (first use in this function)
./common/linux-btrace.c:316:23: note: each undeclared identifier is reported only once for each function it appears in
./common/linux-btrace.c: In function ‘linux_enable_btrace’:
./common/linux-btrace.c:473:26: error: ‘SYS_perf_event_open’ undeclared (first use in this function)
make[2]: *** [linux-btrace.o] Error 1


$ emerge --info && emerge -pqv gdb

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/x86/13.0

You may use the following command to upgrade:

        eselect profile set default/linux/x86/13.0

Portage 2.2.01.22013-prefix (prefix/linux/x86, gcc-4.7.2, unavailable, 2.6.18-308.11.1.el5PAE i686)
=================================================================
System uname: Linux-2.6.18-308.11.1.el5PAE-i686-Intel-R-_Xeon-R-_CPU_5150_@_2.66GHz-with-redhat-5.8-Tikanga
KiB Mem:     4145608 total,    595504 free
KiB Swap:    3068404 total,   2258408 free
Timestamp of tree: Fri, 14 Jun 2013 20:40:27 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p39-r1
dev-lang/python:          2.7.3-r3, 3.3.0-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
Repositories: gentoo_prefix g-cpan
ACCEPT_KEYWORDS="x86-linux ~x86-linux"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/home/astrosun/wthrowe/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--ask"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unknown-features-warn unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/home/supernova/wthrowe/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/supernova/wthrowe/gentoo/"
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="/home/supernova/wthrowe/gentoo/var/tmp"
PORTDIR="/home/supernova/wthrowe/gentoo/usr/portage"
PORTDIR_OVERLAY="/home/supernova/wthrowe/gentoo/var/lib/g-cpan"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pcre prefix readline session ssl tcpd unicode x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, USE_PYTHON

[ebuild     U ] sys-devel/gdb-7.6 [7.5.1] USE="client nls python server zlib -expat -multitarget {-test} -vanilla"
Comment 1 SpanKY gentoo-dev 2013-08-15 18:42:01 UTC
seems like a mix of old glibc build with newer kernel headers would trigger this on more than just prefix
Comment 2 SpanKY gentoo-dev 2013-09-29 04:00:49 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix from upstream for building btrace on older systems
http://sources.gentoo.org/gentoo/src/patchsets/gdb/7.6.1/15_all_gdb-7.6-btrace.patch?rev=1.1
http://sources.gentoo.org/sys-devel/gdb/gdb-7.6.1.ebuild?r1=1.2&r2=1.3