public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "j-frankish at slb dot com" <gcc-bugzilla@gcc.gnu.org>
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:19:00 -0000	[thread overview]
Message-ID: <bug-54911-4-I4sTwEXauw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54911-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54911

--- Comment #2 from j-frankish at slb dot com 2012-10-15 15:19:36 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 <http://gcc.gnu.org/bugs.html> 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 <http://gcc.gnu.org/bugs.html> 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 <http://gcc.gnu.org/bugs.html> 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


  parent reply	other threads:[~2012-10-15 15:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 14:49 [Bug lto/54911] New: " j-frankish at slb dot com
2012-10-15  9:56 ` [Bug lto/54911] " rguenth at gcc dot gnu.org
2012-10-15 15:19 ` j-frankish at slb dot com [this message]
2012-10-15 15:21 ` j-frankish at slb dot com
2012-10-15 15:22 ` j-frankish at slb dot com
2012-10-15 20:19 ` ebotcazou at gcc dot gnu.org
2012-10-16 17:12 ` j-frankish at slb dot com
2015-07-20 23:14 ` isomorphisms at sdf dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-54911-4-I4sTwEXauw@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).