cat /tmp/portage/app-emulation:virtualbox-modules-4.3.14:20140725-095511.log * Package: app-emulation/virtualbox-modules-4.3.14 * Repository: gentoo * Maintainer: polynomial-c@gentoo.org patrick@gentoo.org * 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/3.15.6-gentoo/build * Found sources for kernel version: * 3.15.6-gentoo >>> Unpacking source... >>> Unpacking vbox-kernel-module-src-4.3.14.tar.xz to /tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work >>> Source unpacked in /tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work >>> Preparing source in /tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work ... >>> Source prepared. >>> Configuring source in /tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work ... >>> Source configured. >>> Compiling source in /tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work ... ln: failed to create symbolic link ‘Module.symvers’: File exists * Preparing vboxdrv module make -j5 -l4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/3.15.6-gentoo/build all *** Building 'vboxdrv' module *** make[1]: Entering directory `/tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv' Makefile:192: *** Error: KERN_DIR does not point to a directory. Stop. make[1]: Leaving directory `/tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv' make: *** [all] Error 2 * ERROR: app-emulation/virtualbox-modules-4.3.14::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-4.3.14::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-4.3.14::gentoo'`. * The complete build log is located at '/tmp/portage/app-emulation:virtualbox-modules-4.3.14:20140725-095511.log'. * For convenience, a symlink to the build log is located at '/tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/temp/build.log'. * The ebuild environment file is located at '/tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/temp/environment'. * Working directory: '/tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work' * S: '/tmp/tmerge/portage/app-emulation/virtualbox-modules-4.3.14/work' emerge --info Portage 2.2.10 (hardened/linux/amd64, gcc-4.7.3, glibc-2.17, 3.15.6-gentoo x86_64) ================================================================= System uname: Linux-3.15.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.2 KiB Mem: 16377140 total, 12947008 free KiB Swap: 20971516 total, 20962672 free Timestamp of tree: Fri, 25 Jul 2014 09:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.3.3 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.7.3-r1, 4.8.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.15 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo kde local ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=corei7-avx -mtune=corei7-avx -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 nodoc parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog" 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" PORTAGE_TMPDIR="/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage/overlay" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 64bit X a52 aac aalib accessibility acl acpi additions aften aio alsa amd64 amr amrnb amrwb ap apm apng archive asf asm aspell asyncns audio avcodec avformat avi avresample avx blksha1 browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia chm city classic cli client clucene cmake commercial consolekit cracklib crypt cryptsetup css cups curl custom-cflags custom-optimization cvs cxx daemon dbus deprecated development device-mapper devil dga dhcpcd dirac divx divx4linux djvu dmx dri dts dvd dvdnav dvdr dvdread ebook egl embedded encode enda equalizer eselect exceptions exif extensions extras faac faad fam fbcon ffmpeg filecaps firefox flac fluidsynth fontconfig ftp fts3 fuse g3dvl gallium gbm gcrypt gd gecko geoip geoloc gif gimp gimpprint git gles gles1 gles2 glib glibc-omitfp glitz gnutls gpl gpm gptfdisk gs gstreamer gtk gtk2 gtk3 gudev hardened httpd hwdb icecast iconv icu id3 id3tag idn imagemagick imap inotify introspection ipc ipv6 jabber jav jingle jpeg jpeg2k justify kde kdrive keymap kipi lame lcms less libkms libnotify libsamplerate libvisual live lm_sensors loop-aes lua lvm lzma lzo mad magic maildir matroska meanwhile midi minizip mmx mmxext mng modemmanager modules mousewarp moznocompose moznoirc moznomail mp2 mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musepack nas ncat ncurses ndiff nemesi net network nfs nfsv3 nls nmap normalize notification nping nptl nptlonly nss ntfsprogs nut nxclient offlinehelp ogg okteta openal opencore-amr openexr opengl openmp openrc openssl openvg optimized-qmake osdmenu osmesa otr p2p pam pax_kernel pcap pcre pdf perl pgo pgp plasma player png polarssl policykit poppler-data postproc postscript ppds ppp privacy ps pulseaudio qmake qt-faststart qt3support qt4 quicktime raptor rar readline real realmedia redland replaygain reviewboard rpc rtc rtmp rtsp sasl schroedinger scrobbler sdl secure-delete server sesame2 session sftp sha512 shared-dricore shared-glapi shm shout silc slit smi smime smp sna snappy sndfile socks5 speex spell sqlite srt sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification stats stream subversion svg swscale system-sqlite tcpd texteffect theora threads threadsafe tiff timidity tk tls toolbar tools tordns transcode transparent-proxy trayicon tremor truetype twolame udev udisks unicode unlock-notify upower usb userlocales utempter utils uxa v4l vaapi vcd vcdimager video virtuoso vorbis wallpapers wav wavpack weather webdav-neon webgl webkit webm wifi wma wmf wmp x264 xa xanim xcb xcomposite xinerama xml xmp xorg xpdf-headers xpm xprint xtf xtpax xv xvfb xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="hp5400 canon canon630u canon_dr" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev i915 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" USE_PYTHON="2.7 3.3" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS Reproducible: Always
ls -la /usr/src/linux lrwxrwxrwx 1 root root 19 25. Jul 11:43 /usr/src/linux -> linux-3.15.6-gentoo
your /usr/src/linux symlink is broken. reopen if this is not the case
(In reply to Alex Xu (Hello71) from comment #2) > your /usr/src/linux symlink is broken. reopen if this is not the case What's broken about it? Is sys-kernel/gentoo-sources incompatible with hardened profiles? (If so, why is it not masked?) FWIW, I was going to file a similar bug but was beaten to the punch.
it is not broken: rux # cd /usr/src/linux rux # ls -la .config -rw-r--r-- 1 root root 104176 19. Jul 01:59 .config
/usr/src was set to 0700 changing it to 0755 solved the problem the modules build now.