public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/67428] New: lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
@ 2015-09-01 18:59 gjl at gcc dot gnu.org
  2015-09-01 19:01 ` [Bug ipa/67428] " gjl at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-09-01 18:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67428
           Summary: lto1: fatal error: test.elf.ltrans0.o: section is
                    missing with -flto -fipa-pta
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Keywords: lto
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---
              Host: x86-linux-gnu
            Target: i386
             Build: x86-linux-gnu

Following error (sources will follow) occurs when compiling

== Command Line ==

$ gcc Bug.c e.c i.c -flto -Os -fipa-pta  -o test.elf -save-temps -v

$ avr-gcc -mmcu=atmega328p Bug.c e.c i.c -flto -Os -fipa-pta  -o test.elf
-save-temps -v


== Error Message ==

lto1: fatal error: test.elf.ltrans0.o: section Foo is missing
compilation terminated.
lto-wrapper: fatal error: /local/gnu/install/gcc-6/bin/avr-gcc returned 1 exit
status

Foo is declared in module e.c


== GCC configures as ==


Target: i686-pc-linux-gnu
Configured with: ../../gcc.gnu.org/gcc-5-branch/configure
--prefix=/mnt/nfs/home/georg/gnu/install/gcc-native-5 --disable-nls
--enable-checking=release --enable-languages=c,c++,lto
Thread model: posix
gcc version 5.2.1 20150721 (GCC)


Target: avr
Configured with: ../../gcc.gnu.org/trunk/configure --target=avr
--prefix=/local/gnu/install/gcc-6 --disable-shared --disable-nls --with-dwarf2
--enable-target-optspace=yes --with-gnu-as --with-gnu-ld target_alias=avr
--enable-languages=c,c++,lto --no-create --no-recursion
Thread model: single
gcc version 6.0.0 20150720 (experimental) (GCC)


Target: avr
Configured with: ../../gcc.gnu.org/gcc-5-branch/configure --target=avr
--prefix=/local/gnu/install/gcc-5 --disable-nls --disable-shared --with-dwarf2
--with-gnu-ld --with-gnu-as target_alias=avr --enable-languages=c,c++,lto
Thread model: single
gcc version 5.2.1 20150816 (GCC)


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

end of thread, other threads:[~2015-09-02  9:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-01 18:59 [Bug ipa/67428] New: lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta gjl at gcc dot gnu.org
2015-09-01 19:01 ` [Bug ipa/67428] " gjl at gcc dot gnu.org
2015-09-01 19:02 ` gjl at gcc dot gnu.org
2015-09-01 19:02 ` gjl at gcc dot gnu.org
2015-09-01 19:07 ` gjl at gcc dot gnu.org
2015-09-01 19:08 ` gjl at gcc dot gnu.org
2015-09-02  9:27 ` rguenth at gcc dot gnu.org
2015-09-02  9:28 ` rguenth at gcc dot gnu.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).