Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278910 - media-sound/mpd-0.15 does not builds with -fomit-frame-pointer
Summary: media-sound/mpd-0.15 does not builds with -fomit-frame-pointer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-24 08:31 UTC by Vladimir Rusinov
Modified: 2009-07-24 10:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Rusinov 2009-07-24 08:31:31 UTC
# emerge media-sound/mpd
<...>
if x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I.  -I./src -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include           -I/usr/include  -pthread -D_REENTRANT -I/usr/include/libmodplug        -I/usr/include/libcue-1.3       -I/usr/include/alsa     -pthread   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Wextra -Wno-deprecated-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -D_GNU_SOURCE     -pg -march=native -O3 -pipe -fomit-frame-pointer -MT src_mpd-archive_api.o -MD -MP -MF ".deps/src_mpd-archive_api.Tpo" -c -o src_mpd-archive_api.o `test -f 'src/archive_api.c' || echo './'`src/archive_api.c; \
        then mv -f ".deps/src_mpd-archive_api.Tpo" ".deps/src_mpd-archive_api.Po"; else rm -f ".deps/src_mpd-archive_api.Tpo"; exit 1; fi
x86_64-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible

$ gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.2-r3 p1.6, pie-10.1.5'
Thread model: posix
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)

CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"

Build fine without -fomit-frame-pointer

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-07-24 09:00:34 UTC
Yes, you added USE="profile",

[-    ] profile - Adds support for software performance analysis (will likely vary from ebuild to ebuild)

Which adds -pg as expected to CFLAGS, and of course you can't use optimizations when profiling.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-07-24 10:44:38 UTC
reopening to change status
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-07-24 10:45:05 UTC
added a filter-flags for -fomit-frame-pointer if someone else mistakenly enables USE=profile

thanks