Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge app-emulation/virtualbox-modules-5.1.30
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
saeb
n00b
n00b


Joined: 13 Apr 2017
Posts: 69
Location: iran

PostPosted: Wed Oct 18, 2017 10:17 am    Post subject: Failed to emerge app-emulation/virtualbox-modules-5.1.30 Reply with quote

Hi there,
I tried to install virtualbox but It failed

Code:
>>> Emerging (5 of 9) app-emulation/virtualbox-modules-5.1.30::gentoo
 * vbox-kernel-module-src-5.1.30.tar.xz 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: app-emulation/virtualbox-modules-5.1.30::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in
 *
 * Call stack:
 *                          ebuild.sh, line 124:  Called pkg_setup
 *   virtualbox-modules-5.1.30.ebuild, line  35:  Called linux-mod_pkg_setup
 *                   linux-mod.eclass, line 571:  Called linux-info_pkg_setup
 *                  linux-info.eclass, line 921:  Called check_extra_config
 *                  linux-info.eclass, line 731:  Called require_configured_kernel
 *                  linux-info.eclass, line 296:  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 '=app-emulation/virtualbox-modules-5.1.30::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.1.30::gentoo'`.
 * The complete build log is located at '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/temp/build.log'.
 * The ebuild environment file is located at '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/temp/die.env'.
 * Working directory: '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/homedir'
 * S: '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/work'

>>> Failed to emerge app-emulation/virtualbox-modules-5.1.30, Log file:

>>>  '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/temp/build.log'

 * Messages for package app-emulation/virtualbox-modules-5.1.30:

 * 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: app-emulation/virtualbox-modules-5.1.30::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in
 *
 * Call stack:
 *                          ebuild.sh, line 124:  Called pkg_setup
 *   virtualbox-modules-5.1.30.ebuild, line  35:  Called linux-mod_pkg_setup
 *                   linux-mod.eclass, line 571:  Called linux-info_pkg_setup
 *                  linux-info.eclass, line 921:  Called check_extra_config
 *                  linux-info.eclass, line 731:  Called require_configured_kernel
 *                  linux-info.eclass, line 296:  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 '=app-emulation/virtualbox-modules-5.1.30::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.1.30::gentoo'`.
 * The complete build log is located at '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/temp/build.log'.
 * The ebuild environment file is located at '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/temp/die.env'.
 * Working directory: '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/homedir'
 * S: '/home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/work'

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: sci-libs/vtk-7.1.0
 *  - /usr/lib64/libvtkRenderingOpenGL.so.1
 *      used by /usr/lib64/opencascade-6.9.1/ros/lin/lib64/libTKIVtk.so.0.0.0 (sci-libs/opencascade-6.9.1-r2)
 *      used by /usr/lib64/opencascade-6.9.1/ros/lin/lib64/libTKIVtkDraw.so.0.0.0 (sci-libs/opencascade-6.9.1-r2)
Use emerge @preserved-rebuild to rebuild packages using these libraries

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Fujitsu /home/saeb #



Code:
cat /home/saeb/Mount/vartmp/portage/app-emulation/virtualbox-modules-5.1.30/temp/build.log |xclip -selection clipboard


https://beepaste.io/view/JfN9RH



Code:
emerge -pv virtualbix :


https://beepaste.io/view/rwMqMt
_________________
I`m noob and I have a jillion question
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3792
Location: Austro Bavaria

PostPosted: Wed Oct 18, 2017 10:27 am    Post subject: Reply with quote

Quote:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources


Some ebuilds require a valid kernel source directory. Check if your /usr/src/linux points to the kernel which you are using (uname -a) and I assume you have built that kernel with that kernel source directory

--

I assume you have the symlink useflag set on your kernel sources.

Code:
roman@ASUS-G75VW ~ $ equery u gentoo-sources
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-kernel/gentoo-sources-4.13.7:
 U I
 - - build        : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping [make stage1]
 + + experimental : Apply experimental patches; for more information, see "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".
 - - symlink      : Force kernel ebuilds to automatically update the /usr/src/linux symlink


Turn off the symlink useflag when it is set! Or rebuild your kernel with the last kernel-sources in use and boot that kernel to fix this issue
Back to top
View user's profile Send private message
saeb
n00b
n00b


Joined: 13 Apr 2017
Posts: 69
Location: iran

PostPosted: Wed Oct 18, 2017 10:42 am    Post subject: Reply with quote

Roman_Gruber wrote:
Quote:
* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux sources


Some ebuilds require a valid kernel source directory. Check if your /usr/src/linux points to the kernel which you are using (uname -a) and I assume you have built that kernel with that kernel source directory

--

I assume you have the symlink useflag set on your kernel sources.

Code:
roman@ASUS-G75VW ~ $ equery u gentoo-sources
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-kernel/gentoo-sources-4.13.7:
 U I
 - - build        : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping [make stage1]
 + + experimental : Apply experimental patches; for more information, see "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".
 - - symlink      : Force kernel ebuilds to automatically update the /usr/src/linux symlink


Turn off the symlink useflag when it is set! Or rebuild your kernel with the last kernel-sources in use and boot that kernel to fix this issue



Code:

Fujitsu /home/saeb # equery u gentoo-sources
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-kernel/gentoo-sources-4.13.7:
 U I
 - - build        : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used
                    for creating build images and the first half of
                    bootstrapping [make stage1]
 - - experimental : Apply experimental patches; for more information, see
                    "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".
 - - symlink      : Force kernel ebuilds to automatically update the
                    /usr/src/linux symlink



My installed kernel is 4.9
Code:
 saeb@Fujitsu  ~  uname -r
4.9.34-gentoo



what I must do ? delete symlink
Code:
/usr/src/linux
and create a new to point to
Code:
/usr/src/linux-4.9.34-gentoo/

?
_________________
I`m noob and I have a jillion question
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16511
Location: here

PostPosted: Wed Oct 18, 2017 11:17 am    Post subject: Reply with quote

You /usr/src/linux symlink point to correct source kernel directory?
You can post output of commands ln -l /usr/src/ and ln -la /usr/src/linux
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
saeb
n00b
n00b


Joined: 13 Apr 2017
Posts: 69
Location: iran

PostPosted: Wed Oct 18, 2017 11:19 am    Post subject: Reply with quote

fedeliallalinea wrote:
You /usr/src/linux symlink point to correct source kernel directory?
You can post output of commands ln -l /usr/src/ and ln -la /usr/src/linux


Code:
 saeb@Fujitsu  ~  ls -la /usr/src
total 52
drwxr-xr-x 13 root root 4096 Oct 16 10:20 .
drwxr-xr-x 14 root root 4096 Sep 23 19:45 ..
-rw-r--r--  1 root root    0 Jun 29 05:58 .keep
lrwxrwxrwx  1 root root   19 Jul  7 00:00 linux -> linux-4.9.34-gentoo
drwxr-xr-x  3 root root 4096 Jul 24 20:53 linux-4.12.0-gentoo
drwxr-xr-x  3 root root 4096 Oct  3 00:02 linux-4.12.10-gentoo
drwxr-xr-x  3 root root 4096 Aug 19 20:33 linux-4.12.2-gentoo
drwxr-xr-x  3 root root 4096 Aug 31 22:25 linux-4.12.7-gentoo
drwxr-xr-x  3 root root 4096 Aug 31 22:23 linux-4.12.9-gentoo
drwxr-xr-x  3 root root 4096 Oct  3 18:38 linux-4.13.3-gentoo
drwxr-xr-x  3 root root 4096 Oct 10 16:14 linux-4.13.4-gentoo
drwxr-xr-x  3 root root 4096 Oct 16 14:15 linux-4.13.5-gentoo
drwxr-xr-x  3 root root 4096 Oct 16 14:19 linux-4.13.6-gentoo
drwxr-xr-x 25 root root 4096 Oct 16 10:22 linux-4.13.7-gentoo
drwxr-xr-x 22 root root 4096 Jul 13 03:06 linux-4.9.34-gentoo

_________________
I`m noob and I have a jillion question
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 313
Location: France

PostPosted: Wed Oct 18, 2017 12:21 pm    Post subject: Reply with quote

Hello.

I guess you keep running 4.9.34, but unmerged package for this specific version: then you may either switch to one more recent kernel, or re-merge required version.

++
Gi)
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16511
Location: here

PostPosted: Wed Oct 18, 2017 12:27 pm    Post subject: Reply with quote

I think that portage has removed your kernel sources (you must specify that a specific version kernel must keeps in system with --noreplace option).
Now the problem is that version 4.9.34 no longer exists in portage tree. You can change kernel version?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
saeb
n00b
n00b


Joined: 13 Apr 2017
Posts: 69
Location: iran

PostPosted: Wed Oct 18, 2017 1:09 pm    Post subject: Reply with quote

fedeliallalinea wrote:
I think that portage has removed your kernel sources (you must specify that a specific version kernel must keeps in system with --noreplace option).
Now the problem is that version 4.9.34 no longer exists in portage tree. You can change kernel version?

I want to upgrade 4.13 but I dont know how
_________________
I`m noob and I have a jillion question
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 5906
Location: Saint Amant, Acadiana

PostPosted: Wed Oct 18, 2017 1:17 pm    Post subject: Reply with quote

saeb wrote:
I want to upgrade 4.13 but I dont know how

How sad.
_________________
Please learn how to denote units correctly!

Political Correctness is all about replacing imaginary injustice with real injustice.
Back to top
View user's profile Send private message
saeb
n00b
n00b


Joined: 13 Apr 2017
Posts: 69
Location: iran

PostPosted: Wed Oct 18, 2017 1:18 pm    Post subject: Reply with quote

Jaglover wrote:
saeb wrote:
I want to upgrade 4.13 but I dont know how

How sad.


:oops: :oops:
_________________
I`m noob and I have a jillion question
Back to top
View user's profile Send private message
saeb
n00b
n00b


Joined: 13 Apr 2017
Posts: 69
Location: iran

PostPosted: Tue Nov 07, 2017 3:16 pm    Post subject: Reply with quote

Jaglover wrote:
saeb wrote:
I want to upgrade 4.13 but I dont know how

How sad.




Code:
Fujitsu /home/saeb # uname -r
4.9.34-gentoo
Fujitsu /home/saeb # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 20 Nov  3 11:54 /usr/src/linux -> linux-4.13.10-gentoo
Fujitsu /home/saeb # eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.13.11-gentoo
Fujitsu /home/saeb #

_________________
I`m noob and I have a jillion question
Back to top
View user's profile Send private message
Tony0945
Veteran
Veteran


Joined: 25 Jul 2006
Posts: 1980
Location: Illinois, USA

PostPosted: Tue Nov 07, 2017 5:18 pm    Post subject: Reply with quote

saeb wrote:
I want to upgrade 4.13 but I dont know how

Do you have app-admin/eselect installed? if so "eselect kernel list" and "eselect kernel set" will show you your installed kernels and allow you to easily set the symlink.

If your kernel was built with CONFIG_IKCONFIG_PROC=y, you can easily retrieve your running kernel config with "zcat /proc/config.gz".

The following assumes that CONFIG_IKCONFIG_PROC=y
Code:
cd /usr/src/linux
zcat /proc/config.gz >.config

# At this point we should compare kernel versions and make oldconfig if the base version has updated
make oldconfig
make menuconfig   &&  time make -j4 && make -j4 modules_install && make -j4 install && echo "Don't forget to update boot loader menu"

# If you have out of kernel modules (like virtualbox or r8168) do the following also
emerge @module-rebuild
Adjust -j4 to whatever you have in make.conf.

When oldconfig asks you a question and you don't know the answer, just take the default.

If CONFIG_IKCONFIG_PROC is not set, I recommend you fix that at the make menuconfig stage. For now you have to hunt up the config file that you used to build the existing kernel.

Jaglovers, response is good, but I think you want something specific right now rather than wading through a tutorial wondering which choice to make. Do follow up with the link, however, to learn why my script works. BTW, it won't work if you are using an initram which it looks like you aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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