New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#3790 - Grub2: Failed to build with GCC 10.30, glibc and binutils 2.36.1 #8811
Comments
tinnlux: I also have this bug and can't fix it. |
stintel: The automake error can be solved by adding this to the Makefile: PKG_FIXUP:=autoreconf Unfortunately that triggers a bunch of other errors:
|
DazzyWalkman:
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
The text was updated successfully, but these errors were encountered: