Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved][huh?]not compiled with -mcmodel=kernel
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
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Tue Nov 08, 2011 8:28 pm    Post subject: [Solved][huh?]not compiled with -mcmodel=kernel Reply with quote

Recently I 'updated' both of my Gentoo boxes. Just when I thought that everything went smooth, this pops up:

FATAL: Error inserting vboxdrv (/lib/modules/2.6.39-hardened-r8/misc/vboxdrv.ko): Invalid module format

Checking dmesg for a more descriptive error:

[ 17.121778] overflow in relocation type 11 val ffffc9001203710c
[ 17.121784] `vboxdrv' likely not compiled with -mcmodel=kernel

For some reason the kernel won't eat the modules I compiled for it.

I tried several of the below combinations:
- Simple recompilation
- virtualbox-modules (version):
- 4.0.12
- 4.1.4
- 4.1.6
- Gcc:
- x86_64-pc-linux-gnu-4.4.5(-vanilla)
- x86_64-pc-linux-gnu-4.5.3(-vanilla)

The combination:
- virtualbox-modules-4.0.12
- gcc-4.4.5
- hardened-sources-2.6.39-r8

Used to work. Something broke it, and I just can't find it/evade it. Please help.

This is really urgent for me, my father has some old crippled piece of accounting software (!) that modifies critical Windows XP system files :twisted: for no apparent reason. Virtualbox was my way out, worked wonders. He could access it remotely through my IPSEC wherever he was. It just worked.


Last edited by Rexilion on Sat Apr 07, 2012 9:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Tue Nov 22, 2011 7:10 am    Post subject: Reply with quote

Try app-emulation/virtualbox-bin

or get the source from virtualbox.org
_________________
AMD FX6100 CPU, 16 GiB RAM, OCZ Vertex 3 SSD
ASRock 970 Extreme3 motherboard with S/PDIF audio
Galaxy-NVidia GeForce 8800GT video card, Cyber Power CP550HG USB UPS
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Tue Nov 22, 2011 6:55 pm    Post subject: Reply with quote

Looking at the ebuild, I only see patches for the configuration stage. But I will give it a try when I have time, thanks.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Apr 07, 2012 9:48 pm    Post subject: Reply with quote

Finally found the culprit, I needed:

CONFIG_MODULE_UNLOAD=y

in order to make the module load. huh?
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