[Bug 1026915] New: gcc6 avr lto broken
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915 Bug ID: 1026915 Summary: gcc6 avr lto broken Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: msuchanek@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 715457 --> http://bugzilla.opensuse.org/attachment.cgi?id=715457&action=edit test application $ make avr-g++ -mmcu=atmega168 -g -O2 -Os -Wall -flto -I../include -DBOOTCODE_ADDRESS=0x3800 -fno-exceptions -fno-rtti -c -o application-main.o application-main.cpp avr-g++ -mmcu=atmega168 -g -O2 -Os -Wall -flto -I../include -DBOOTCODE_ADDRESS=0x3800 -fno-exceptions -fno-rtti -c -o gate.o gate.cpp avr-g++ -mmcu=atmega168 -g -O2 -Os -Wall -flto -I../include -DBOOTCODE_ADDRESS=0x3800 -fno-exceptions -fno-rtti -c -o gate_debounce.o gate_debounce.cpp avr-g++ -mmcu=atmega168 -g -O2 -Os -Wall -flto -I../include -DBOOTCODE_ADDRESS=0x3800 -fno-exceptions -fno-rtti -c -o memory.o memory.cpp avr-g++ -g -O2 -Os -Wall -flto -mmcu=atmega168 -Wl,--defsym=_codesize=_exit-__vectors+4 -o application.elf application-main.o gate.o gate_debounce.o memory.o /usr/lib64/gcc/avr/6/../../../../avr/bin/ld: warning: -z relro ignored. lto1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://bugs.opensuse.org/ for instructions. lto-wrapper: fatal error: avr-g++ returned 1 exit status compilation terminated. /usr/lib64/gcc/avr/6/../../../../avr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Makefile:44: recipe for target 'application.elf' failed make: *** [application.elf] Error 1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
Michal Suchanek
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915#c1
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915#c2
Richard Biener
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915#c4
--- Comment #4 from Richard Biener
prebuilt avr-gcc6 with lto https://build.opensuse.org/package/show/home:michals:arduino/cross-avr-gcc6- lto
Can't see what you did here (no diff or whatsoever), but here int main() {} compiles just fine with -flto. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915#c5
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
Michal Suchanek
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915
http://bugzilla.opensuse.org/show_bug.cgi?id=1026915#c6
--- Comment #6 from Martin Liška
participants (1)
-
bugzilla_noreply@novell.com