Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691454 - 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
Summary: sys-boot/refind-0.10.4-r2 : x86_64-pc-linux-gnu-ld: cannot open linker script...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Stéphane Veyret
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-08-04 20:11 UTC by Toralf Förster
Modified: 2020-04-29 18:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.27 KB, text/plain)
2019-08-04 20:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,102 bytes, text/plain)
2019-08-04 20:11 UTC, Toralf Förster
Details
environment (environment,101.48 KB, text/plain)
2019-08-04 20:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.19 KB, application/x-bzip)
2019-08-04 20:11 UTC, Toralf Förster
Details
sys-boot:refind-0.10.4-r2:20190804-200951.log (sys-boot:refind-0.10.4-r2:20190804-200951.log,14.88 KB, text/plain)
2019-08-04 20:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.61 KB, application/x-bzip)
2019-08-04 20:11 UTC, Toralf Förster
Details
refind-0.11.4 ebuild using get_libdir() EAPI6+ (refind-0.11.4.ebuild,4.70 KB, text/plain)
2019-10-21 14:37 UTC, XenHat
Details

Note You need to log in before you can comment on or make changes to this bug.
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.