Summary: | media-libs/flac-1.3.1 compile failure - x86_64-pc-linux-gnu-gcc: error: gdb: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ulrich Müller <ulm> |
Component: | [OLD] Library | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, ansla80, floppym, marienz, mgorny, niks1024, patrick |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 530288 | ||
Attachments: | build.log |
Description
Ulrich Müller
2014-11-27 21:12:45 UTC
I forgot to mention that media-libs/flac-1.3.0-r1 builds without any problems. 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 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. Yeah, the following commit should be reverted: https://git.xiph.org/?p=flac.git;a=commitdiff;h=f73c82a73d47770283270692901987c509b8266e Wow. Many sad. Much fail. This will also fail to detect -O1 properly, and other combinations. Another instance of this: x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-frecordcc-switches’ 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. Fixed in flac-1.3.1-r1. *** Bug 531038 has been marked as a duplicate of this bug. *** *** Bug 531096 has been marked as a duplicate of this bug. *** |