Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627778 - 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
Summary: sys-kernel/gentoo-sources(?) should depend on virtual/libelf - ./tools/objtoo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-13 15:18 UTC by Christian Widmer
Modified: 2018-02-11 07:49 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,11.49 KB, text/plain)
2017-08-13 15:18 UTC, Christian Widmer
Details
emerge --info (emerge--info.txt,5.96 KB, text/plain)
2017-08-13 15:18 UTC, Christian Widmer
Details

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