Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550454 - sys-libs/glibc check for gold linker causes emerge failure with -Wl,--verbose
Summary: sys-libs/glibc check for gold linker causes emerge failure with -Wl,--verbose
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-26 11:27 UTC by Adrian Bassett
Modified: 2015-05-29 04:21 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 Adrian Bassett 2015-05-26 11:27:00 UTC
Re-building glibc-2.20-r2 for the first time since the change (17th March) to invoke the 'new tc-ld-disable-gold helper', cf. /usr/portage/sys-libs/glibc/ChangeLog, fails if -Wl--verbose is passed as an option to gcc.  For forgotten reasons this has been the case on my system when debug (-ggdb) is enabled but has not previously caused problems.

--verbose causes ld to 'list the linker emulations supported' which leads to the following output in my case:

GNU ld (Gentoo 2.25 p1.2) 2.25
  Supported emulations:
   elf_x86_64
   elf32_x86_64
   elf_i386
   i386linux
   elf_l1om
   elf_k1om

and the following diagnostic:

/var/tmp/portage/sys-libs/glibc-2.20-r2/work/build-x86-x86_64-pc-linux-gnu-nptl/config.make:69: *** missing separator.  Stop.

Removing --verbose from the options passed fixes things and the build then succeeds.

Reproducible: Always
Comment 1 Adrian Bassett 2015-05-26 16:48:34 UTC
(In reply to Adrian.Bassett from comment #0)

> /usr/portage/sys-libs/glibc/ChangeLog, fails if -Wl--verbose is passed as an

Typo: should read -Wl,--verbose
Comment 2 SpanKY gentoo-dev 2015-05-29 04:21:59 UTC
welcome to the wonderful world of portability.  a lot of configure compiler checks are implemented by basically grepping the output because there is no other sane way of detecting "is this flag supported" across a variety of toolchains.

using -Wl,--verbose in LDFLAGS is dangerous (can lead to both build failures like this and silent change in behavior when configure tests go the wrong way but still build).  i have no plans to try and support this.

also, you must provide full build logs as attachments as well as emerge info with every bug report.  we often cannot work by tiny snippets.