On 2014.09.19 at 14:55 +0200, Markus Trippelsdorf wrote: > On 2014.09.19 at 13:15 +0100, Rogelio Serrano wrote: > > /home/rogelio/gcc-build/./prev-gcc/g++ > > -B/home/rogelio/gcc-build/./prev-gcc/ -B/x86_64-unknown-linux-gnu/bin/ > > -nostdinc++ > > -B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs > > -B/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs > > -I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu > > -I/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include > > -I/home/rogelio/gcc-4.7.4/libstdc++-v3/libsupc++ > > -L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs > > -L/home/rogelio/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs > > -g -O2 -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC > > -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings > > -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long > > -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H > > -static-libstdc++ -static-libgcc -o cc1 c-lang.o c-family/stub-objc.o > > attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o > > c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o > > c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o > > c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o > > c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o > > c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o > > c-family/c-ada-spec.o i386-c.o default-c.o \ > > cc1-checksum.o main.o libbackend.a libcommon-target.a libcommon.a > > ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a > > ../libcpp/libcpp.a ../libiberty/libiberty.a > > ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl > > -lz > > c-family/c-format.o (symbol from plugin): warning: memset used with > > constant zero length parameter; this could be due to transposed > > parameters > > collect2: error: ld returned 1 exit status > > > > > > Any pointers how to debug this? > > > > I configured with: > > > > ../gcc-4.7.4/configure --prefix= --libexecdir=/lib --enable-shared > > --enable-threads=posix --enable-__cxa_atexit --enable-clocale > > --enable-languages=c,lto --disable-multilib --with-system-zlib > > --enable-lto --with-build-config=bootstrap-lto > > > > then did a profiledbootstrap make > > When using profiledbootstrap you should add --disable-werror to the > configuration flags.
Hmm, I think this is actually a linker bug. Could you try gold? See: https://sourceware.org/bugzilla/show_bug.cgi?id=16746 -- Markus