Bug #6482

[PATCH] GRUB won't boot when built with GCC 5

Added by Andrew Stormont about 3 years ago. Updated 2 months ago.

Status:ClosedStart date:2015-11-26
Priority:NormalDue date:
Assignee:Andrew Stormont% Done:

0%

Category:-
Target version:-
Difficulty:Medium Tags:needs-triage

Description

I'm not sure why this works, but it does. The fix was posted to the Debian mailing list.

grub-gcc5.diff Magnifier (986 Bytes) Andrew Stormont, 2015-11-26 02:14 PM


Related issues

Duplicated by illumos gate - Bug #9754: grub: recent gcc needs -fno-reorder-functions Closed 2018-08-17

History

#1 Updated by Andrew Stormont about 3 years ago

Explanation of the problem caused by a new GCC optimisation feature.
https://lists.ubuntu.com/archives/ubuntu-devel/2011-September/034127.html

#2 Updated by Igor Kozhukhov about 3 years ago

they are flags not enough for grub build and work by gcc version more 4.4.
i have some additional patches on my dilos-illumos tree for builds and work by gcc47/48/49
also, some flags can break gcc44.

#3 Updated by Andrew Stormont about 3 years ago

You're right more changes are required. I want to tackle them one at a time.

This change shouldn't break anything since GCC 4.4.4 also supports the -fno-reorder-functions flag but I haven't tested that out.

#4 Updated by Kim Shrier about 3 years ago

This appears to fix a problem that everybody ran into when compiling with GCC >= 4.6.

LGTM

#5 Updated by Andrew Stormont 2 months ago

  • Duplicated by Bug #9754: grub: recent gcc needs -fno-reorder-functions added

#6 Updated by Andrew Stormont 2 months ago

  • Status changed from Feedback to Closed

This is fixed as of #9754.

Also available in: Atom