URL:
<https://savannah.gnu.org/bugs/?65909>
Summary: GRUB 2.12 should not use large model for compilation
on riscv64
Group: GNU GRUB
Submitter: jmontleon
Submitted: Sat 22 Jun 2024 03:45:03 PM UTC
Category: Compilation
Severity: Major
Priority: 5 - Normal
Item Group: Hardware-specific
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: Git master
Release:
Discussion Lock: Any
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 22 Jun 2024 03:45:03 PM UTC By: Jason Montleon <jmontleon>
GRUB 2.12 does not compile correctly using large model on riscv64 using gcc
14.1.1 (gcc-14.1.1-5.fc40.x86_64).
It is my understanding that the large model should not really be used on
riscv64 yet and trying to build GRUB 2.12 with it results in an error:
+ ././grub-mkimage -O riscv64-efi -o grubriscv64.efi.orig -d grub-core --sbat
././sbat.csv -m memdisk.squashfs -p /EFI/fedora all_video boot blscfg btrfs
cat configfile cryptodisk echo ext2 f2fs fat font gcry_rijndael gcry_rsa
gcry_serpent gcry_sha256 gcry_twofish gcry_whirlpool gfxmenu gfxterm gzio halt
hfsplus http increment iso9660 jpeg loadenv loopback linux lvm luks luks2
memdisk mdraid09 mdraid1x minicmd net normal part_apple part_msdos part_gpt
password_pbkdf2 pgp png reboot regexp search search_fs_uuid search_fs_file
search_label serial sleep squash4 syslinuxcfg test tftp version video xfs zstd
efi_netfs efifwsetup efinet lsefi lsefimmap connectefi
././grub-mkimage: error: relocation 0x2b is not implemented yet.
medany builds successfully and boots on the VisionFive2 and on VMs.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: 0263-Use-medany-instead-of-large-model-for-RISCV.patch Size: 1KiB
<https://file.savannah.gnu.org/file/0263-Use-medany-instead-of-large-model-for-RISCV.patch?file_id=56184>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-3cd0d2c94962908e0e7c31b0cfb957af29c7d567.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65909>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/