Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367679 - app-emulation/open-vm-tools-kmod with KBUILD_OUTPUT set - Makefile:167: Makefile.normal: No such file or directory
Summary: app-emulation/open-vm-tools-kmod with KBUILD_OUTPUT set - Makefile:167: Makef...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Vadim Kuznetsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 09:30 UTC by Martin Kolleck
Modified: 2011-05-24 13:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of 'emerge --info' (open-vm-tools-kmod-emerge-info,12.28 KB, text/plain)
2011-05-17 09:32 UTC, Martin Kolleck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kolleck 2011-05-17 09:30:37 UTC
Emerging open-vm-tools-kmod fails when KBUILD_OUTPUT is set in /etc/portage/env/app-emulation/open-vm-tools-kmod. Emerging with kernel sources configured directly in /usr/src/linux works fine.


Build log:

 * Package:    app-emulation/open-vm-tools-kmod-0.0.20110328.387002
 * Repository: gentoo
 * Maintainer: vadimk@gentoo.org vmware@gentoo.org
 * USE:        elibc_glibc kernel_linux userland_GNU x86
 * FEATURES:   sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /root/kernel/output
 * Found sources for kernel version:
 *     2.6.37-hardened-r7
>>> Unpacking source...
>>> Unpacking open-vm-tools-2011.03.28-387002.tar.gz to /var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work
>>> Source unpacked in /var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work
>>> Preparing source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work/open-vm-tools-2011.03.28-387002 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work/open-vm-tools-2011.03.28-387002 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work/open-vm-tools-2011.03.28-387002 ...
 * Preparing vmblock module
make HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= auto-build HEADER_DIR=/usr/src/linux/include BUILD_DIR=/root/kernel/output OVT_SOURCE_DIR=/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work/open-vm-tools-2011.03.28-387002 
Using standalone build system.
Makefile:167: Makefile.normal: No such file or directory
make: *** No rule to make target `Makefile.normal'.  Stop.
emake failed
 * ERROR: app-emulation/open-vm-tools-kmod-0.0.20110328.387002 failed (compile phase):
 *   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=/root/kernel/output OVT_SOURCE_DIR=/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work/open-vm-tools-2011.03.28-387002
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3384:  Called linux-mod_src_compile
 *   environment, line 2585:  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}";
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/open-vm-tools-kmod-0.0.20110328.387002',
 * the complete build log and the output of 'emerge -pqv =app-emulation/open-vm-tools-kmod-0.0.20110328.387002'.
 * The complete build log is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/temp/environment'.
 * S: '/var/tmp/portage/app-emulation/open-vm-tools-kmod-0.0.20110328.387002/work/open-vm-tools-2011.03.28-387002'


Attachements:
1) emerge --info
Comment 1 Martin Kolleck 2011-05-17 09:32:11 UTC
Created attachment 273621 [details]
Output of 'emerge --info'
Comment 2 Martin Kolleck 2011-05-24 13:49:50 UTC
I am sorry for bringing up this issue, which was caused by a misconfiguration on my part. The kernel build output was placed in a subdirectory of /root while having FEATURES="userpriv usersandbox" enabled.

I did not check, whether disabling the FEATURES would fix the issue, but moving the kernel output directory to a user accessible location certainly helped.