Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-01-2009, 03:04 AM   #1
LQ Newbie
Registered: Apr 2009
Location: New Zealand
Distribution: Ubuntu 8.10 & Debian 5
Posts: 1

Rep: Reputation: 0
Can't activate guestadditions in VirtualBox in Slackware

Hi, I am relatively new to Linux but keen to learn.

I am running VirtualBox 2.1.4 on Ubuntu 8.10. I am trying to install guest additions in Slackware 12.2 but keep getting the following error:

Building a test kernel module...

make KBUILD_VERBOSE=1 -C /lib/modules/ SUBDIRS=/tmp/selfgz317613971/module/test SRCROOT=/tmp/selfgz317613971/module/test modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
mkdir -p /tmp/selfgz317613971/module/test/.tmp_versions ; rm -f /tmp/selfgz317613971/module/test/.tmp_versions/*
make -f scripts/ obj=/tmp/selfgz317613971/module/test
  gcc -Wp,-MD,/tmp/selfgz317613971/module/test/.test.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.2.4/include -D__KERNEL__ -Iinclude  -I/usr/src/linux- -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/ -I/tmp/selfgz317613971/module/test/ -I/tmp/selfgz317613971/module/test/include -I/tmp/selfgz317613971/module/test/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/selfgz317613971/module/test/test.o /tmp/selfgz317613971/module/test/test.c
gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [/tmp/selfgz317613971/module/test/test.o] Error 2
make[1]: *** [_module_/tmp/selfgz317613971/module/test] Error 2
make: *** [vboxadd_test] Error 2

Building the test kernel module failed.
Giving up due to the problems mentioned above.
Any advice would be really appreciated at this point: Google has not been all that helpful (which is surprising in itself)...

Thanks in advance.
Old 04-01-2009, 06:07 AM   #2
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Hope I'm not breaking any rules by suggesting a post on virtualbox's forum.
Old 04-01-2009, 01:46 PM   #3
Chris Stegman
LQ Newbie
Registered: Mar 2009
Posts: 26

Rep: Reputation: 15
First, I am extrapolating from other similar problems, so take this with a grain of salt.

The visible error is

gcc: error trying to exec 'as': execvp: No such file or directory

yet the gcc command

gcc -Wp,-MD,/tmp/selfgz317613971/module/test/.test.o.d -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.2.4/include -D__KERNEL__ -Iinclude -I/usr/src/linux- -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/ -I/tmp/selfgz317613971/module/test/ -I/tmp/selfgz317613971/module/test/include -I/tmp/selfgz317613971/module/test/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/selfgz317613971/module/test/test.o /tmp/selfgz317613971/module/test/test.c

does not show a use of "as" as a command, nor is "as" an isolated parameter. So the question is where did the "as" come from?

I don't have the time to look up the exact option, but if I remember correctly gcc has an option to expand out the variables in the command line and print that out. Doing so should show you where the "as" came from and then you can work from there.
Old 04-01-2009, 02:15 PM   #4
Chris Stegman
LQ Newbie
Registered: Mar 2009
Posts: 26

Rep: Reputation: 15
Like I said, take with a grain of salt.

Took a quick search for the gcc option to expand the variables and didn't see one, then thought that the shell, e.g. Bash, could be expanding the variables.

Not being a Bash expert, can someone tell him the command to show expand bash commands before they are executed or where they would be in a capture log.

While I am not sure of how to capture the expansion of the variables on Linux, being a Windows developer, the error is originating from the gcc command an until you get a look at the command being executed, not the command displayed on the screen, you will be blind to the problem.


slackware, virtualbox

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox problem in Slackware 12.2 LordAnta Slackware 15 04-21-2009 06:12 PM
Slackware 12.2 on VirtualBox 2.1.0 BerzinTehvs Slackware 1 01-10-2009 07:03 AM
Slackware in VirtualBox gmartin Slackware 6 07-03-2008 12:14 PM
A Mac OS X, VirtualBox and Slackware 12.1 batev Slackware 3 05-10-2008 03:14 AM
VirtualBox on Slackware: How? gargamel Slackware 94 04-26-2008 08:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration