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
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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 ` gjl at gcc dot gnu.org
2015-09-01 19:02 ` gjl at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-09-01 19:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Created attachment 36278
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36278&action=edit
Bug.c (C-source 1/3)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-09-01 19:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Created attachment 36279
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36279&action=edit
e.c (C-source 2/3)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-09-01 19:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Created attachment 36280
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36280&action=edit
i.c (C-source 3/3)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-09-01 19:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Created attachment 36281
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36281&action=edit
output of gcc-5.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-09-01 19:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Created attachment 36282
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36282&action=edit
output of avr-gcc-6 (SVN trunk 227033)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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
` (4 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-09-02 9:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|i386,avr |i386, avr, x86_64
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-09-02
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed on native x86_64.
#1 0x0000000000fe1eb3 in varpool_node::get_constructor (this=0x7ffff6ac6000)
at /space/rguenther/src/svn/gcc-5-branch/gcc/varpool.c:328
328 name);
(gdb) l
323 data = lto_get_section_data (file_data, LTO_section_function_body,
324 name, &len);
325 if (!data)
326 fatal_error (input_location, "%s: section %s is missing",
327 file_data->file_name,
328 name);
#0 fatal_error (loc=0, gmsgid=0x1785f49 "%s: section %s is missing")
at /space/rguenther/src/svn/gcc-5-branch/gcc/diagnostic.c:1203
#1 0x0000000000fe1eb3 in varpool_node::get_constructor (this=0x7ffff6ac6000)
at /space/rguenther/src/svn/gcc-5-branch/gcc/varpool.c:328
#2 0x0000000000eae0b6 in create_variable_info_for_1 (decl=0x7ffff68d7900,
name=0x1765de2 "NULL")
at /space/rguenther/src/svn/gcc-5-branch/gcc/tree-ssa-structalias.c:5676
#3 0x0000000000eae443 in create_variable_info_for (decl=0x7ffff68d7900,
name=0x1765de2 "NULL")
I think this is a dup of another bug waiting for Honza to comment. But I seem
to have guessed the answer now and am testing a fix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug ipa/67428] lto1: fatal error: test.elf.ltrans0.o: section is missing with -flto -fipa-pta
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
` (5 preceding siblings ...)
2015-09-02 9:27 ` rguenth at gcc dot gnu.org
@ 2015-09-02 9:28 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-09-02 9:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67428
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
dup
*** This bug has been marked as a duplicate of bug 66705 ***
^ 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).