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#26716 - [gcc] can't compile code for qutecom-2.2.1

Attached to Project: Arch Linux
Opened by Thiago Silva (thisab) - Wednesday, 02 November 2011, 02:39 GMT
Last edited by Allan McRae (Allan) - Friday, 02 December 2011, 22:10 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When trying to compile qutecom-2.2.1 from AUR, GCC outputs this:

"{standard input}: Assembler messages:
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
gcc: internal compiler error: Falha de segmentação (program cc1) [Note: Segfault in English)]
Please submit a full bug report,
with preprocessed source if appropriate."

I tryed again many times and without -j flags to no avail. Even without any cflags and always on the same file:
[ 27%] Building C object wifo/phapi/fidlib/CMakeFiles/fidlib.dir/src/fidlib.o

This exact problem was reproduced in another computer with the same version of GCC. It compiled successfuly with the previous version. When I updated, it no longer compiled.

The fidlib.i and fidlib.s files are attached

Additional info:
GCC 4.6.2-1

This task depends upon

Closed by  Allan McRae (Allan)
Friday, 02 December 2011, 22:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  gcc-4.6.2-2
Comment by Allan McRae (Allan) - Wednesday, 02 November 2011, 06:34 GMT
Which previous version of gcc worked for you? I get the same error with gcc-4.6.1-4.
Comment by Maksim R (masim) - Friday, 04 November 2011, 00:32 GMT
The same problem occures at i686.
Comment by Allan McRae (Allan) - Monday, 14 November 2011, 01:33 GMT
Still waiting for information on what version of gcc last worked...
Comment by Laurent Carlier (lordheavy) - Wednesday, 16 November 2011, 09:08 GMT
Got similar problem building an AUR package wit-svn https://aur.archlinux.org/packages.php?ID=37504

---8<---
src/lib-std.c: In function 'SetupLib':
src/lib-std.c:538:11: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result]
*** object lib-wdf.o
*** object lib-wia.o
gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make: *** [lib-wia.o] Error 4
make: *** Waiting for unfinished jobs....
--->8---

greping pacman.log i've found that last working gcc was 4.6.1-2 but package wasn't rebuilt since.
Comment by Lukas Fleischer (lfleischer) - Wednesday, 16 November 2011, 09:50 GMT
Not necessarily GCC-related. I got the same error trying to rebuild mixxx ([community]) in a chroot - I don't get this error when trying to build the package using `makepkg -s` (and not using devtools) on a test box (tested with both 4.6.1-4 and 4.6.2-1).
Comment by Laurent Carlier (lordheavy) - Wednesday, 16 November 2011, 12:09 GMT
Adding !buildflags as options, now the package build properly

PS: Building was also segfaulting when running inside a chroot
Comment by Lukas Fleischer (lfleischer) - Wednesday, 16 November 2011, 12:32 GMT
Oh. Buildflags, yeah. It seems like "-D_FORTIFY_SOURCE=2" breaks stuff here.

Loading...