public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
@ 2012-10-12 14:49 j-frankish at slb dot com
  2012-10-15  9:56 ` [Bug lto/54911] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: j-frankish at slb dot com @ 2012-10-12 14:49 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54911
           Summary: lto-wrapper fails when compiling gcc with -flto
                    -fuse-linker-plugin
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: j-frankish@slb.com


lto-wrapper fails when compiling gcc with "-flto -fuse-linker-plugin" in the
chroot environment for a cross-compiled i486 system - the same thing suceeds in
the chroot environment for a cross-compiled x86_64 system on the same machine
with the same version of gcc

 CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686
-Os -pipe" CC="gcc -flto -fuse-linker-plugin" CXX="g++ -flto
-fuse-linker-plugin" ../gcc-4.7.2/configure --prefix=/usr  --libdir=/usr/lib
--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
--disable-bootstrap

make
...
gcc -flto -fuse-linker-plugin   -march=i486 -mtune=i686 -Os -pipe -DIN_GCC   -W
-Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wc++-compat   -DHAVE_CONFIG_H  -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 
-lcloog-isl -lisl -lppl_c -lppl  -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz
In file included from ../../gcc-4.7.2/gcc/dse.c:4414:0,
                 from insn-automata.c:31491,
                 from :3612:
../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2':
../../gcc-4.7.2/libcpp/lex.c:370:15: 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.
lto-wrapper: gcc returned 1 exit status
/usr/local/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [lto1] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../../gcc-4.7.2/gcc/dse.c:4524:0,
                 from ../../gcc-4.7.2/gcc/var-tracking.c:2286,
                 from :3428:
../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2':
../../gcc-4.7.2/libcpp/lex.c:370:15: 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.
lto-wrapper: gcc returned 1 exit status
/usr/local/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [cc1] Error 1
In file included from ../../gcc-4.7.2/gcc/dse.c:4437:0,
                 from ../../gcc-4.7.2/gcc/config/i386/i386.c:7135,
                 from :3711:
../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2':
../../gcc-4.7.2/libcpp/lex.c:370:15: 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.
lto-wrapper: gcc returned 1 exit status
/usr/local/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [cc1plus] Error 1
rm gcc.pod
make[2]: Leaving directory `/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2


gcc -v                                    
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/lib/gcc/i486-pc-linux-gnu/4.7.2/lto-wrapper
Target: i486-pc-linux-gnu
Configured with: ../gcc-4.7.2/configure --prefix=/usr/local
--libexecdir=/usr/local/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
Thread model: posix
gcc version 4.7.2 (GCC)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin j-frankish at slb dot com
@ 2012-10-15  9:56 ` rguenth at gcc dot gnu.org
  2012-10-15 15:19 ` j-frankish at slb dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-15  9:56 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
             Target|                            |i?86-*-*

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-15 09:56:12 UTC ---
You should use the bootstrap-lto build config instead, thus at configure time
use --with-build-config=bootstrap-lto.

I'm not sure anybody tried i?86 LTO bootstrap recently.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin 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
  2012-10-15 15:21 ` j-frankish at slb dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: j-frankish at slb dot com @ 2012-10-15 15:19 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin 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
@ 2012-10-15 15:21 ` j-frankish at slb dot com
  2012-10-15 15:22 ` j-frankish at slb dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: j-frankish at slb dot com @ 2012-10-15 15:21 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from j-frankish at slb dot com 2012-10-15 15:20:46 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin j-frankish at slb dot com
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: j-frankish at slb dot com @ 2012-10-15 15:22 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin j-frankish at slb dot com
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-10-15 20:19 UTC (permalink / raw)
  To: gcc-bugs


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
         Resolution|                            |DUPLICATE

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-10-15 20:18:45 UTC ---
> make
> ...
> gcc -flto -fuse-linker-plugin   -march=i486 -mtune=i686 -Os -pipe -DIN_GCC   > -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long
> -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
> -Wc++-compat   -DHAVE_CONFIG_H  -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 
> -lcloog-isl -lisl -lppl_c -lppl  -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz
> In file included from ../../gcc-4.7.2/gcc/dse.c:4414:0,
>                  from insn-automata.c:31491,
>                  from :3612:
> ../../gcc-4.7.2/libcpp/lex.c: In function 'search_line_sse2':
> ../../gcc-4.7.2/libcpp/lex.c:370:15: internal compiler error: in convert_move,
> at expr.c:327

This is a known issue.  You cannot LTO bootstrap on x86 without -msse2.

*** This bug has been marked as a duplicate of bug 45475 ***


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin j-frankish at slb dot com
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: j-frankish at slb dot com @ 2012-10-16 17:12 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from j-frankish at slb dot com 2012-10-16 17:11:38 UTC ---
This works - thanks

CFLAGS="-march=i486 -mtune=i686 -Os -pipe" CXXFLAGS="-march=i486 -mtune=i686
-Os -pipe" CC="gcc -msse2 -flto -fuse-linker-plugin" CXX="g++ -msse2 -flto
-fuse-linker-plugin" ../gcc-4.7.2/configure --prefix=/usr  --libdir=/usr/lib
--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
--disable-bootstrap


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug lto/54911] lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin
  2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin j-frankish at slb dot com
                   ` (5 preceding siblings ...)
  2012-10-16 17:12 ` j-frankish at slb dot com
@ 2015-07-20 23:14 ` isomorphisms at sdf dot org
  6 siblings, 0 replies; 8+ messages in thread
From: isomorphisms at sdf dot org @ 2015-07-20 23:14 UTC (permalink / raw)
  To: gcc-bugs

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

isomorphisms at sdf dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |isomorphisms at sdf dot org

--- Comment #7 from isomorphisms at sdf dot org ---
I get this error as well when trying to install.packages('maps') in R on Ubuntu
12.04.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-20 23:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-12 14:49 [Bug lto/54911] New: lto-wrapper fails when compiling gcc with -flto -fuse-linker-plugin 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
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

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