Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
virtualbox-modules-5.1.32: mkdir: Permission denied
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
jamn
n00b
n00b


Joined: 05 Feb 2018
Posts: 2

PostPosted: Sun Apr 15, 2018 6:17 pm    Post subject: virtualbox-modules-5.1.32: mkdir: Permission denied Reply with quote

[Moderator note: this thread originally had the title virtualbox-modules build. I changed it to included the poster's version and error message. The title lacks room to include the failed path. -Hu]

Hello all,
I'm trying to install virtualbox-bin, and virtualbox-modules is giving me some trouble at the beginning of the emerge. A nontrivial amount of googling and poking has left me stumped so far. I did try rebuilding my kernel with umask 022, but this didn't help. The permissions to /usr/src/linux-4.15.11-gentoo look okay afaict, but it doesn't seem like I should open up any kind of write perms here for the portage user.

Any ideas are appreciated.

Code:

 * Package:    app-emulation/virtualbox-modules-5.1.32                                                                                                                                                                                                                                                                     
 * Repository: gentoo
 * Maintainer: polynomial-c@gentoo.org masterzorag@gmail.com
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.15.11-gentoo/build
 * Found sources for kernel version:
 *     4.15.11-gentoo
 * Checking for suitable kernel configuration options...                                                                                                                                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-5.1.32.tar.xz to /var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work
>>> Source unpacked in /var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work
>>> Preparing source in /var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work ...
 * Applying virtualbox-modules-5.1.30-udp.patch ...                                                                                                                                                                                                                                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing vboxdrv module
make -j9 -l8 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/usr/src/linux O=/lib/modules/4.15.11-gentoo/build V=1 KBUILD_VERBOSE=1 all
=== Building 'vboxdrv' module ===
make[1]: Entering directory '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work/vboxdrv'
make KBUILD_VERBOSE=1 SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work/vboxdrv CONFIG_MODULE_SIG= -C /usr/src/linux -j8 modules
make[2]: Entering directory '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work/vboxdrv'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
mkdir: cannot create directory ‘/lib/modules/4.15.11-gentoo’: Permission denied
Makefile:136: *** failed to create output directory "/lib/modules/4.15.11-gentoo/build".  Stop.
make[2]: Leaving directory '/usr/src/linux-4.15.11-gentoo'
make[1]: *** [Makefile:305: vboxdrv] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work/vboxdrv'
make: *** [Makefile:41: all] Error 2
 * ERROR: app-emulation/virtualbox-modules-5.1.32::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-5.1.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.1.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.32/work'


and here's emerge --info '=app-emulation/virtualbox-modules-5.1.32::gentoo'

Code:

Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/systemd, gcc-6.4.0, glibc-2.25-r11, 4.15.11-gentoo x86_64)                                                                                                                                                                                                   
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.15.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-7700HQ_CPU_@_2.80GHz-with-gentoo-2.4.1
KiB Mem:    16309956 total,   6285640 free
KiB Swap:   18874364 total,  18874360 free
Timestamp of repository gentoo: Thu, 12 Apr 2018 00:45:01 +0000
Head commit of repository gentoo: 0d0c267ec1e93c8fefd000b357e9cb4fee1ab911
Head commit of repository sakaki-tools: 5890d06cb31176594edb0aa3d10cc746684ab1aa

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: no

sakaki-tools
    location: /usr/local/portage/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://cosmos.illinois.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm hscolour iconv ipv6 jpeg modules multilib ncurses nls nptl openmp pam pcre png readline seccomp ssl systemd tcpd truetype udev unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 67
Location: Jiangsu/China

PostPosted: Mon Apr 16, 2018 11:59 am    Post subject: Reply with quote

I had the same problem.
_________________
Think twice,code once.
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