Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] emerge virtualbox-bin fails on kernel 4.12

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
yagaev
n00b
n00b
Posts: 27
Joined: Tue Jan 10, 2017 7:06 am

[SOLVED] emerge virtualbox-bin fails on kernel 4.12

  • Quote

Post by yagaev » Fri Jul 07, 2017 2:02 pm

please help

Code: Select all

cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.12.0-gentoo/scripts/Makefile.build:302: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv/r0drv/linux/alloc-r0drv-linux.o] Error 1
make[4]: *** Waiting for unfinished jobs....
/var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjLinuxVirtToPage’:
/var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:922:27: error: passing argument 1 of ‘pud_offset’ from incompatible pointer type [-Werror=incompatible-pointer-types]
     u.Upper = *pud_offset(&u.Global, ulAddr);
                           ^
In file included from /usr/src/linux-4.12.0-gentoo/include/linux/mm.h:70:0,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv/r0drv/linux/the-linux-kernel.h:98,
                 from /var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/usr/src/linux-4.12.0-gentoo/arch/x86/include/asm/pgtable.h:826:22: note: expected ‘p4d_t * {aka struct <anonymous> *}’ but argument is of type ‘pgd_t * {aka struct <anonymous> *}’
 static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address)
                      ^~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-4.12.0-gentoo/scripts/Makefile.build:302: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[3]: *** [/usr/src/linux-4.12.0-gentoo/Makefile:1512: _module_/var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv] Error 2
make[3]: Leaving directory '/usr/src/linux-4.12.0-gentoo'
make[2]: *** [Makefile:152: sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-4.12.0-gentoo'
make[1]: *** [Makefile:304: vboxdrv] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.22/work/vboxdrv'
make: *** [Makefile:41: all] Error 2
 * ERROR: app-emulation/virtualbox-modules-5.1.22::gentoo failed (compile phase):
 *   emake failed
the complete build log and more info
Last edited by yagaev on Tue Jul 11, 2017 12:51 pm, edited 1 time in total.
Top
bec
Apprentice
Apprentice
User avatar
Posts: 221
Joined: Thu Sep 30, 2004 7:53 pm
Location: Cali - Colombia

  • Quote

Post by bec » Fri Jul 07, 2017 6:18 pm

Apply the patches mentioned in bug https://bugs.gentoo.org/show_bug.cgi?id=623628
abe
Top
yagaev
n00b
n00b
Posts: 27
Joined: Tue Jan 10, 2017 7:06 am

  • Quote

Post by yagaev » Sat Jul 08, 2017 7:55 pm

smth wrong here

Code: Select all

localhost /usr/src/linux # patch -p1 < kernel_4.12.0_1.patch 
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru3 vbox-kernel-module-src-5.1.22.old/vboxdrv/include/iprt/string.h vbox-kernel-module-src-5.1.22/vboxdrv/include/iprt/string.h
|--- vbox-kernel-module-src-5.1.22.old/vboxdrv/include/iprt/string.h	2017-04-05 16:52:55.000000000 +0300
|+++ vbox-kernel-module-src-5.1.22/vboxdrv/include/iprt/string.h	2017-07-05 01:25:52.712343705 +0300
--------------------------
File to patch: 
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jul 08, 2017 9:06 pm

yagaev,

You are patching the wrong thing.

Code: Select all

vbox-kernel-module-src-5.1.22.old/vboxdrv/include/iprt/string.h
is the file being patched. Its not a part of the kernel.
You need to patch the files provided by app-emulation/virtualbox-modules.

Reading the ebuild for virtualbox-modules-5.1.2 shovs that it uses EAPI=6
That means it will pick up and apply user provided patches in the course of the emerge. The patches just need to be in the right place.

Make a directory called

Code: Select all

/etc/portage/patches/app-emulation/virtualbox-modules/
Put the patch here with a filename ending in .patch

emerge will apply the patch when you

Code: Select all

emerge -1 virtualbox-modules
I can't find the man page that covers this but its there somewhere.

-- edit --

See /etc/portage/patches
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic