Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error emerging bbswitch.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 245
Location: Toronto, Canada

PostPosted: Sat Aug 22, 2020 8:16 pm    Post subject: Error emerging bbswitch. Reply with quote

I tried to update my system using:

Code:
emerge-webrsync
emerge --update --deep --with-bdeps=y --newuse @world


I get the following error when emerge gets to bbswitch(emerge bbswitch does the same thing):

Quote:
$ sudo emerge bbswitch
!!! CONFIG_PROTECT is empty
Calculating dependencies ... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-power/bbswitch-0.8-r5::gentoo
* bbswitch-0.8.tar.gz BLAKE2B SHA512 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: sys-power/bbswitch-0.8-r5::gentoo failed (setup phase):
* Kernel not configured; no .config found in
*
* Call stack:
* ebuild.sh, line 125: Called pkg_setup
* bbswitch-0.8-r5.ebuild, line 37: Called linux-mod_pkg_setup
* linux-mod.eclass, line 586: Called linux-info_pkg_setup
* linux-info.eclass, line 962: Called check_extra_config
* linux-info.eclass, line 770: Called require_configured_kernel
* linux-info.eclass, line 304: 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 '=sys-power/bbswitch-0.8-r5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-power/bbswitch-0.8-r5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-power/bbswitch-0.8-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-power/bbswitch-0.8-r5/temp/die.env'.
* Working directory: '/var/tmp/portage/sys-power/bbswitch-0.8-r5/homedir'
* S: '/var/tmp/portage/sys-power/bbswitch-0.8-r5/work/bbswitch-0.8'

>>> Failed to emerge sys-power/bbswitch-0.8-r5, Log file:

>>> '/var/tmp/portage/sys-power/bbswitch-0.8-r5/temp/build.log'
* Messages for package sys-power/bbswitch-0.8-r5:
* 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: sys-power/bbswitch-0.8-r5::gentoo failed (setup phase):
* Kernel not configured; no .config found in
*
* Call stack:
* ebuild.sh, line 125: Called pkg_setup
* bbswitch-0.8-r5.ebuild, line 37: Called linux-mod_pkg_setup
* linux-mod.eclass, line 586: Called linux-info_pkg_setup
* linux-info.eclass, line 962: Called check_extra_config
* linux-info.eclass, line 770: Called require_configured_kernel
* linux-info.eclass, line 304: 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 '=sys-power/bbswitch-0.8-r5::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-power/bbswitch-0.8-r5::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-power/bbswitch-0.8-r5/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-power/bbswitch-0.8-r5/temp/die.env'.
* Working directory: '/var/tmp/portage/sys-power/bbswitch-0.8-r5/homedir'
* S: '/var/tmp/portage/sys-power/bbswitch-0.8-r5/work/bbswitch-0.8'



On void I had to patch bbswitch.c in order for it to work with newer Kernels...I have not upgraded my kernel on Gentoo since my install and my kernel version is 5.4.38-gentoo ..
I am kind of new to Gentoo so please tell me in detail how to get rid of this error...

Many Thanks
Back to top
View user's profile Send private message
alamahant
Guru
Guru


Joined: 23 Mar 2019
Posts: 550

PostPosted: Sat Aug 22, 2020 8:32 pm    Post subject: Reply with quote

Hi
Please run
Code:

ls -l /usr/src
ls /usr/src/linux/.config
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 245
Location: Toronto, Canada

PostPosted: Sat Aug 22, 2020 8:39 pm    Post subject: Reply with quote

Code:
$ ls -l /usr/src
total 8
lrwxrwxrwx  1 root root   19 Jun 16 18:28 linux -> linux-5.4.38-gentoo
drwxr-xr-x 21 root root 4096 Jul  3 12:59 linux-5.4.38-gentoo
drwxr-xr-x 25 root root 4096 Jul  3 12:28 linux-5.4.48-gentoo


Code:
$ ls /usr/src/linux/.config
/usr/src/linux/.config
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum