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

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