Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640158 - =sys-apps/fwupdate-9 - ld.gold: fatal error: -shared and -pie are incompatible
Summary: =sys-apps/fwupdate-9 - ld.gold: fatal error: -shared and -pie are incompatible
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-07 10:12 UTC by Pavel Procopiuc
Modified: 2020-05-23 08:29 UTC (History)
4 users (show)

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


Attachments

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