FS#14638 - GCC 4.4.0 SEGFAULT when compiling from AUR

Attached to Project: Arch Linux
Opened by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 06:43 GMT
Last edited by Allan McRae (Allan) - Sunday, 10 May 2009, 02:03 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
This system was a completely fresh archlinux install. I was going to build xmonad from the AUR but the first step had gone wrong. I was compiling haskell-x11-darcs (the makepkg -s way). During the build, gcc threw out a segfault.

Additional info:
* package version(s)
gcc 4.4.0-1
haskell-x11-darcs 20081013-1
* config and/or log files etc.


Steps to reproduce:
1. download the PKGBUILD and hsmod.install
2. do makepkg -s
3. gcc segfaults

This was all part of the PKGBUILD so I didn't have the time to look into a stack trace. If anyone has any questions or help on how to give further info, I'll happily listen.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 10 May 2009, 02:03 GMT
Reason for closing:  Works for me
Comment by Allan McRae (Allan) - Saturday, 09 May 2009, 07:16 GMT
I can't replicate. Please post some build output.
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 09 May 2009, 15:14 GMT
Are you sure that is the gcc that seg fault?

You use and nvidia GPU card? you have installed and nvidia-utils? If your answer is true, then do is related to libfakeroot and libGL(nvidia). Do this when run makepkg:

LD_PRELOAD=/xyz/usr/lib/libGL.so.1.2 makepkg

#where "xyz" is the path to a extracted libgl package from Arch Linux for example /home/tom/libgl ;)
Comment by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 15:30 GMT
@ALLAN McRae
output of makepkg -s attached

@Gerardo Exequiel Pozzi
Yes, gcc segfaults, and I don't have an nvidia card.
   output (1.7 KiB)
Comment by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 16:15 GMT
After further investigation I have found the line that produces the segfault in the PKGBUILD (attached for easy reference).
It's line 45: "runhaskell Setup configure --prefix=/usr || return 1"
   PKGBUILD (1.5 KiB)
Comment by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 16:28 GMT
I have found that running ./configure in the src/X11-build directory (attached for reference) is the problematic file.
More specifically, when I ran it, it segfaulted gcc, and produced a config.log (attached) detailing the problem :P
Comment by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 16:33 GMT
Compiling the program I have extracted from the config.log segfaults gcc (4.4.0) on my system.
Comment by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 16:34 GMT
Forgot to include the program :P
Just run gcc test.c
   test.c (0.3 KiB)
Comment by Thomas Dziedzic (tomd123) - Saturday, 09 May 2009, 16:50 GMT
Ok, I have found out that by reinstalling GCC (sudo pacman -R gcc; sudo pacman -S gcc), the problem went away.
As fogobogo suggested in the IRC, I will say "oops pkg borked, my bad, plaese forgive me! i will dontate big $$$" :D
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 09 May 2009, 17:19 GMT
oh luckily it was only this problem, I was giving a scare. ;)

Loading...