[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LD
From: |
cryptooctoploid at gmail dot com |
Subject: |
[Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS |
Date: |
Mon, 14 Mar 2011 16:39:19 +0000 |
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 address@hidden'
/lib64/libc.so.6: undefined reference to address@hidden'
/lib64/libc.so.6: undefined reference to address@hidden'
/lib64/libc.so.6: undefined reference to address@hidden'
/lib64/libc.so.6: undefined reference to address@hidden'
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 ld/12557] Firefox fails to build with -flto and --as-needed LDFLAGS, (continued)
- [Bug ld/12557] Firefox fails to build with -flto and --as-needed LDFLAGS, hjl.tools at gmail dot com, 2011/03/11
- [Bug ld/12557] Firefox fails to build with -flto and --as-needed LDFLAGS, hjl.tools at gmail dot com, 2011/03/11
- [Bug ld/12557] Firefox fails to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/11
- [Bug ld/12557] Firefox fails to build with -flto and --as-needed LDFLAGS, hjl.tools at gmail dot com, 2011/03/11
- [Bug ld/12557] Firefox fails to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/11
- [Bug ld/12557] gcc & Firefox fails to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/11
- [Bug ld/12557] gcc & Firefox fails to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/11
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/11
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/11
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS, hjl.tools at gmail dot com, 2011/03/14
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS,
cryptooctoploid at gmail dot com <=
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS, hjl.tools at gmail dot com, 2011/03/15
- [Bug ld/12557] gcc & Firefox fail to build with -flto and --as-needed LDFLAGS, cryptooctoploid at gmail dot com, 2011/03/16