LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-21-2017, 03:06 PM   #1
sithun
Member
 
Registered: Jul 2016
Location: mongolia, bulgan
Posts: 102

Rep: Reputation: 1
error while building virualbox-kernel via slackbuild


when i try to build virtualbox-kernel 5.0.40 using slackbuild i have an error:
Code:
./arch/x86/include/asm/atomic64_64.h:182:2: error: undefined named operand 'new'
./arch/x86/include/asm/atomic64_64.h:182:2: error: undefined named operand 'new'
./arch/x86/include/asm/atomic64_64.h:182:2: error: undefined named operand 'new'
scripts/Makefile.build:302: recipe for target '/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/linux/SUPDrv-linux.o' failed
make[3]: *** [/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/linux/SUPDrv-linux.o] Error 1
Makefile:1512: recipe for target '_module_/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv' failed
make[2]: *** [_module_/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv] Error 2
make[2]: Leaving directory '/usr/src/linux-4.13.5'
Makefile:299: recipe for target 'vboxdrv' failed
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv'
Makefile:39: recipe for target 'all' failed
make: *** [all] Error 2
full output:
pastebin
 
Old 10-21-2017, 07:15 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
CONFIG_MODULE_SIG= -C /lib/modules/4.13.5/build modules
You are trying to build virtualbox-kernel 5.0.40 using a later kernel. You need a later version of virtualbox. https://github.com/philmmanjaro/project-sx/issues/2
 
Old 02-19-2019, 06:27 AM   #3
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
Sorry to bump an old thread, but I'm having the same issue.
I'm running 14.2 with kernel 4.4.172. I can't get virtualbox-kernel package to build, with the same error message. I was trying to use version 5.0.40 - but I read that it was too old for kernel 4.4.172. However, I tried Virtualbox 6.0.2 and I get the same issue.

Is 4.4.172 really too new for 6.0.2? I didn't think it was a bleeding edge kernel.
 
Old 02-19-2019, 01:01 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
virtualbox-kernel has been updated in the last public update, so please use the latest version which has this issue fixed.
 
1 members found this post helpful.
Old 02-19-2019, 01:01 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
virtualbox-kernel has been updated in the last public update, so please use the latest version which has this issue fixed.
 
1 members found this post helpful.
Old 02-21-2019, 06:06 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
updated since 6.0.2? The latest is only 6.0.4
 
Old 02-21-2019, 06:12 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
Willy meant that the SlackBuild has been updated on SBo (that was the object of the thread), try that

https://slackbuilds.org/repository/1...ualbox-kernel/
 
Old 02-21-2019, 06:19 AM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
Sbo has version 5.0.40 for 14.2 and that has the same issue. It worked fine before the linux kernel update.
 
Old 02-21-2019, 06:20 AM   #9
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
on]
fWrite, /* force write access. */
^
In file included from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
include/linux/mm.h:1200:6: note: expected 'struct page **' but argument is of type 'int'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1098:33: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [-Wincompatible-pointer-types]
&pMemLnx->apPages[0], /* Page array. */
^
In file included from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
include/linux/mm.h:1200:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1086:18: error: too many arguments to function 'get_user_pages'
rc = get_user_pages(pTask, /* Task for fault accounting. */
^
In file included from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
from /tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
include/linux/mm.h:1200:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
scripts/Makefile.build:277: recipe for target '/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.o' failed
make[3]: *** [/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
Makefile:1436: recipe for target '_module_/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv' failed
make[2]: *** [_module_/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv] Error 2
make[2]: Leaving directory '/usr/src/linux-4.4.172'
Makefile:299: recipe for target 'vboxdrv' failed
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.0.40/vboxdrv'
Makefile:39: recipe for target 'all' failed
make: *** [all] Error 2

virtualbox-kernel:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.
 
Old 02-21-2019, 06:27 AM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Did you get the latest build?

Code:
virtualbox-kernel:
  MD5SUM check for virtualbox-kernel-5.0.40.tar.xz ... OK
  Building package virtualbox-kernel-5.0.40_4.4.172-x86_64-2_SBo.tgz ... OK

Last edited by willysr; 02-21-2019 at 06:34 AM.
 
Old 02-22-2019, 04:24 AM   #11
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
Quote:
Originally Posted by willysr View Post
Did you get the latest build?

Code:
virtualbox-kernel:
  MD5SUM check for virtualbox-kernel-5.0.40.tar.xz ... OK
  Building package virtualbox-kernel-5.0.40_4.4.172-x86_64-2_SBo.tgz ... OK
Hi - Thanks!

I hadn't synced the database on the sbopkg programme and was getting the old version. Downloaded and built now, so hopefully should work.
 
  


Reply



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
[SOLVED] Error building Feh with Slackbuild Miranden Slackware 14 10-07-2013 05:22 PM
[SOLVED] Error building Deluge with Slackbuild Miranden Slackware 10 08-29-2013 09:22 AM
[SOLVED] A SlackBuild script for building a kernel? psionl0 Slackware 20 02-20-2013 01:29 AM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 01:10 AM
[SOLVED] error building glade3 slackbuild? trademark91 Slackware 5 01-21-2011 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:49 AM.

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