Created attachment 488626 [details] build.log With =dev-libs/elfutils-0.166 prelink compiles successfully.
Created attachment 488628 [details] emerge --info '=sys-devel/prelink-20130503::gentoo'
Oh, it's because dev-libs/elfutils-0.169-r1[static-libs] does not install static libelf.a library. It should. x86_64-pc-linux-gnu-gcc ... -static -o prelink cache.o ... -lelf /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lelf
(In reply to Sergei Trofimovich from comment #2) > Oh, it's because dev-libs/elfutils-0.169-r1[static-libs] does not install > static libelf.a library. It should. It's caused by ebuild bug in 168->169 transition. use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in was converted to if use static-libs; then sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die fi Fixed as: --- elfutils-0.170.ebuild 2017-08-12 18:42:20.994014938 +0100 +++ elfutils-0.170-r1.ebuild 2017-08-12 18:48:10.468236781 +0100 @@ -30,3 +30,3 @@ - if use static-libs; then + if ! use static-libs; then sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die Pushed elfutils-0.170-r1 as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0183043a118b18a4bf409fd842f754d1bc0506e0
(In reply to Sergei Trofimovich from comment #3) > (In reply to Sergei Trofimovich from comment #2) > > Oh, it's because dev-libs/elfutils-0.169-r1[static-libs] does not install > > static libelf.a library. It should. > > It's caused by ebuild bug in 168->169 transition. > use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e > '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in > was converted to > if use static-libs; then > sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' > lib{asm,dw,elf}/Makefile.in || die > fi > > Fixed as: > > --- elfutils-0.170.ebuild 2017-08-12 18:42:20.994014938 +0100 > +++ elfutils-0.170-r1.ebuild 2017-08-12 18:48:10.468236781 +0100 > @@ -30,3 +30,3 @@ > > - if use static-libs; then > + if ! use static-libs; then > sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' > lib{asm,dw,elf}/Makefile.in || die > > Pushed elfutils-0.170-r1 as: > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=0183043a118b18a4bf409fd842f754d1bc0506e0 Could we also fix this for the stable version of elfutils? Either make a new stable dev-libs/elfutils-0.169-r2 with those patches or stabilize the existing dev-libs/elfutils-0.170-r1
This is still broken in stable (just hit when rebuilding world after profiles 17.0 switch)
amd64/x86 stable
sparc stable (thanks to Rolf Eike Beer)
arm stable
ia64 stabke
hppa stable (thanks to Rolf Eike Beer)
ppc: 2 tests fail, but this is an improvement over previous stable 0.169-r1 (4 tests fail). See bug #619706
Stable on alpha.
ppc stable
ppc64 stable Last arch. Closing.