http://sourceware.org/bugzilla/show_bug.cgi?id=12557
--- Comment #28 from Octoploid <cryptooctoploid at gmail dot com> 2011-03-14 16:39:13 UTC --- (In reply to comment #27) > I have no problems with gcc bootstrap using > > .../configure --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld > --prefix=/usr/gcc-4.7.0 --with-local-prefix=/usr/local > --enable-gnu-indirect-function > --with-boot-ldflags=-Wl,-O1,--hash-style=gnu,--as-needed > --with-build-config=bootstrap-lto --enable-cloog-backend=isl > --with-ppl-include=/opt/gnu/include --with-ppl-lib=/opt/gnu/lib64 > --with-cloog-include=/opt/gnu/include --with-cloog-lib=/opt/gnu/lib64 > --with-fpmath=sse Yes, the problem only occurs when you configure gcc without "--with-boot-ldflags=-Wl,-O1,--hash-style=gnu,--as-needed". I've tested this a little further: /var/tmp/gcc_build_dir/./prev-gcc/g++ -B/lib -B/var/tmp/gcc_build_dir/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -pipe -flto -frandom-seed=1 -DIN_GCC -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc gcov.o intl.o version.o errors.o ../libiberty/libiberty.a -o gcov /lib64/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE' /lib64/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE' /lib64/libc.so.6: undefined reference to `__tls_get_addr@GLIBC_2.3' /lib64/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE' /lib64/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE' collect2: ld returned 1 exit status Without -static-libstdc++ it compiles fine. Without -flto it also compiles fine. When I use xgcc instead of g++ there aren't any problems. When I use gold as linker there aren't any problems either. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils