Tracker item #2535001, was opened at 2009-01-25 01:10
Message generated for change (Settings changed) made by dtor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2535001&group_id=204462

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: kernel modules
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Jarkko Laiho (jarkkolaiho)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compilation fails at first stage

Initial Comment:
I'm running a freshly installed 64-bit Gentoo 2008.0 in a VMware Fusion virtual 
machine on a new MacBook Pro. I reported this issue in the Gentoo forums, but 
got a suggestion to report it here. ( 
http://forums.gentoo.org/viewtopic.php?p=5417453 )

The compilation of open-vm-tools fails immediately after the configure process 
is finished. The error message is below.

The compiler is GCC 4.1.2, the latest one marked stable in Portage. The 
open-vm-tools version is 20081223, the latest available there. The kernel 
version is 2.6.27 (gentoo-sources -r8).

I could try the 20090121 version, if it would be likely to fix this issue, 
although I'm hesitant to go outside Gentoo's package management. Is there 
another fix, maybe?

-----

[...configure steps skipped, no errors there...]
Preparing vmblock module 
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 
LDFLAGS= auto-build HEADER_DIR=/usr/src/linux/include 
BUILD_DIR=/lib/modules/2.6.27-gentoo-r8/build 
Using 2.6.x kernel build system. 
make -C /lib/modules/2.6.27-gentoo-r8/build SUBDIRS=$PWD SRCROOT=$PWD/. modules 
make[1]: Entering directory `/usr/src/linux-2.6.27-gentoo-r8' 
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make 
rule. 
  CC [M]  
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/block.o
 
In file included from include/linux/gfp.h:4, 
                 from include/linux/slab.h:12, 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/./include/compat_slab.h:24,
 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/os.h:34,
 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/block.c:26:
 
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory 
include/linux/mmzone.h:197:5: warning: "MAX_NR_ZONES" is not defined 
In file included from include/linux/gfp.h:4, 
                 from include/linux/slab.h:12, 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/./include/compat_slab.h:24,
 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/os.h:34,
 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/block.c:26:
 
include/linux/mmzone.h:218: error: ‘MAX_NR_ZONES’ undeclared here (not in a 
function) 
In file included from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/./include/compat_mm.h:23,
 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/vmblockInt.h:37,
 
                 from 
/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/block.c:30:
 
include/linux/mm.h:437:63: warning: "NR_PAGEFLAGS" is not defined 
include/linux/mm.h:485:62: warning: "NR_PAGEFLAGS" is not defined 
make[2]: *** 
[/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock/linux/block.o]
 Error 1 
make[1]: *** 
[_module_/var/tmp/portage/app-emulation/open-vm-tools-0.0.20081223.137496/work/open-vm-tools-2008.12.23-137496/modules/linux/vmblock]
 Error 2 
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r8' 
make: *** [vmblock.ko] Error 2 

ERROR: app-emulation/open-vm-tools-0.0.20081223.137496 failed. 
Call stack: 
              ebuild.sh, line   49:  Called src_compile 
            environment, line 3364:  Called linux-mod_src_compile 
            environment, line 2527:  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=x86_64-pc-linux-gnu-gcc 
CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=   auto-build 
HEADER_DIR=/usr/src/linux/include BUILD_DIR=/lib/modules/2.6.27-gentoo-r8/build

----------------------------------------------------------------------

Comment By: Dmitry Torokhov (dtor)
Date: 2009-01-26 15:28

Message:
It looks like you tried compiling against not yet configured kernel
sources. You need to do make configure because file linux/bounds.h is
generated by Kbuild. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=989708&aid=2535001&group_id=204462

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to