Build log attached: >>> Emerging (1 of 1) app-emulation/open-vm-tools-kmod-2013.09.16.1328054 * open-vm-tools-2013.09.16-1328054.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found kernel object directory: * /lib/modules/3.11.6-gentoo/build * Found sources for kernel version: * 3.11.6-gentoo * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking open-vm-tools-2013.09.16-1328054.tar.gz to /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work >>> Source unpacked in /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work >>> Preparing source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054 ... * Applying vmhgfs-linux-3.11.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054 ... * Preparing vmxnet module make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' auto-build Using standalone build system. Makefile:146: Makefile.normal: No such file or directory make: *** No rule to make target `Makefile.normal'. Stop. * ERROR: app-emulation/open-vm-tools-kmod-2013.09.16.1328054::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-emulation/open-vm-tools-kmod-2013.09.16.1328054::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-emulation/open-vm-tools-kmod-2013.09.16.1328054::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/temp/environment'. * Working directory: '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054/modules/linux/vmxnet' * S: '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/work/open-vm-tools-2013.09.16-1328054' Reproducible: Always Steps to Reproduce: 1. emerge open-vm-tools-kmod 2. 3. Actual Results: * Preparing vmxnet module make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' auto-build Using standalone build system. Makefile:146: Makefile.normal: No such file or directory make: *** No rule to make target `Makefile.normal'. Stop. * ERROR: app-emulation/open-vm-tools-kmod-2013.09.16.1328054::gentoo failed (compile phase): * emake failed Expected Results: Should compile normally.
Please post your `emerge --info' output in a comment.
Created attachment 361788 [details] emerge --info
Does /lib/modules/3.11.6-gentoo/build/Makefile exist?
~ # ls -al /lib/modules/3.11.6-gentoo/build/Makefile -rw-r--r-- 1 root root 48K Oct 22 12:11 /lib/modules/3.11.6-gentoo/build/Makefile Yes, it does exist.
Ok, attach the environment file please. I want to see what LINUXINCLUDE is set to. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-2013.09.16.1328054/temp/environment'.
Created attachment 362402 [details] Environment file Environment file attached.
Well, I'm stumped; I have no idea why that code path is being chosen in the Makefile.
Neither do I, I've done some heavy patching/modifications in the past to get the VM tools kmods working, but with this error I have no idea where to start looking. Where do I go from here? Will this remain open?
I'm able to duplicate this problem. Any progress or patching ideas?
I actually might have found the problem. This seems to be related to the umask setting. If the kernel is compiled/installed with permissions other than 'umask 0022', these and similar errors pop up.
Isn't umask 022 the default in /etc/profile?
Yes it is, but in several of my systems it's different for security reasons. Perhaps it's something that's also affecting you?
Well yes, the portage user must be able to read your kernel sources and build directory; that's so obvious I didn't even consider it. ^_^ I'm marking this as invalid. If you want to file a separate bug to improve the detection of this condition in the kernel eclasses, feel free.
Except that umask 022 is the default in my /etc/profile. How come even if I chown -R /usr/src/linux-3.11.9 to portage:portage the emerge fails exactly the same way?
(In reply to Jason Waldhelm from comment #14) I have no idea why it isn't working for you. I closed the bug based on feedback from the original reporter.
Except the bug still exists, he hasn't confirmed that's the fix and I have the identical problem.
Ah, I misinterpreted comment 10.