empty eselect kernel list

Anything that pertains to Portage

Moderator: Moderators

Post Reply
User avatar
sabayonino
Sagely Hen
Posts: 3251
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

empty eselect kernel list

Post by sabayonino » Wed Sep 14, 2016 12:09

Hi , merging nvidia-drivers from portage :

I've installed sabayon-source to build nvidia-drivers and copy running kernel configuration

Code: Select all

zcat /proc/config.gz > /usr/src/linux/.config
)

Code: Select all

Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/nvidia-drivers-370.28
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Checking for suitable kernel configuration options...          

"eselect kernel list" is empty

Code: Select all

linux # ls
arch   certs    CREDITS  Documentation  firmware  include  ipc     Kconfig  lib          mm   README          sabayon  scripts   sound  usr
block  COPYING  crypto   drivers        fs        init     Kbuild  kernel   MAINTAINERS  net  REPORTING-BUGS  samples  security  tools  virt
sabayon-8 linux # eselect kernel list
Available kernel symlink targets:
  (none found)


src # ls -l
totale 4
lrwxrwxrwx  1 root root   19 14 Sep 12.57 linux -> linux-4.7.0-sabayon
drwxr-xr-x 26 root root 4096 14 Sep 13.01 linux-4.7.0-sabayon


nvidia-drivers output

Code: Select all

Emerging (1 of 1) x11-drivers/nvidia-drivers-370.28::gentoo
 * NVIDIA-Linux-x86_64-370.28.run SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                   [ ok ]
 * nvidia-settings-370.28.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.
 * ERROR: x11-drivers/nvidia-drivers-370.28::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in 
 * 
 * Call stack:
 *                      ebuild.sh, line 133:  Called pkg_setup
 *   nvidia-drivers-370.28.ebuild, line 134:  Called linux-mod_pkg_setup
 *               linux-mod.eclass, line 570:  Called require_configured_kernel
 *              linux-info.eclass, line 297:  Called die
 * The specific snippet of code:
 *              die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
 * 
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-370.28::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-370.28::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/temp/die.env'.
 * Working directory: '/usr/lib64/python2.7/site-packages'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-370.28, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-370.28:

 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version

 * Messages for package x11-drivers/nvidia-drivers-370.28:

 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.
 * ERROR: x11-drivers/nvidia-drivers-370.28::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in 
 * 
 * Call stack:
 *                      ebuild.sh, line 133:  Called pkg_setup
 *   nvidia-drivers-370.28.ebuild, line 134:  Called linux-mod_pkg_setup
 *               linux-mod.eclass, line 570:  Called require_configured_kernel
 *              linux-info.eclass, line 297:  Called die
 * The specific snippet of code:
 *              die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
 * 
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-370.28::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-370.28::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/temp/die.env'.
 * Working directory: '/usr/lib64/python2.7/site-packages'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-370.28/work/'
something is wrong ... :cyclops:
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

svantoviit
Old Dear Hen
Posts: 727
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: empty eselect kernel list

Post by svantoviit » Sat Sep 17, 2016 9:44

Install sabayon-sources matching your kernel using equo.

User avatar
sabayonino
Sagely Hen
Posts: 3251
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: empty eselect kernel list

Post by sabayonino » Sat Sep 17, 2016 11:46

svantoviit wrote:Install sabayon-sources matching your kernel using equo.

as i wrote :
I've installed sabayon-source to build nvidia-drivers and copy running kernel configuration
I've 4.7.0 only

[edit]

Code: Select all

$ uname -r
4.7.0-sabayon

sabayon-8 saba $ equo q installed linux-sabayon sabayon-sources -qv
sys-kernel/linux-sabayon-4.7.3
sys-kernel/sabayon-sources-4.7.3
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

Post Reply