Created attachment 868826 [details] emerge --info "gcc" -MMD -MF /var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/Build/OvmfX64/RELEASE_GCC49/X64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/OUTPUT/ComponentName.obj.deps -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Wno-array-bounds -include AutoGen.h -fno-common -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=TerminalDxeStrings -m64 -fno-stack-protector "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -Os -Wno-unused-but-set-variable -Wno-unused-const-variable -DMDEPKG_NDEBUG -mno-mmx -mno-sse -D DISABLE_NEW_DEPRECATED_INTERFACES -D ENABLE_MD5_DEPRECATED_INTERFACES -c -o /var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/Build/OvmfX64/RELEASE_GCC49/X64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/OUTPUT/./ComponentName.obj -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdeModulePkg/Universal/Console/TerminalDxe -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/Build/OvmfX64/RELEASE_GCC49/X64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/DEBUG -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdePkg -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdePkg/Include -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdePkg/Test/UnitTest/Include -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdePkg/Include/X64 -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdeModulePkg -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdeModulePkg/Include -I/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/include /var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/MdeModulePkg/Universal/Console/TerminalDxe/ComponentName.c /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: read-only segment has dynamic relocations collect2: error: ld returned 1 exit status make: *** [GNUmakefile:395: /var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/Build/OvmfX64/RELEASE_GCC49/X64/OvmfPkg/Sec/SecMain/DEBUG/SecMain.dll] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/Build/OvmfX64/RELEASE_GCC49/X64/OvmfPkg/Sec/SecMain] build.py... : error F002: Failed to build module /var/tmp/portage/sys-firmware/edk2-ovmf-202202/work/edk2-edk2-stable202202/OvmfPkg/Sec/SecMain.inf [X64, GCC49, RELEASE]
Created attachment 868827 [details] build log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08271e9f6435f27dbb65567926c68bb012cf4c74 commit 08271e9f6435f27dbb65567926c68bb012cf4c74 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-08-28 19:09:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-08-28 19:09:52 +0000 sys-firmware/edk2-ovmf: fix build w/ binutils-2.41[hardened] Closes: https://bugs.gentoo.org/913110 Signed-off-by: Sam James <sam@gentoo.org> sys-firmware/edk2-ovmf/edk2-ovmf-202202.ebuild | 6 +++ .../edk2-ovmf-202202-binutils-2.41-textrels.patch | 21 +++++++++++ .../files/edk2-ovmf-202202-lld-textrels.patch | 43 ++++++++++++++++++++++ 3 files changed, 70 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db4070ee49e11b83c6ee1711b84bec5453450b04 commit db4070ee49e11b83c6ee1711b84bec5453450b04 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-02-08 01:42:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-08 01:47:09 +0000 app-emulation/xen-tools: fix build issues * Fix build w/ hardened binutils which rejects textrels. They're fine here. * Use gnu17 for some components as incompatible with gnu23. Bug: https://bugs.gentoo.org/913110 Bug: https://bugs.gentoo.org/937610 Signed-off-by: Sam James <sam@gentoo.org> .../files/edk2-202202-binutils-2.41-textrels.patch | 21 +++++++++++++++++++++ .../xen-tools/xen-tools-4.18.4_pre1.ebuild | 16 ++++++++++++++++ app-emulation/xen-tools/xen-tools-4.19.1.ebuild | 11 +++++++++++ 3 files changed, 48 insertions(+)