Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380975 - dev-util/google-perftools-1.8.3 won't build with -fomit-frame-pointer on amd64, even when libunwind is available
Summary: dev-util/google-perftools-1.8.3 won't build with -fomit-frame-pointer on amd6...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 382005
Blocks:
  Show dependency tree
 
Reported: 2011-08-28 20:33 UTC by emerald
Modified: 2012-07-09 10:27 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,24.70 KB, text/plain)
2011-08-28 22:05 UTC, emerald
Details
build.log (build.log,97.54 KB, text/plain)
2011-08-28 22:06 UTC, emerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emerald 2011-08-28 20:33:11 UTC
google-perftools-1.8.3 don't build on amd64 with -fomit-frame-pointer in cflags, even with libunwind available or also -funwind-tables given as compiler flag:

libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -DNO_FRAME_POINTER -fno-exceptions -march=core2 -march=native -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mfpmath=sse -maccumulate-outgoing-args -O2 -ggdb -pipe -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -funwind-tables -fno-strict-aliasing -c src/memory_region_map.cc  -fPIC -DPIC -o .libs/libtcmalloc_internal_la-memory_region_map.o
/bin/sh ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I./src  -I./src   -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result  -DNO_FRAME_POINTER -march=core2 -march=native -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mfpmath=sse -maccumulate-outgoing-args -O2 -ggdb -pipe -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -funwind-tables -fno-strict-aliasing -c -o stacktrace.lo `test -f 'src/stacktrace.cc' || echo './'`src/stacktrace.cc
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -DNO_FRAME_POINTER -march=core2 -march=native -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -mfpmath=sse -maccumulate-outgoing-args -O2 -ggdb -pipe -fomit-frame-pointer -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -funwind-tables -fno-strict-aliasing -c src/stacktrace.cc  -fPIC -DPIC -o .libs/stacktrace.o
In file included from src/stacktrace.cc:57:0:
src/stacktrace_config.h:61:5: error: #error Cannnot calculate stack trace: need either libunwind or frame-pointers (see INSTALL file)
src/stacktrace.cc:109:3: error: #error Cannot calculate stack trace: will need to write for your environment
make: *** [stacktrace.lo] Error 1
 * ERROR: dev-util/google-perftools-1.8.3 failed (compile phase):
 *   emake failed
Comment 1 Agostino Sarubbo gentoo-dev 2011-08-28 21:57:43 UTC
Please add your emerge --info and full build log as attachment
Comment 2 emerald 2011-08-28 22:05:22 UTC
Created attachment 284945 [details]
emerge --info
Comment 3 emerald 2011-08-28 22:06:29 UTC
Created attachment 284947 [details]
build.log
Comment 4 Helmut Jarausch 2011-08-29 08:19:40 UTC
(In reply to comment #0)
> google-perftools-1.8.3 don't build on amd64 with -fomit-frame-pointer in
> cflags, even with libunwind available or also -funwind-tables given as compiler

It fails here, as well, even without the -fomit-frame-pointer compiler switch.
Helmut.
Comment 5 Ivan Iraci 2011-08-29 09:55:53 UTC
(In reply to comment #4)

> It fails here, as well, even without the -fomit-frame-pointer compiler switch.
> Helmut.

Same here.
Ivan.
Comment 6 emerald 2011-08-29 16:07:39 UTC
According to http://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/Optimize-Options.html#Optimize-Options
for amd64 the line
-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging.
is true, so -fomit-frame-pointer is enabled by default when using optimization, to build google-perftools -fno-omit-frame-pointer has to be explicitly specified in CFLAGS.
Comment 7 Julien Sanchez archtester 2011-08-30 10:27:21 UTC
Same failure with gcc 4.4.5
gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5)
Comment 8 Alexander 2011-08-31 19:56:41 UTC
same here


x86_64-pc-linux-gnu-4.6.1
Comment 9 Maks Verver 2011-09-06 03:33:46 UTC
I think this is just a symptom of Gentoo's port of libunwind-1.0 being broken; I'm about to make a separate bug report for that.

Try masking libunwind-1.0 (by adding "=sys-libs/libunwind-1.0" to /etc/portage/package.mask); that'll probably solve the problem for now.
Comment 10 Christophe Philemotte 2011-09-07 12:50:54 UTC
same here on ~amd64

emerge --info
Portage 2.1.10.14 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.11.3-r0, 2.6.35-gentoo-r15 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r15-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 07 Sep 2011 07:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r1, 2.7.2-r2, 3.1.3-r1, 3.2-r2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: keruspe x-overlay gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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="-O2 -pipe -march=core2"
DISTDIR="/home/backup/gentoo/portage//distfiles/"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.tiscali.nl/pub/mirror/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/backup/gentoo/portage"
PORTDIR_OVERLAY="/var/lib/layman/keruspe /home/backup/gentoo/overlay /home/backup/gentoo/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx daap dbus dri dts dvd dvdr emboss encode exif fam firefox flac fontconfig fortran gdbm gdu gif gnome gnutls gpm gstreamer gtk iconv ipv6 java jpeg latex lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl png policykit postscript ppds pppd python qt3support qt4 readline rtf sdl session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff tk truetype udev unicode usb v4l v4l2 vim-syntax vorbis x264 xattr xcb xinerama xml xorg xulrunner xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Christophe Philemotte 2011-09-07 12:53:49 UTC
(In reply to comment #9)
> I think this is just a symptom of Gentoo's port of libunwind-1.0 being broken;
> I'm about to make a separate bug report for that.
> 
> Try masking libunwind-1.0 (by adding "=sys-libs/libunwind-1.0" to
> /etc/portage/package.mask); that'll probably solve the problem for now.

Masking libunwind-1.0 resolves the problem for me.
Comment 12 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-09 10:27:51 UTC
This should have been fixed at this point.