Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 138169

Summary: binutils-2.17 - unrecognized option '-Bdirect'
Product: Gentoo Linux Reporter: Michal Jakubowski <daemon>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michal Jakubowski 2006-06-27 02:34:08 UTC
Whe I'm emerge whatever

emerge problem
>>> Compiling source in /var/tmp/portage/portage-2.1.1_pre1-r3/work/portage-2.1.1_pre1 ...
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Bdirect'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

!!! ERROR: sys-apps/portage-2.1.1_pre1-r3 failed.
Call stack:
  ebuild.sh, line 1540:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  portage-2.1.1_pre1-r3.ebuild, line 73:   Called die

!!! Failed to build tbz2tool
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge gcc
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /bin/install -c
*** This configuration is not supported in the following subdirectories:
     target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
    (Any other directories should still work fine.)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Bdirect'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -march=athlon-xp -O2 -pipe -fstack-protector  -Wl,-O1,--enable-new-dtags,--sort-common,-Bdirect -s conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

!!! ERROR: sys-devel/gcc-3.4.6-r1 failed.
Call stack:
  ebuild.sh, line 1540:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1249:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1459:   Called gcc_do_configure
  toolchain.eclass, line 1259:   Called die

!!! failed to run configure
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge =sys-devel/binutils-2.16.1-r2
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -O2 -pipe -fstack-protector -Wl,-O1,--enable-new-dtags,--sort-common,-Bdirect -s) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: sys-devel/binutils-2.16.1-r2 failed.
Call stack:
  ebuild.sh, line 1540:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1249:   Called toolchain-binutils_src_compile
  toolchain-binutils.eclass, line 184:   Called die

!!! configure failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-27 02:40:43 UTC
We don't patch binutils for Bdirect, feel free to remove it from your LDFLAGS or patch it yourself (Bug 114008).
Comment 2 Michal Jakubowski 2006-06-27 12:23:57 UTC
(In reply to comment #1)
> We don't patch binutils for Bdirect, feel free to remove it from your LDFLAGS
> or patch it yourself (Bug 114008).
> 
Thx ;-)

Salute
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-07 14:10:58 UTC
*** Bug 169760 has been marked as a duplicate of this bug. ***