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

Bug 324547

Summary: sys-libs/glibc fails configure with GCC 4.5 svn
Product: Gentoo Linux Reporter: Ryan Hill (RETIRED) <rhill>
Component: [OLD] GCC PortingAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 296658    

Description Ryan Hill (RETIRED) gentoo-dev 2010-06-18 04:49:33 UTC
as reported by Daniel Johnson:

"This may be too bleeding-edge for b.g.o, so I figured I'd shoot you an
email instead.  As of at least a couple weeks ago, glibc won't
configure against GCC from subversion.  The config line that fails is
when it performs roughly the following action:

gcc -v --help 2>&1 | grep z relro

Prior to 4.5.1-pre9999, gcc's verbose --help would include ld's
verbose --help, and it's ld's help that includes the relro
information.  Therefore, glibc's configure script should be patched to
test ld instead of gcc for relro."

I haven't done any investigating yet.  Daniel, did you get a chance to?
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2010-06-18 05:24:19 UTC
hrm, I can't reproduce this.

dirtyepic@halo ~ $ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-unknown-linux-gnu/gcc-bin/4.5.1-pre9999/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1-pre9999/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.1_pre9999/work/gcc-4.5.1-9999/configure --prefix=/usr --bindir=/usr/x86_64-unknown-linux-gnu/gcc-bin/4.5.1-pre9999 --includedir=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1-pre9999/include --datadir=/usr/share/gcc-data/x86_64-unknown-linux-gnu/4.5.1-pre9999 --mandir=/usr/share/gcc-data/x86_64-unknown-linux-gnu/4.5.1-pre9999/man --infodir=/usr/share/gcc-data/x86_64-unknown-linux-gnu/4.5.1-pre9999/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.1-pre9999/include/g++-v4 --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --enable-lto --disable-nls --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --disable-libmudflap --disable-libssp --enable-libgomp --enable-cld --with-python-dir=/share/gcc-data/x86_64-unknown-linux-gnu/4.5.1-pre9999/python --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo SVN' --enable-lto --disable-checking
Thread model: posix
gcc version 4.5.1-pre9999 20100618 (prerelease) rev. 160958 (Gentoo SVN) 
dirtyepic@halo ~ $ gcc -v --help 2>&1 | grep "z relro"
  -z relro                    Create RELRO program header
  -z relro                    Create RELRO program header
  -z relro                    Create RELRO program header
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2010-06-19 06:12:07 UTC
it seems to work for me here.  let me know if there's something i'm missing.