Summary: | sys-boot/grub-2.02_beta2 with sys-devel/gcc-4.8.2-r1 miscompiles grub-mkimage? - sh: line 1: 32183 Segmentation fault in grub-mkimage --help | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roc Vallès <vallesroc> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 915000, 461954 | ||
Attachments: | build.log |
Description
Roc Vallès
2014-04-26 11:35:53 UTC
Please attach the entire build log to this bug report. For whatever silly reason... trying to upload the attachment doesn't work right now. Trying to post from firefox does fail silently (submit button does nothing), whereas chromium puts https://bugs.gentoo.org/attachment.cgi on urlbar and goes: The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address. Error code: ERR_ACCESS_DENIED (In reply to Roc Vallès from comment #2) Please try again. (In reply to Jeroen Roovers from comment #3) > (In reply to Roc Vallès from comment #2) > > Please try again. No improvement. Created attachment 375796 [details]
build.log
Explanation: Both firefox and chromium are awesome usability-wise. The real problem was that build.log wasn't a readable file from the browser's pov. Can you run grub-mkimage in a debugger and get a backtrace? This seems to be related to some compiler optimization. I can reproduce the segfault with CFLAGS="-O3". As a workaround, drop down to -O2. (In reply to Mike Gilbert from comment #8) > This seems to be related to some compiler optimization. I can reproduce the > segfault with CFLAGS="-O3". > > As a workaround, drop down to -O2. Took care of that via portage.env... Grub used to have a "custom-cflags" use flag, but it's rained since then. I should have noticed it was using -O3, PEBKAC. I would rather not argue with upstream about ricer flags, so I just used replace-flags in the ebuild. + 26 Apr 2014; Mike Gilbert <floppym@gentoo.org> grub-2.02_beta2.ebuild, + grub-9999-r1.ebuild: + Replace -O3 with -O2 to prevent segfault in grub-mkimage, bug 508758 by Roc + Vallès. (In reply to Mike Gilbert from comment #10) > I would rather not argue with upstream about ricer flags, so I just used > replace-flags in the ebuild. > > + 26 Apr 2014; Mike Gilbert <floppym@gentoo.org> grub-2.02_beta2.ebuild, > + grub-9999-r1.ebuild: > + Replace -O3 with -O2 to prevent segfault in grub-mkimage, bug 508758 by > Roc > + Vallès. That's definitely for the best with this specific ebuild. |