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

Bug 640158

Summary: =sys-apps/fwupdate-9 - ld.gold: fatal error: -shared and -pie are incompatible
Product: Gentoo Linux Reporter: Pavel Procopiuc <hyrurg>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED OBSOLETE    
Severity: normal CC: ansla80, jasmin+gentoo, mads, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pavel Procopiuc 2017-12-07 10:12:10 UTC
Hi,

Since updating to the 17.0 profile fwupdate doesn't build:

>>> Compiling source in /var/tmp/portage/sys-apps/fwupdate-9/work/fwupdate-9 ...
make --jobs=4 --silent EFIDIR=gentoo GNUEFIDIR=/usr/lib64
Building with EFIDIR as gentoo
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: fatal error: -shared and -pie are incompatible
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:95: fakeesrt2.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:9: all] Error 2
Comment 1 Pavel Procopiuc 2018-01-29 16:24:16 UTC
After some additional investigation I found out that this only happens with gold linker
Comment 2 Andrei Slavoiu 2018-04-30 12:44:38 UTC
This is made worse by the fact that efi/Makefile does not obey LDFLAGS (it looks like on purpose) so this needs to be fixed with a patch in the ebuild
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-23 08:29:20 UTC
Removing per p.mask.