Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#35493 - [gcc] lto1: internal compiler error: in fold_convert_loc, at fold-const.c:1867

Attached to Project: Arch Linux
Opened by Michael (c0da) - Monday, 27 May 2013, 07:09 GMT
Last edited by Allan McRae (Allan) - Wednesday, 19 June 2013, 14:21 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity Low
Priority Low
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Error during compilation with -flto -fuse-linker-plugin. Unfortunately i cannot provide source code for now.

Additional info:
* package version(s)

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.8-20130502/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.8.0 20130502 (prerelease) (GCC)

* config and/or log files etc.

gcc -pipe /tmp/bld/B/bin/gen/example.o /tmp/bld/B/bin/gen/mcp.o /tmp/bld/lib/liblcc.a -o /tmp/bld/bin/exa-gen -flto -fuse-linker-plugin -Wl,-s -O3 -march=native -mtune=native -L /tmp/bld/F/lib -llime
link /tmp/bld/bin/exa-gen
lto1: internal compiler error: in fold_convert_loc, at fold-const.c:1867
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
lto-wrapper: gcc returned 1 exit status
/usr/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

Steps to reproduce:
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 19 June 2013, 14:21 GMT
Reason for closing:  No response
Additional comments about closing:  Open a bug when you have a testcase
Comment by Allan McRae (Allan) - Monday, 27 May 2013, 08:36 GMT
Do at least the Simple ICE reduction from [1] and post the result. And I will need to know what "-march=native" selects. Without this I will just close the bug.

[1] http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction
Comment by Michael (c0da) - Monday, 27 May 2013, 12:14 GMT
cpuinfos for my CPUs are

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
model name : Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv svm_lock nrip_save
model name : AMD Processor model unknown

so i believe that -march=native selects core-avx-i. and k8 (?). And the error emerges for all -march's compiler allows.

And excuse me my ignorance. I'm complete newbie, and i don't understand, how should i do ICE reduction for the case, when i use LTO with libraries. Are there any examples?
Comment by Allan McRae (Allan) - Monday, 27 May 2013, 13:14 GMT Comment by Allan McRae (Allan) - Friday, 31 May 2013, 23:59 GMT
Also confirm this is still an issue with gcc-4.8.1 in [testing]
Comment by Michael (c0da) - Saturday, 01 June 2013, 07:45 GMT
Confirmed for 4.8.1. I'll try to do ICE reduction tomorrow.

Loading...