| Summary: | gcc ICE building grub with LTO | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Tony Battersby <tonyb> |
| Component: | devtools / tool chain | Assignee: | Tony Battersby <tonyb> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium+ | CC: | meta.mr.watcher, meta.watcher, randy.macleod |
| Version: | 3.4 | ||
| Target Milestone: | 3.4 M3 | ||
| Hardware: | x86 | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Tony Battersby
2021-07-23 22:14:52 UTC
I just reproduced the same problem with gcc 11.1.1 from current git outside of Yocto. I will submit an upstream bug report. Regarding grub, we already know that grub doesn't like being compiled with -O2: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14367 https://lists.yoctoproject.org/g/yocto/message/53321 With gcc 10.2 under Hardknott, compiling with -flto makes the /usr/lib/grub/i386-pc/*.mod files not binary reproducible: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14481 So for now a good workaround is to disable LTO for grub with the following: LTO_pn-grub = "" I will submit a patch for that as part of my patch set to make reproducible LTO builds. Upstream bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101625 Resolved by poky commit a7762efa03b9113f039c682eb066a623ca02ebb1 ("lto.inc: disable LTO for grub").
|