[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


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

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: 
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=b607e7df34031738b18582aaa1f4f93505d06734
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
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=6643507ce30f775008e093580f0c9499dfb2c485

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:
https://patchwork.ozlabs.org/project/buildroot/patch/20200527071932.2307442-1-fontaine.fabrice@gmail.com/

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:
https://bugs.openwrt.org/index.php?do=details&task_id=3790

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