Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854147 - sys-libs/efivar-38 fails with "Your linker is not supported" error
Summary: sys-libs/efivar-38 fails with "Your linker is not supported" error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-24 20:19 UTC by Marco Napetti
Modified: 2022-06-27 19:12 UTC (History)
0 users

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


Attachments
build.log (build.log,3.78 KB, text/x-log)
2022-06-24 20:20 UTC, Marco Napetti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Napetti 2022-06-24 20:19:40 UTC
This error bugs me since months, but new work, less time for my PC, and here we are...

The build fails with two lines like that:
./makeguids Your linker is not supported guids.txt guid-symbols.c include/efivar/efivar-guids.h guids.lds


Reproducible: Always




emerge --info efivar
Portage 3.0.30 (python 3.10.4-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r7, 5.17.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.17.9-gentoo-x86_64-AMD_Ryzen_5_1600_Six-Core_Processor-with-glibc2.35
KiB Mem:    16329248 total,   6586664 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 24 Jun 2022 18:47:46 +0000
Head commit of repository gentoo: bb29ff0f3cccc2e599be61d0d36bc37000c6bb93

sh bash 5.1_p16
ld ld di GNU (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.4_p1::gentoo, 3.11.0_beta1-r2::gentoo
dev-lang/rust-bin:         1.60.0::gentoo
dev-util/cmake:            3.23.1::gentoo
dev-util/meson:            0.62.1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.3::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.3::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE google-chrome Oracle-BCLA-JavaSE linux-fw-redistributable unRAR fairuse android ValveSteamLicense Spotify freedist Skype-TOS CC-BY-ND-3.0 dropbox MPEG-4 no-source-code AdobeFlash-11.x Plex"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver1 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/home/portage"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_dbm authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so speling status socache_shmcb unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python3_10" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sys-libs/efivar-37::gentoo was built with the following:
USE="" ABI_X86="(64)"
CFLAGS="-march=k8-sse3 -pipe -O2"
CXXFLAGS="-march=k8-sse3 -pipe -O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Marco Napetti 2022-06-24 20:20:58 UTC
Created attachment 787454 [details]
build.log
Comment 2 Mike Gilbert gentoo-dev 2022-06-24 20:37:12 UTC
> LC_ALL="it_IT.UTF-8"

I suspect this is to blame. Please do not set LC_ALL when running emerge.

The build system runs "ld --version" and expects to see the string "GNU ld", as below:

ld GNU ld (Gentoo 2.38 p4) 2.38

Based on your emerge --info, ld --version appears to output this:

ld ld di GNU (Gentoo 2.38 p4) 2.38

The string "GNU ld" does not appear due to the Italian translation.
Comment 3 Marco Napetti 2022-06-24 20:47:42 UTC
Understandable...
What's the correct way to set localization now? I've created this system like 20 years ago and simply updated the hardware without reinstalling...
Comment 4 Mike Gilbert gentoo-dev 2022-06-24 20:56:05 UTC
(In reply to Marco Napetti from comment #3)

Just set LANG instead of LC_ALL.

This provides a default value for the various categories (LC_COLLATE, LC_MESSAGES, etc), but also allows them to be overridden individually. emerge specifically sets LC_MESSAGES=C, for example.

See the locale(7) manual page for more information.
Comment 5 Marco Napetti 2022-06-24 20:57:41 UTC
Thank you very much
Comment 6 Mike Gilbert gentoo-dev 2022-06-24 21:03:53 UTC
Keeping this open; I sent a patch upstream to work around this.
Comment 7 Larry the Git Cow gentoo-dev 2022-06-27 19:00:00 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2f2470d7a323a9a24a91b54f6c223c95f7fa2c1

commit d2f2470d7a323a9a24a91b54f6c223c95f7fa2c1
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-06-24 20:49:38 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-06-27 18:59:47 +0000

    toolchain-funcs.eclass: set LC_ALL=C where appropriate
    
    tc-ld-is-gold and tc-ld-is-lld check the output of ld --version.
    This output may vary depending on the language selected by the user.
    Set LC_ALL=C to force English output.
    
    Bug: https://bugs.gentoo.org/854147
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 eclass/toolchain-funcs.eclass | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2022-06-27 19:12:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=119e2da03535900226fede22f92ce061f3a55a98

commit 119e2da03535900226fede22f92ce061f3a55a98
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-06-27 19:12:24 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-06-27 19:12:24 +0000

    sys-libs/efivar: fix build with non-English locale
    
    Closes: https://bugs.gentoo.org/854147
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/efivar/efivar-38.ebuild                |  1 +
 sys-libs/efivar/files/efivar-38-ld-locale.patch | 30 +++++++++++++++++++++++++
 2 files changed, 31 insertions(+)