bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12557] gcc & Firefox fails to build with -flto and --as-needed L


From: cryptooctoploid at gmail dot com
Subject: [Bug ld/12557] gcc & Firefox fails to build with -flto and --as-needed LDFLAGS
Date: Fri, 11 Mar 2011 21:02:39 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12557

--- Comment #25 from Octoploid <cryptooctoploid at gmail dot com> 2011-03-11 
21:02:12 UTC ---
Even gcc fails to build with the same combination (-flto and Wl,--as-needed):

...
/var/tmp/gcc_build_dir/./prev-gcc/g++ -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
-I/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/var/tmp/gcc/libstdc++-v3/libsupc++
-L/var/tmp/gcc_build_dir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs 
-march=native -O2 -pipe -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC 
 -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-static-libstdc++ -static-libgcc  gcov.o intl.o version.o errors.o
../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.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
make[3]: *** [gcov] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gfortran.pod cpp.pod gcov.pod gcc.pod fsf-funding.pod gfdl.pod
make[3]: Leaving directory `/var/tmp/gcc_build_dir/gcc'
make[2]: *** [all-stagefeedback-gcc] Error 2
make[2]: Leaving directory `/var/tmp/gcc_build_dir'
make[1]: *** [stagefeedback-bubble] Error 2
make[1]: Leaving directory `/var/tmp/gcc_build_dir'
make: *** [profiledbootstrap] Error 2

Configured with:
../gcc/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls
--without-included-gettext --with-system-zlib --disable-werror
--enable-build-with-cxx --enable-initfini-array --with-gold --enable-secureplt
--enable-libmudflap --disable-libssp --enable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/python
--enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-multilib
--enable-clocale=gnu --with-build-config=bootstrap-lto

And build with:
make -j4 BOOT_CFLAGS="-march=native -O2 -pipe" STAGE1_CFLAGS="-march=native -O2
-pipe" CFLAGS_FOR_TARGET="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--as-needed" profiledbootstrap

-- 
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]