Page 1 of 1

(Solved) Guest additions won't build

Posted: 16. Feb 2012, 15:47
by loukingjr
Installed SolusOS which is a Debian based distro. The guest additions won't build. here are the log files...

Code: Select all

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.1.8/source ->
                 /usr/src/vboxguest-4.1.8

DKMS: add Completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.0.0-ck1-solusos -C /lib/modules/3.0.0-ck1-solusos/build M=/var/lib/dkms/vboxguest/4.1.8/build....(bad exit status: 2)

Error! Bad return status for module build on kernel: 3.0.0-ck1-solusos (i686)
Consult the make.log in the build directory
/var/lib/dkms/vboxguest/4.1.8/build/ for more information.
0
0
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.0.0-ck1-solusos/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
/usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile:39: /usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile_32.cpu: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile_32.cpu'.  Stop.
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Code: Select all

DKMS make.log for vboxguest-4.1.8 for kernel 3.0.0-ck1-solusos (i686)
Thu Feb 16 08:16:22 EST 2012
make: Entering directory `/usr/src/linux-headers-3.0.0-ck1-solusos'
/usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile:39: /usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile_32.cpu: No such file or directory
make: *** No rule to make target `/usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile_32.cpu'.  Stop.
make: Leaving directory `/usr/src/linux-headers-3.0.0-ck1-solusos'
I don't know how to fix this.

Re: Guest additions won't build

Posted: 16. Feb 2012, 15:51
by Perryg
You don't seem to have the headers that match your running kernel.

Re: Guest additions won't build

Posted: 16. Feb 2012, 16:01
by loukingjr
Perryg wrote:You don't seem to have the headers that match your running kernel.
they say they are matching. maybe they lied.

Re: Guest additions won't build

Posted: 16. Feb 2012, 16:15
by Perryg

Code: Select all

/usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile_32.cpu: No such file or directory
Well something is out of place. Either they are not installed or they do so in a manor that it not usual to most Linux distros.
Maybe you should ask them what the issue might be. I did a quick check and all I found related to VirtualBox was that solusos was still in development and they suggest how to install the OS using pae but nothing about installing the guest additions.

Re: Guest additions won't build

Posted: 16. Feb 2012, 16:19
by loukingjr
Perryg wrote:

Code: Select all

/usr/src/linux-headers-3.0.0-ck1-solusos/arch/x86/Makefile_32.cpu: No such file or directory
Well something is out of place. Either they are not installed or they do so in a manor that it not usual to most Linux distros.
Maybe you should ask them what the issue might be. I did a quick check and all I found related to VirtualBox was that solusos was still in development and they suggest how to install the OS using pae but nothing about installing the guest additions.
thanks Perry. I know they had trouble getting the 3.2 Kernel working. I installed an older Kernel and Headers and the additions build fine.

Re: Guest additions won't build

Posted: 22. Feb 2012, 15:28
by ikey
I have now resolved the issue with the headers. It's an issue with using the kernel-package
build system, which I've never been truly happy with. Instead I've created a new package,

Code: Select all

solusos-headers
This provides the missing Makefile_32.cpu, and depends on the correct 3.0.0-ck1-solusos
kernel headers package, so you'll now be able to build the kernel module and any required
drivers. My apologies for this issue, it shouldn't have been allowed to happen (I'm kinda
obsessive with quality-control)

To install it, use one of the two following routes (PackageKit or apt)

Code: Select all

pkcon refresh && pkcon install solusos-headers

Code: Select all

sudo apt-get update && sudo apt-get install solusos-headers
I personally prefer the less verbose option :)

Thanks a million for reporting the issue, any further issues please report on the SolusOS Forums
or our launchpad page

The launchpad situation is only temporary btw, I personally abhor the system, and once I
gain another host I'll be using a dedicated solution.

Again, thank you for your time :)

Kind Regards,
Ikey Doherty

Re: Guest additions won't build

Posted: 22. Feb 2012, 15:34
by loukingjr
ikey wrote:I have now resolved the issue with the headers. It's an issue with using the kernel-package
build system, which I've never been truly happy with. Instead I've created a new package,

Code: Select all

solusos-headers
This provides the missing Makefile_32.cpu, and depends on the correct 3.0.0-ck1-solusos
kernel headers package, so you'll now be able to build the kernel module and any required
drivers. My apologies for this issue, it shouldn't have been allowed to happen (I'm kinda
obsessive with quality-control)

To install it, use one of the two following routes (PackageKit or apt)

Code: Select all

pkcon refresh && pkcon install solusos-headers

Code: Select all

sudo apt-get update && sudo apt-get install solusos-headers
I personally prefer the less verbose option :)

Thanks a million for reporting the issue, any further issues please report on the SolusOS Forums
or our launchpad page

The launchpad situation is only temporary btw, I personally abhor the system, and once I
gain another host I'll be using a dedicated solution.

Again, thank you for your time :)

Kind Regards,
Ikey Doherty
thanks I'll try it. :)

Re: Guest additions won't build

Posted: 22. Feb 2012, 16:15
by loukingjr
didn't work :(

Re: Guest additions won't build

Posted: 3. Mar 2012, 17:43
by ikey
Fixed in latest builds, i.e. RC1

solusos-headers package included by default, vbox guest attions builds correctly, and virtualbox-4.1 in repos.

Re: Guest additions won't build

Posted: 3. Mar 2012, 17:51
by loukingjr
ikey wrote:Fixed in latest builds, i.e. RC1

solusos-headers package included by default, vbox guest attions builds correctly, and virtualbox-4.1 in repos.
yes it is. I forgot to mark this solved.

Re: (Solved) Guest additions won't build

Posted: 22. Jan 2013, 16:47
by makwanji
Hi,

I am still getting this error.. can you suggest me how to fix.
there is the error:
[root@localhost VBOXADDITIONS_4.2.6_82870]# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.6 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.6 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Building the OpenGL support module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]




Kernal :
[root@localhost VBOXADDITIONS_4.2.6_82870]# uname -ra
Linux localhost.localdomain 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost VBOXADDITIONS_4.2.6_82870]#
[root@localhost VBOXADDITIONS_4.2.6_82870]# echo $KERN_DIR
/usr/src/kernels/2.6.32-200.13.1.el5uek
[root@localhost VBOXADDITIONS_4.2.6_82870]# ls -l /usr/src/kernels/
total 20
drwxr-xr-x 19 root root 4096 Jan 22 14:28 2.6.18-274.el5-debug-x86_64
lrwxrwxrwx 1 root root 27 Jan 22 14:28 2.6.18-274.el5debug-x86_64 -> 2.6.18-274.el5-debug-x86_64
drwxr-xr-x 19 root root 4096 Jan 21 01:13 2.6.18-274.el5-x86_64
drwxr-xr-x 19 root root 4096 Jan 22 14:28 2.6.18-274.el5-xen-x86_64
lrwxrwxrwx 1 root root 25 Jan 22 14:28 2.6.18-274.el5xen-x86_64 -> 2.6.18-274.el5-xen-x86_64
drwxr-xr-x 22 root root 4096 Jan 22 14:43 2.6.32-200.13.1.el5uek
drwxr-xr-x 22 root root 4096 Jan 22 14:27 2.6.32-200.13.1.el5uek.debug
[root@localhost VBOXADDITIONS_4.2.6_82870]#