This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/67428] New: lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]