Summary: | dev-scheme/guile-1.8.8-r1 builds fails (pre-inst-guile segfaults) with gcc-4.6.3 and -finline-functions cflag (included in -O3) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ivan Bagaev <gmiramir> |
Component: | Current packages | Assignee: | Marijn Schouten (RETIRED) <hkbst> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bruce, che, galtgendo, gmiramir, r3pek, scheme |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11845 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 346809 | ||
Attachments: |
complete build log
build.log |
Description
Ivan Bagaev
2012-07-02 06:07:56 UTC
Created attachment 316943 [details]
complete build log
emerge -pqv '=dev-scheme/guile-1.8.8-r1' [ebuild N ] dev-scheme/guile-1.8.8-r1 USE="nls regex threads -debug -debug-freelist -debug-malloc -deprecated -discouraged -emacs -networking" guile need to grub-2.00 # sudo emerge -pvuDNt grub These are the packages that would be merged, in reverse order: [nomerge ] app-emulation/virt-manager-0.9.1 USE="gnome-keyring policykit -sasl -spice" [ebuild U ] sys-auth/polkit-0.106-r6 [0.106-r5] USE="gtk introspection nls pam -debug -examples -kde (-selinux) -systemd" 0 kB [nomerge ] sys-boot/grub-2.00 USE="device-mapper nls sdl truetype -custom-cflags -debug -efiemu -libzfs -mount -static" GRUB_PLATFORMS="pc -coreboot -efi-32 -efi-64 -emu -ieee1275 -multiboot -qemu -qemu-mips -yeeloong" [ebuild N ] sys-devel/autogen-5.15 0 kB [ebuild N ] dev-scheme/guile-1.8.8-r1 USE="nls regex threads -debug -debug-freelist -debug-malloc -deprecated -discouraged -emacs -networking" 0 kB info from linux.org.ru http://www.linux.org.ru/forum/general/7929935 I can't reproduce the segmentation fault you got with the default CFLAGS. Your CFLAGS looks a bit full. Please try to strip some of them, like -O2 instead of -O3, in order to narrow down the issue. Thanks. Created attachment 316955 [details]
build.log
build log without russian/cyrillic language (sorry but not all Gentoo devs are capable of russian writing/language).
Can you guys try to compile the package without "-march=core2" CFLAG? (In reply to comment #7) > Can you guys try to compile the package without "-march=core2" CFLAG? Reproduced using CFLAGS="-O2 -march=i686 -pipe -finline-functions" Removing -finline-functions made the build successful. I'm contacting upstream. I confirm that this seems specific to gcc-4.6.3. Builds fine with gcc 4.5.3 and 4.7.1. Bug nailed down and reported upstream. See $URL for details. Upstream fix: http://git.savannah.gnu.org/cgit/guile.git/commit/?h=branch_release-1-8&id=62bc1072c19e81bb0f9e42a5034e7ab8c27d3b94 I added the patch to dev-scheme/guile-1.8.8-r2 in the lisp overlay. Currently not "buildable" on amd64 testing. hope it gets merged soon :) is there a problem merging this patch into portage? I'm currently unable to update since this package was marked *stable*. IMHO, a problem with a stable package should be fix asap... In this case, everything is identified but it's still not merged. (In reply to comment #13) > is there a problem merging this patch into portage? I'm currently unable to > update since this package was marked *stable*. IMHO, a problem with a stable > package should be fix asap... In this case, everything is identified but > it's still not merged. Workaround, depending on your current configuration: - add -fno-inline-functions to your CFLAGS - remove -finline-functions from CFLAGS - use -O2 instead of -O3 in CFLAGS @Cyprien Yes, I'm aware of that work around. The thing is, it's *not* a fix, and a *proper* fix is available. Also, to make it worse, the package is marked *stable*. It's a simple patch already merged upstream. if the patch was accepted upstream and this package is marked as stable it really should be included. I mean other packages are patched to death to get them working and this package is marked as stable and not working, even when there is a upstream patch. + 27 Aug 2012; Kacper Kowalik <xarthisius@gentoo.org> + +files/guile-1.8.8-gcc46.patch, guile-1.8.8-r1.ebuild: + Backport upstream patch to fix SIGSEGV with gcc-4.6 wrt #424475 by Ivan Bagaev + <gmiramir@gmail.com> Thanks to Cyprien Nicolas (fulax) + <c.nicolas+bugs@gmail.com> for detailed analysis and finding patch. Acked by + hkBst |