Can't compile "app-emulation/open-vm-tools-0.0.20080808.109361-r1" with gentoo-sources-2.6.27-r1 kernel: ... * Preparing vmblock module Using 2.6.x kernel build system. make -C /usr/src/linux SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r1' CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/block.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/control.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/dbllnklst.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/dentry.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/file.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/filesystem.o /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/filesystem.c: In function 'VMBlockInitFileSystem': /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/filesystem.c:135: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/inode.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/module.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/stubs.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/linux/super.o LD [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/vmblock.o Building modules, stage 2. MODPOST 1 modules CC /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/vmblock.mod.o LD [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmblock/vmblock.ko make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r1' cp -f vmblock.ko ./../vmblock.o * Preparing vmhgfs module Using 2.6.x kernel build system. make -C /usr/src/linux SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r1' CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/backdoor.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/backdoorGcc32.o CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.o /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.c:29:27: error: asm/semaphore.h: No such file or directory make[2]: *** [/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.o] Error 1 make[1]: *** [_module_/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r1' make: *** [vmhgfs.ko] Error 2 * * ERROR: app-emulation/open-vm-tools-0.0.20080808.109361-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3294: Called linux-mod_src_compile * environment, line 2475: Called die * The specific snippet of code: * eval "emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"; * The die message: * Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= auto-build HEADER_DIR=/usr/src/linux/include BUILD_DIR=/usr/src/linux * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/temp/environment'. * >>> Failed to emerge app-emulation/open-vm-tools-0.0.20080808.109361-r1, Log file: >>> '/var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/temp/build.log' * GNU info directory index is up-to-date. Reproducible: Always Steps to Reproduce: emerge -1v open-vm-tools Actual Results: CC [M] /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.o /var/tmp/portage/app-emulation/open-vm-tools-0.0.20080808.109361-r1/work/open-vm-tools-2008.08.08-109361/modules/linux/vmhgfs/bdhandler.c:29:27: error: asm/semaphore.h: No such file or directory
FYI: asm/semaphore.h was moved to linux/semaphore.h iirc. AFAIK, asm/semaphore.h was just one line that included the other location. So, this is an UPSTREAM problem. hint: app-emulation/virtualbox has the same problem. Quick google hit, same issue. Upstream was notified and "fixed" http://sourceforge.net/tracker/?func=detail&atid=989708&aid=2071170&group_id=204462
(In reply to comment #1) > FYI: > asm/semaphore.h was moved to linux/semaphore.h iirc. AFAIK, asm/semaphore.h was Correction: asm/semaphore.h was just flat out removed in favor of linux/semaphore.h
Sorry for the long delay. I've just pushed 20081010 into the overlay without any testing. Any chance you could give it a go and let me know how you get on? If it works out ok, I'll push it into the main tree shortly after. Thanks... 5:)
Which overlay and how to integrate into my portage usage? Thanks.
Hiya Steffen, the overlay I was referring to was the vmware overlay ( http://overlays.gentoo.org/proj/vmware ). You should be able to make use of it using the layman tool, which you can find out how to install/use at http://www.gentoo.org/proj/en/overlays/userguide.xml.
(In reply to comment #5) It works for me now again. Thank you very much. (open-vm-tools-0.0.20081010.123053 and vmware-modules-1.0.0.23)