[FS#3790] Grub2: Failed to build with GCC 10.30, glibc and binutils 2.36.1

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Fri May 7 19:05:39 PDT 2021


A new Flyspray task has been opened.  Details are below. 

User who did this - DazzyWalkman (DazzyWalkman) 

Attached to Project - OpenWrt/LEDE Project
Summary - Grub2: Failed to build with GCC 10.30, glibc and binutils 2.36.1
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I am trying to compile x64 builds up to commit: 
with toolchain options GCC 10.30, glibc and binutils 2.36.1 selected 
and ran into this bug: 
a very large lzma_decompress.img file is output. (e.g. 134479600 bytes instead of 2864.) This causes grub-mkimage to fail with: "error: Decompressor is too big."

There's already a fix upstream
build: Fix GRUB i386-pc build with Ubuntu gcc

However, this upstreamed patch does not work well in OpenWRT buildroot, as it brings in python dependency and will triger an error of "'automake-1.15' is probably too old."   

Another patch works in my case, even it's superseded by a newer version from the summiter:

Build went fine before https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=b1ac59ed13926807289344cb0486ac077fc55023
with previous toolchain options of GCC 10.30, glibc and binutils 2.35.1 selected 


More information can be found at the following URL:

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.

More information about the openwrt-bugs mailing list