https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64593
Bug ID: 64593 Summary: libmpfr.a undefined reference to `.L222' when doing make profiledbootstrap with bootstrap-lto Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: arnetheduck at gmail dot com Created attachment 34442 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34442&action=edit Full build log I just tried building gcc-4.9.2 on SciLin6 with bootstrap-lto and profiledbootstrap, with in-tree support libraries, and it fails. I've attached build log and build script used - notable configure options are --with-build-config=bootstrap-lto and Here's some info: $ uname -a Linux csqdev-build03 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 14:14:17 CDT 2014 x86_64 x86_64 x86_64 GNU/Linux $ cat stage_current stagefeedback Error: /home/user/tmp/bld/gcc-4.9.2/./prev-gcc/xg++ -B/home/user/tmp/bld/gcc-4.9.2/./prev-gcc/ -B/home/user/tmp/rtf/x86_64-unknown-linux-gnu/bin/ -nostdinc++ -B/home/user/tmp/bld/gcc-4.9.2/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/home/user/tmp/bld/gcc-4.9.2/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/user/tmp/bld/gcc-4.9.2/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/home/user/tmp/bld/gcc-4.9.2/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include -I/home/user/tmp/src/gcc-4.9.2/libstdc++-v3/libsupc++ -L/home/user/tmp/bld/gcc-4.9.2/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/home/user/tmp/bld/gcc-4.9.2/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -flto=jobserver -frandom-seed=1 -ffat-lto-objects -fprofile-use -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -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 cc1plus \ cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o attribs.o incpath.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 c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/home/user/tmp/bld/gcc-4.9.2/./cloog/.libs -lcloog-isl -L/home/user/tmp/bld/gcc-4.9.2/./isl/.libs -lisl -L/home/user/tmp/bld/gcc-4.9.2/./gmp/.libs -L/home/user/tmp/bld/gcc-4.9.2/./mpfr/src/.libs -L/home/user/tmp/bld/gcc-4.9.2/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz /home/user/tmp/bld/gcc-4.9.2/./mpfr/src/.libs/libmpfr.a(round_prec.o):(.debug_info+0xe97): undefined reference to `.L222' collect2: error: ld returned 1 exit status make[3]: *** [lto1] Error 1 make[3]: *** Waiting for unfinished jobs.... /home/user/tmp/bld/gcc-4.9.2/./mpfr/src/.libs/libmpfr.a(round_prec.o):(.debug_info+0xe97): undefined reference to `.L222' collect2: error: ld returned 1 exit status make[3]: *** [cc1] Error 1 /home/user/tmp/bld/gcc-4.9.2/./mpfr/src/.libs/libmpfr.a(round_prec.o):(.debug_info+0xe97): undefined reference to `.L222' collect2: error: ld returned 1 exit status make[3]: *** [cc1plus] Error 1 rm gcc.pod make[3]: Leaving directory `/home/user/tmp/bld/gcc-4.9.2/gcc' make[2]: *** [all-stagefeedback-gcc] Error 2 make[2]: Leaving directory `/home/user/tmp/bld/gcc-4.9.2' make[1]: *** [stagefeedback-bubble] Error 2 make[1]: Leaving directory `/home/user/tmp/bld/gcc-4.9.2' make: *** [profiledbootstrap] Error 2