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

Bug 627778

Summary: sys-kernel/gentoo-sources(?) should depend on virtual/libelf - ./tools/objtool/objtool: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory
Product: Gentoo Linux Reporter: Christian Widmer <cwidmer>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal CC: arthur, cwidmer, email200202, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Christian Widmer 2017-08-13 15:18:13 UTC
Created attachment 488780 [details]
build.log

Building the newest version of the nvidia binary drivers fails due to a missing libelf.so.1 when elfutils is not installed. Manually installing elfutils allows the package to build without errors.
Comment 1 Christian Widmer 2017-08-13 15:18:44 UTC
Created attachment 488782 [details]
emerge --info
Comment 2 Mike Pagano gentoo-dev 2017-08-23 17:53:58 UTC
Reassigning to nvidia maintainer
Comment 3 Mike Pagano gentoo-dev 2017-08-23 17:55:10 UTC
Jer,

I just saw you assigned it to us after I assigned it to you.  This is an out of kernel driver.  Can you tell me why you think it should be supported in the kernel ebuild?
Comment 4 email200202 2018-02-07 13:58:31 UTC
Building virtualbox-guest-additions-5.2.6 failed because of missing libelf.so.0 which is provided by dev-libs/libelf. 

There two problems:

(1) virtualbox-guest-additions should depend on dev-libs/libelf.

(2) dev-libs/libelf blocks dev-libs/elfutils and virtual/libelf.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-07 14:02:45 UTC
(In reply to Mike Pagano from comment #3)
> I just saw you assigned it to us after I assigned it to you.  This is an out
> of kernel driver.  Can you tell me why you think it should be supported in
> the kernel ebuild?

$ scanelf -n /usr/src/linux/tools/objtool/objtool
 TYPE   NEEDED FILE
ET_DYN libelf.so.1,libc.so.6 /usr/src/linux/tools/objtool/objtool
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-07 14:05:23 UTC
/usr/src/linux/tools/objtool/Makefile:35:LDFLAGS  += -lelf $(LIBSUBCMD)
Comment 7 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2018-02-11 07:49:26 UTC
is now depending on virtual/libelf