Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530920 - media-libs/flac-1.3.1 compile failure - x86_64-pc-linux-gnu-gcc: error: gdb: No such file or directory
Summary: media-libs/flac-1.3.1 compile failure - x86_64-pc-linux-gnu-gcc: error: gdb: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 531038 531096 (view as bug list)
Depends on:
Blocks: CVE-2014-8962
  Show dependency tree
 
Reported: 2014-11-27 21:12 UTC by Ulrich Müller
Modified: 2014-11-29 08:40 UTC (History)
7 users (show)

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


Attachments
build.log (build.log,21.87 KB, text/plain)
2014-11-27 21:12 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2014-11-27 21:12:45 UTC
Created attachment 390420 [details]
build.log

Fails in src_compile with:

make[3]: Entering directory '/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1-abi_x86_64.amd64/src/share'
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/src/share -I../..  -I../.. -I/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/src/share/include -I/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/include -DNDEBUG  -DFLAC__USE_VISIBILITY_ATTR  -O3 -funroll-loops -march=core2 gdb  -pipe -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Wunreachable-code -Winline  -Wdeclaration-after-statement -D_FORTIFY_SOURCE=2 -fvisibility=hidden -msse2 -Wextra -c -o getopt/getopt.lo /var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/src/share/getopt/getopt.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/src/share -I../.. -I../.. -I/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/src/share/include -I/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/include -DNDEBUG -DFLAC__USE_VISIBILITY_ATTR -O3 -funroll-loops -march=core2 gdb -pipe -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wnested-externs -Wshadow -Wundef -Wmissing-declarations -Wunreachable-code -Winline -Wdeclaration-after-statement -D_FORTIFY_SOURCE=2 -fvisibility=hidden -msse2 -Wextra -c /var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1/src/share/getopt/getopt.c  -fPIC -DPIC -o getopt/.libs/getopt.o
x86_64-pc-linux-gnu-gcc: error: gdb: No such file or directory
Makefile:629: recipe for target 'getopt/getopt.lo' failed
make[3]: *** [getopt/getopt.lo] Error 1
make[3]: Leaving directory '/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1-abi_x86_64.amd64/src/share'
Makefile:415: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1-abi_x86_64.amd64/src'
Makefile:472: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/flac-1.3.1/work/flac-1.3.1-abi_x86_64.amd64'
Makefile:403: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-libs/flac-1.3.1::gentoo failed (compile phase):
 *   emake failed


Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.20, 3.16.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6570_@_2.10GHz-with-gentoo-2.2
KiB Mem:     3974832 total,   1029428 free
KiB Swap:    8388572 total,   8159500 free
Timestamp of tree: Thu, 27 Nov 2014 20:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.10 [enabled]
app-shells/bash:          3.2_p57, 4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r2
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.1.10-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.4, 4.7.4, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo emacs ulm local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -ggdb -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=core2 -ggdb -O2 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/lost+found"
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="/repo/portage"
PORTDIR_OVERLAY="/repo/layman/emacs /repo/layman/ulm-local /repo/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr ansi audiofile bash-completion bbdb berkdb bluetooth branding bzip2 cairo caps cdda cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus directfb dri dts dvd dvdr emacs emboss encode exif expat fam fbcon ffmpeg filecaps firefox flac fontconfig fortran gd gdbm ggi gif gimp glamor glut gmp gnuplot gpg gpm gsl gtk gtkhtml guile iconv idea ieee1394 imagemagick imap inotify ipv6 java jbig jpeg kpathsea latex lcms libcaca libnotify logrotate lua lzma mad math metric mmx mng modules motif mp3 mp4 mpeg mule multilib ncurses networking nls nocd nptl nscd nsplugin offensive ogg opengl openmp pam pango pcmcia pcre pdf pkcs11 plotutils png policykit portage portaudio postgres ppds preview-latex qt3support qt4 readline recode regex ruby sbcl sdl session skey smp sox speex spell sse sse2 ssl startup-notification svg t1lib tcpd tex tiff truetype udev udisks unicode upower usb v4l vorbis wifi wxwidgets x264 xattr xcb xft xml xpm xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CURL_SSL="openssl" 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 keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p" USERLAND="GNU" VIDEO_CARDS="fbdev intel i965 vesa" 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, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/flac-1.3.0-r1 was built with the following:
USE="cxx ogg sse -3dnow (-altivec) -debug -static-libs" ABI_X86="64 -32 -x32"
Comment 1 Ulrich Müller gentoo-dev 2014-11-27 21:13:47 UTC
I forgot to mention that media-libs/flac-1.3.0-r1 builds without any problems.
Comment 2 Alexander Tsoy 2014-11-27 21:34:42 UTC
This bug is triggered by -ggdb option in CFLAGS. From configure.ac:

349 if test "x$debug" = xtrue; then
350         CPPFLAGS="-DDEBUG $CPPFLAGS"
351         CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
352         CFLAGS="-g $CFLAGS"
353 else
354         CPPFLAGS="-DNDEBUG $CPPFLAGS"
355         CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
356         CFLAGS="-O3 -funroll-loops $CFLAGS"
357 fi
Comment 3 Ulrich Müller gentoo-dev 2014-11-27 22:16:37 UTC
That's really bad code. It will fail not only for -ggdb but for any compiler option that has "-g" as part of its name. gcc has many of those.
Comment 4 Alexander Tsoy 2014-11-27 23:21:14 UTC
Yeah, the following commit should be reverted:
https://git.xiph.org/?p=flac.git;a=commitdiff;h=f73c82a73d47770283270692901987c509b8266e
Comment 5 Patrick Lauer gentoo-dev 2014-11-28 02:32:32 UTC
Wow. Many sad. Much fail.

This will also fail to detect -O1 properly, and other combinations.
Comment 6 Mike Gilbert gentoo-dev 2014-11-28 03:30:28 UTC
Another instance of this:

x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-frecordcc-switches’
Comment 7 Marien Zwart (RETIRED) gentoo-dev 2014-11-28 11:01:01 UTC
As that sed is missing a "g" flag (replace more than once) there is an easy workaround: prepend -g to your normal CFLAGS :) Flac's build system will consume it, and any further flags containing "-g" will pass through unharmed.
Comment 8 Tim Harder gentoo-dev 2014-11-28 14:02:25 UTC
Fixed in flac-1.3.1-r1.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-28 21:06:51 UTC
*** Bug 531038 has been marked as a duplicate of this bug. ***
Comment 10 Tim Harder gentoo-dev 2014-11-29 08:40:37 UTC
*** Bug 531096 has been marked as a duplicate of this bug. ***