Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 691454

Summary: sys-boot/refind-0.10.4-r2 : x86_64-pc-linux-gnu-ld: cannot open linker script file /.../elf_x86_64_efi.lds: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Stéphane Veyret <sveyret>
Status: RESOLVED WONTFIX    
Severity: normal CC: proxy-maint, voaxeyr
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/13479
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-boot:refind-0.10.4-r2:20190804-200951.log
temp.tbz2
refind-0.11.4 ebuild using get_libdir() EAPI6+

Description Toralf Förster gentoo-dev 2019-08-04 20:11:32 UTC
x86_64-pc-linux-gnu-ld -L./../libeg/ -L./../mok/ -L./../EfiLib/ -T /usr/lib/elf_x86_64_efi.lds -shared -nostdlib -Bsymbolic 			-L/usr/lib -L/usr/lib /usr/lib/crt0-efi-x86_64.o -znocombreloc -zdefs  main.o mystrings.o apple.o line_edit.o config.o menu.o screen.o icns.o gpt.o crc32.o lib.o driver_support.o legacy.o \
      -o refind_x64.so -leg -lmok -lEfiLib -lefi -lgnuefi /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/libgcc.a
x86_64-pc-linux-gnu-ld: cannot open linker script file /usr/lib/elf_x86_64_efi.lds: No such file or directory
make[1]: *** [Makefile:48: refind_x64.so] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-boot/refind-0.10.4-r2/work/refind-0.10.4/refind'
make: *** [Makefile:67: gnuefi] Error 2

  -------------------------------------------------------------------

  This is an stable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-stable-20190801-082006

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.34.2 *



emerge -qpvO sys-boot/refind
[ebuild  N    ] sys-boot/refind-0.10.4-r2  USE="ext2 ext4 (gnuefi) iso9660 -btrfs (-custom-cflags) -doc -hfs -ntfs -reiserfs"
Comment 1 Toralf Förster gentoo-dev 2019-08-04 20:11:34 UTC
Created attachment 585716 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-08-04 20:11:37 UTC
Created attachment 585718 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-08-04 20:11:40 UTC
Created attachment 585720 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-08-04 20:11:43 UTC
Created attachment 585722 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-08-04 20:11:45 UTC
Created attachment 585724 [details]
sys-boot:refind-0.10.4-r2:20190804-200951.log
Comment 6 Toralf Förster gentoo-dev 2019-08-04 20:11:48 UTC
Created attachment 585726 [details]
temp.tbz2
Comment 7 Stéphane Veyret 2019-08-05 08:38:46 UTC
Thank you for reporting this.

It seems to be a bug hidden before profile 17.1. Actually, elf_x86_64_efi.lds is in /usr/lib64 when compiling for amd64. This will require a correction in the ebuild.
Comment 8 XenHat 2019-10-21 14:37:30 UTC
Created attachment 593532 [details]
refind-0.11.4 ebuild using get_libdir() EAPI6+

Seeing this bug is still open and the package still does not build, I've attached a very summarily fixed ebuild for refind-0.11.4 with all the references to /usr/lib replaced with the result of get_libdir(). This builds on my machine, but YMMV.

sys-boot/refind-0.11.4::gentoo was built with the following:
USE="ext2 ext4 (gnuefi) iso9660 -btrfs (-custom-cflags) -doc
-hfs -ntfs -reiserfs" ABI_X86="(64)"
Comment 9 XenHat 2019-10-21 14:55:45 UTC
The ebuild for refind-10.4 being vastly different, I could not, however, fix this one.
Comment 10 Stéphane Veyret 2019-10-28 10:59:48 UTC
Thank you for the correction, XenHat. Would you mind creating a PR under GitHub? This would allow the correction to be under your name, but if you prefer, I can do it for you.
Comment 11 XenHat 2019-10-28 18:57:09 UTC
I had re-do my Gentoo install from scratch due to a failed upgrade to the 17.1 profile, and the bundled 11.4 ebuild worked fine.
I don't mind submitting the PR, as long as it's not a useless change.
Comment 12 Stéphane Veyret 2020-04-29 18:44:05 UTC
Closing as wontfix as the problem does not seem to exist in latest versions.