From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16490 invoked by alias); 15 Oct 2012 15:22:06 -0000 Received: (qmail 16418 invoked by uid 48); 15 Oct 2012 15:21:48 -0000 From: "j-frankish at slb dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin Date: Mon, 15 Oct 2012 15:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: j-frankish at slb dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01416.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54911 --- Comment #4 from j-frankish at slb dot com 2012-10-15 15:21:47 UTC --- Using: CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" ../gcc-4.7.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch --enable-cloog-backend=isl --with-system-zlib --enable-frame-pointer --with-build-config=bootstrap-lto The build fails with a similar error - if I remove "--with-build-config=bootstrap-lto" things work fine. /sources/gcc-build/./prev-gcc/g++ -B/sources/gcc-build/./prev-gcc/ -B/usr/i486-pc-linux-gnu/bin/ -nostdinc++ -B/sources/gcc-build/prev-i486-pc-linux-gnu/libstdc++-v3/src/.libs -B/sources/gcc-build/prev-i486-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/sources/gcc-build/prev-i486-pc-linux-gnu/libstdc++-v3/include/i486-pc-linux-gnu -I/sources/gcc-build/prev-i486-pc-linux-gnu/libstdc++-v3/include -I/sources/gcc-4.7.2/libstdc++-v3/libsupc++ -L/sources/gcc-build/prev-i486-pc-linux-gnu/libstdc++-v3/src/.libs -L/sources/gcc-build/prev-i486-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -g -O2 -flto=jobserver -frandom-seed=1 -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 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-gimplify.o tree-mudflap.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 i386-c.o default-c.o cc1plus-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 -lcloog-isl -lisl -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl -lz In file included from ../../gcc-4.7.2/gcc/lto/lto-lang.c:3653:0, from :7106: ../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2': ../../gcc-4.7.2/libcpp/lex.c:370:53: internal compiler error: in convert_move, at expr.c:327 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[4]: *** [/tmp/ccjLH58B.ltrans28.ltrans.o] Error 1 make[4]: *** Waiting for unfinished jobs.... lto-wrapper: make returned 2 exit status /usr/local/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make[3]: *** [lto1] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from ../../gcc-4.7.2/gcc/attribs.c:3010:0, from :7224: ../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2': ../../gcc-4.7.2/libcpp/lex.c:370:53: internal compiler error: in convert_move, at expr.c:327 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[4]: *** [/tmp/cc753PSt.ltrans29.ltrans.o] Error 1 make[4]: *** Waiting for unfinished jobs.... lto-wrapper: make returned 2 exit status /usr/local/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make[3]: *** [cc1] Error 1 In file included from ../../gcc-4.7.2/gcc/tree.h:5624:0, from :7578: ../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2': ../../gcc-4.7.2/libcpp/lex.c:370:53: internal compiler error: in convert_move, at expr.c:327 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[4]: *** [/tmp/cce8fSzF.ltrans29.ltrans.o] Error 1 make[4]: *** Waiting for unfinished jobs.... lto-wrapper: make returned 2 exit status /usr/local/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make[3]: *** [cc1plus] Error 1 rm gcc.pod make[3]: Leaving directory `/sources/gcc-build/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/sources/gcc-build' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/sources/gcc-build' make: *** [all] Error 2