Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269288 - sys-devel/binutils: gold linker does not support -Wl,-z,{no,}{lazy,now}
Summary: sys-devel/binutils: gold linker does not support -Wl,-z,{no,}{lazy,now}
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Keywords:
: 269469 269470 271553 (view as bug list)
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2009-05-10 18:17 UTC by Ryan Tandy
Modified: 2009-06-23 11:33 UTC (History)
6 users (show)

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 Ryan Tandy 2009-05-10 18:17:32 UTC
checking for C compiler default output file name... 
configure: error: in `/var/tmp/portage/x11-base/xorg-server-1.5.3-r6/work/xorg-server-1.5.3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

configure:3787: checking for C compiler default output file name
configure:3809: i686-pc-linux-gnu-gcc -Os -march=native -fomit-frame-pointer -pipe  -Wl,-O1 -Wl,-z,lazy conftest.c  >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld: lazy: unknown -z option
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:3813: $? = 1

$ grep lazy /usr/portage/eclass/x-modular.eclass
182:		append-ldflags -Wl,-z,lazy

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 10 May 2009 15:15:02 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=native -fomit-frame-pointer -pipe"
CHOST="i686-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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.osuosl.org/pub/gentoo"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3 -s"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 acpi aio alsa async bzip2 cairo cdio custom-cflags custom-optimization cxx dvd expat faad fam gecko gif glibc-omitfp glitz gold hpn id3 idn jpeg lzma mad midi mmap mmx mmxext mp3 multiuser ncurses nethack network network-cron nptl nsplugin ogg opengl openmp pam pcre png quicktime readline rtc sha512 sse sse2 ssl ssse3 svg symlink theora threads threadsafe truetype unicode urandom vdpau vim-syntax vim-with-x vorbis webdav-neon win32codecs x264 x86 xcb xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 PaX Team 2009-05-10 20:12:00 UTC
looks like there's no -z now support in gold?
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-05-10 21:02:33 UTC
Please don't take this the wrong way, but there's little I can do here. I'm
actually very interested in seeing gold reaching the stability of binutils' ld,
but we just don't have the resources to go looking into that right now.

Please get in touch with upstream (using FreeDesktop's bugzilla) and paste the
URL here so I can keep track of potential patches.

Thanks
Comment 3 SpanKY gentoo-dev 2009-05-10 21:32:04 UTC
packages shouldnt go changing anything with gold.  gold instead needs to change.
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-11 21:51:53 UTC
*** Bug 269470 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2009-05-12 01:09:20 UTC
*** Bug 269469 has been marked as a duplicate of this bug. ***
Comment 6 Alejandro Muñiz 2009-05-12 08:29:38 UTC
(In reply to comment #1)
> looks like there's no -z now support in gold?
> 

yes, there are -z option.. looks like a bad argument supplied
Comment 7 Alejandro Muñiz 2009-05-12 11:49:56 UTC
ld -z args are those (lazy doesn't exists):

  -z combreloc                Sort dynamic relocs
  -z nocombreloc              Do not sort dynamic relocs
  -z common-page-size=SIZE    Set common page size to SIZE
  -z defs                     Report undefined symbols (even with --shared)
  -z execstack                Mark output as requiring executable stack
  -z max-page-size=SIZE       Set maximum page size to SIZE
  -z noexecstack              Mark output as not requiring executable stack
  -z initfirst                Mark DSO to be initialized first at runtime
  -z interpose                Mark object to interpose all DSOs but executable
  -z loadfltr                 Mark object requiring immediate process
  -z nodefaultlib             Mark object not to use default search paths
  -z nodelete                 Mark DSO non-deletable at runtime
  -z nodlopen                 Mark DSO not available to dlopen
  -z nodump                   Mark DSO not available to dldump
  -z relro                    Where possible mark variables read-only after relocation
  -z norelro                  Don't mark variables read-only after relocation
Comment 8 SpanKY gentoo-dev 2009-05-30 00:03:48 UTC
*** Bug 271553 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2009-06-23 11:33:29 UTC
this will be fixed in the next release