Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] virtualbox 4.2.18 fails to build modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Schnulli
Apprentice
Apprentice


Joined: 25 Jun 2010
Posts: 155

PostPosted: Thu Sep 19, 2013 10:39 pm    Post subject: [solved] virtualbox 4.2.18 fails to build modules Reply with quote

#

* ERROR: app-emulation/virtualbox-modules-4.2.18::gentoo failed (compile phase):
* emake failed
#
used to be lazy building a genkernel... the reason? as i saw lots are missing in genkernel for iptables (again)
anyone?

cheers

Solution:

solved !

USE="-pax_kernel" emerge virtualbox

and it work pretty fine


Last edited by Schnulli on Fri Sep 20, 2013 1:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
fturco
Apprentice
Apprentice


Joined: 08 Dec 2010
Posts: 240
Location: Italy

PostPosted: Fri Sep 20, 2013 7:09 am    Post subject: Reply with quote

You should post more lines for the error message as it is impossible to understand why emerge failed from the generic error message you reported. About 50 lines would be good, I think.
Back to top
View user's profile Send private message
Schnulli
Apprentice
Apprentice


Joined: 25 Jun 2010
Posts: 155

PostPosted: Fri Sep 20, 2013 7:22 am    Post subject: Reply with quote

sorry.......
Code:
 * Package:    app-emulation/virtualbox-modules-4.2.18
 * Repository: gentoo
 * Maintainer: polynomial-c@gentoo.org patrick@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux pax_kernel userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.10.7-gentoo/build
 * Found sources for kernel version:
 *     3.10.7-gentoo
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-4.2.18.tar.xz to /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work
>>> Source unpacked in /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work
>>> Preparing source in /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work ...
 * Applying virtualbox-modules-4.1.4-pax-const.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing vboxdrv module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/3.10.7-gentoo/build all
*** Building 'vboxdrv' module ***
make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv'
make KBUILD_VERBOSE= SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv CONFIG_MODULE_SIG= -C /usr/src/linux modules
make[2]: Entering directory `/usr/src/linux-3.10.7-gentoo'
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvTracer.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvSem.o
In file included from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvInternal.h:148:0,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrv.c:32:
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvIDC.h:163:22: error: expected ':', ',', ';', '}' or '__attribute__' before 'Out'In file included from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvInternal.h:148:0,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvSem.c:32:
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvIDC.h:163:22: error: expected ':', ',', ';', '}' or '__attribute__' before 'Out'

In file included from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvInternal.h:148:0,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvTracer.c:33:
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvIDC.h:163:22: error: expected ':', ',', ';', '}' or '__attribute__' before 'Out'
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvSem.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrvTracer.o] Error 1
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrv.c: In function 'supdrvIDC_LdrGetSymbol':
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrv.c:4486:24: error: 'union <anonymous>' has no member named 'Out'
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrv.c:4517:28: error: 'union <anonymous>' has no member named 'Out'
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/SUPDrv.o] Error 1
In file included from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/linux/../SUPDrvInternal.h:148:0,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/linux/SUPDrv-linux.c:31:
/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/linux/../SUPDrvIDC.h:163:22: error: expected ':', ',', ';', '}' or '__attribute__' before 'Out'
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv] Error 2
make[2]: Leaving directory `/usr/src/linux-3.10.7-gentoo'
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work/vboxdrv'
make: *** [all] Error 2
 * ERROR: app-emulation/virtualbox-modules-4.2.18::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-4.2.18::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-4.2.18::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.18/work'
Back to top
View user's profile Send private message
fturco
Apprentice
Apprentice


Joined: 08 Dec 2010
Posts: 240
Location: Italy

PostPosted: Fri Sep 20, 2013 8:12 am    Post subject: Reply with quote

It seems similar to https://forums.gentoo.org/viewtopic-t-962968-start-0.html.

EDIT: fixed link


Last edited by fturco on Fri Sep 20, 2013 2:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Schnulli
Apprentice
Apprentice


Joined: 25 Jun 2010
Posts: 155

PostPosted: Fri Sep 20, 2013 1:22 pm    Post subject: Reply with quote

hi, link dosnt work, sorry, yet solved?
Back to top
View user's profile Send private message
Schnulli
Apprentice
Apprentice


Joined: 25 Jun 2010
Posts: 155

PostPosted: Fri Sep 20, 2013 1:35 pm    Post subject: Reply with quote

solved !

USE="-pax_kernel" emerge virtualbox

and it work pretty fine

regards
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2429
Location: Silver City, NM

PostPosted: Fri Sep 20, 2013 6:27 pm    Post subject: Reply with quote

Schnulli wrote:
solved !
USE="-pax_kernel" emerge virtualbox
and it work pretty fine

You should update /etc/portage/package.use or your next "emerge -uDN world' will revert the change.
Back to top
View user's profile Send private message
Schnulli
Apprentice
Apprentice


Joined: 25 Jun 2010
Posts: 155

PostPosted: Sat Sep 21, 2013 11:17 am    Post subject: Reply with quote

Hi BitJam,
thx.... but as you know using Gentoo means be creative in mind, thats why i love Gentoo soooo much, never be booring :lol: :lol: :lol:
But its strange to un-use a pax kernel during build to get it working, by the way, i tested using this use flag as well: USE="-pae_kernel" emerge virtualbox and oh-ah... works as well .....

regards ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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