Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 216732

Summary: sys-boot/grub-0.97-r4 does not boot when compiled with default CFLAGS
Product: Gentoo Linux Reporter: Decha <dkdecha>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Decha 2008-04-07 16:08:31 UTC
Had an issue described at
http://www.gentoo.org/doc/en/grub-error-guide.xml
in section 2 - grub hangs right after "Loading Grub, please wait..."

The issue was resolved by re-emerging with:
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge grub

Reproducible: Always

Steps to Reproduce:
1. CFLAGS="-O3 -march=nocona -pipe" emerge grub
2. grub (root (hd0,0); setup (hd0)
3. reboot

Actual Results:  
Grub hangs right after:

GRUB loading stage 1.5
GRUB loading, please wait...

Expected Results:  
grub shows menu.

Actually, expectation is the ebuild should filter out CFLAGS properly.

My hardware is Lenovo T61 laptop.
Comment 1 SpanKY gentoo-dev 2008-04-07 21:12:10 UTC
you opted not to post information that the bug reporting page told you to.  please consult the documentation in the future when filing a bug report:
http://www.gentoo.org/doc/en/bugzilla-howto.xml

in this case, you did not post `emerge --info`.  however, i'm guessing you have USE=custom-cflags which is clearly marked as "if you set this, you get to pick up the pieces".
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-04-07 21:26:07 UTC
The ebuild DOES filter flags:
58:	use custom-cflags || unset CFLAGS

So either you modified the ebuild, or you have USE=custom-cflags, which specifically states:
sys-boot/grub:custom-cflags - Enables custom cflags (not supported)
Comment 3 Decha 2008-04-08 08:21:05 UTC
custom-flags were not set and grub was unmodified, just synced.

Anyway, I tried to reproduce it again today but I can't. So I am not sure what was that. I am just happy it works now.

Leaving as resolved invalid.

Thanks!