URL:
  <https://savannah.gnu.org/bugs/?67662>

                 Summary: GRUB 2.14_rc1 configure fails with LLVM >=21: cannot
link at address 0x2000
                   Group: GNU GRUB
               Submitter: linuxusergd
               Submitted: Mon 03 Nov 2025 12:27:25 PM UTC
                Category: Compilation
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Git master
                 Release:
         Reproducibility: Every Time
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 03 Nov 2025 12:27:25 PM UTC By: LinuxUserGD <linuxusergd>
I get the following configure error compiling GRUB with LLVM >= 21:

checking for target linking format... -melf_x86_64
checking whether option -mcmodel=large works... yes
checking whether option -mno-red-zone works... yes
checking whether option -Qn works... yes
checking whether `clang' has `-fPIE' as default... yes
checking whether linker accepts -no-pie... yes
checking whether linker accepts -nopie... no
checking whether linker needs disabling of PIE to work... no
checking whether `clang' has `-fPIC' as default... no
checking whether `clang' accepts `-fstack-protector'... yes
checking whether `clang' accepts `-fstack-protector-strong'... yes
checking whether `clang' accepts `-mstack-protector-guard=global'... yes
checking whether `clang' accepts `-mstack-arg-probe'... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking if C symbols get an underscore after compilation... no
checking whether target compiler is working... yes
checking whether x86_64-pc-linux-musl-objcopy works for absolute addresses...
configure: error: clang cannot link at address 0x2000

!!! Please attach the following file when seeking support:
!!!
/var/tmp/portage/sys-boot/grub-2.14_rc1/work/grub-2.14~rc1-efi-64/config.log

The behaviour of lld has been changed in
https://github.com/llvm/llvm-project/pull/140187

See: https://bugs.gentoo.org/965424






    _______________________________________________________
File Attachments:

config.log

Name: config.log                     Size: 543KiB
    <https://file.savannah.gnu.org/file/config.log?file_id=57764>



    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-617ea5df01d753693c126fee1cb8b23ce917ea5d.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67662>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to