I do apologize for not reporting this in past, but this been failing since a while. I'm not able to build edk2-ovmf-202008 if I don't use the binary USE flag. build.py... : error 7000: Failed to execute command make tbuild [/var/tmp/portage/sys-firmware/edk2-ovmf-202008/work/edk2-edk2-stable202008/Build/OvmfX64/RELEASE_GCC49/X64/OvmfPkg/AcpiTables/AcpiTables] build.py... : error F002: Failed to build module /var/tmp/portage/sys-firmware/edk2-ovmf-202008/work/edk2-edk2-stable202008/OvmfPkg/AcpiTables/AcpiTables.inf [X64, GCC49, RELEASE] - Failed - Build end time: 13:54:16, Feb.01 2021 Build total time: 00:00:15 Reproducible: Always Steps to Reproduce: 1.Try to build edk2-ovmf without USE flag 2. 3.Observe the results Actual Results: Fails Expected Results: Should build successfully Portage 3.0.14 (python 3.8.7-final-0, default/linux/amd64/17.1/systemd, gcc-10.2.0, glibc-2.32-r7, 5.9.10-waltercool x86_64) ================================================================= System uname: Linux-5.9.10-waltercool-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.2.5 KiB Mem: 32780740 total, 472480 free KiB Swap: 16390140 total, 15475616 free Timestamp of repository gentoo: Mon, 01 Feb 2021 15:17:47 +0000 Head commit of repository gentoo: 771d0e53f94d3ae7405d73f92fae1c2ae22fdee7 sh bash 5.1_p4 ld GNU gold (Gentoo 2.35.1 p2 2.35.1) 1.16 ccache version 4.1 [enabled] app-shells/bash: 5.1_p4::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.0-r1::gentoo dev-lang/python: 2.7.18-r6::gentoo, 3.7.9-r2::gentoo, 3.8.7-r1::gentoo dev-util/ccache: 4.1::gentoo dev-util/cmake: 3.19.4::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7-r1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.1-r1::gentoo sys-devel/gcc: 10.2.0-r5::gentoo sys-devel/gcc-config: 2.3.3::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 brave-overlay location: /var/lib/layman/brave-overlay masters: gentoo priority: 50 vapoursynth location: /var/lib/layman/vapoursynth masters: gentoo priority: 50 waltercool location: /var/lib/layman/waltercool masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE NVIDIA-r2 ipw3945" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=skylake -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf" 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="-O2 -pipe -march=skylake -pipe -O2" DISTDIR="/usr/portage/distfiles" 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 ccache compressdebug 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" 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="/var/tmp" USE="3d X a52 aac acl acpi activities alsa amd64 amr ao apng berkdb bindist bluetooth botan brightness-control btrfs bzip2 c++11 cairo cdda chm cjk cli clippy colord colorio connection-sharing conntrack crda crypt cryptsetup cups cycles d3d9 dbus default-gold designer discord-presence dri dri3 dvd egl eglfs elfutils epub equalizer exif ffmpeg fftw flac fontconfig fortran frei0r gdbm gegl gentoo-vm gif glamor gles2 go gold gpm gsl gstreamer haptic hdri http2 hwaccel hwloc iconv icu imagemagick ipv6 ithreads jack jpeg json jumbo-build kdenlive kdrive kipi kwallet lame lcms ldac ldap lensfun libass libcxx libdrm libglvnd libinput libkms libproxy libtirpc libv4l llvm lm-sensors lm_sensors localstorage lzma mad mdnsresponder-compat midi mikmod minizip mmx mng mod modemmanager modplug mount mp3 mpeg mtp multilib multimedia musicbrainz native-headset ncurses networkmanager nls nptl ntfsdecrypt nvenc office ogg okteta okular openal opencl opencv openexr opengl openh264 openimageio openmax openmp opus pam pcap pcre pcre16 pdf pgo phonon player plotutils png policykit postproc postscript pptx pulseaudio qalculate qml qrcode qtmedia readline replaygain rpc samba scripttools sctp sdl sdl2 seccomp secure-delete semantic-desktop share smp spice split-usr sqlite srt sse sse2 ssl startup-notification stubby svc svg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-llvm system-sqlite systemd sysv-utils taglib tcpd theora thumbnail tiff timidity tinfo tls-heartbeat touchpad truetype udev udisks unicode upnp urandom user-session uvm v4l vaapi valgrind vapoursynth vdpau vector-icons vim-syntax virtfs vnc vorbis vpx vulkan wavpack wayland wayland-compositor webengine webp websockets webstart winbind x264 x265 xattr xcb xcomposite xkb xml xmp xscreensaver xvfb xvid xvmc xwayland yaml zeroconf zeromq zimg zip zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon stage sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" 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 pc efi-32" INPUT_DEVICES="keyboard libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="ARM NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8 python3_7" QEMU_SOFTMMU_TARGETS="arm aarch64 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 685461 [details] build.log + emerge --info.txt Can only reproduce if using ld.gold (which seems to be default here). Also please attach full build.log in the future.
Created attachment 685464 [details] build.log
(In reply to Ionen Wolkens from comment #1) > Created attachment 685461 [details] > build.log + emerge --info.txt > > Can only reproduce if using ld.gold (which seems to be default here). > > Also please attach full build.log in the future. Sorry, my bad, will do.
I can confirm this issue. Let's workaround it and force bfd linker usage
Created attachment 745995 [details, diff] force-bfd-linker.patch