[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vmware-modules on AMD64



Hi Seb

seb@frankengul.org wrote:
On Mon, Mar 07, 2005 at 02:48:53PM +0100, Markus Hirschmann wrote:


System is sarge with kernel-image 2.6.8-11 (-amd64-k8), the right
kernel-headers are installed.

There is also gcc-3.4 (which was used to compile the kernel) and symlink from /usr/bin/gcc.

I get the following error:

 CC [M]  /usr/src/modules/vmware/vmmon-only/linux/driver.o
/usr/src/modules/vmware/vmmon-only/linux/driver.c:1: error: code model
`kernel' not supported in the 32 bit mode


Try to increase the verbosity of the build by putting V=1 in the
make command that builds the modules.


I did, see below.

Thank you.

Markus

Output:

indik:/usr/src/modules/vmware# LC_ALL=C debian/rules binary-modules KSRC=/usr/src/kernel-headers-2.6.8-10-amd64-k8/
export DH_OPTIONS='-pvmware-modules-2.6.8-10-amd64-k8'
# Is this needed for setting up a Depends?
#echo "kpkg:Package-Version=4.5.2-8848-0fbriere.3+2.6.8-10-amd64-k8" \
#        >> debian/vmware.substvars
echo "kpkg:Kernel-Version=2.6.8-10-amd64-k8" > \
        debian/vmware-modules-2.6.8-10-amd64-k8.substvars
# The substvars mechanism seems slightly broken, hack to get around it
# stolen from the qce-ga package. Yaaaa!
rm -f debian/control
sed -e 's/${kpkg\:Kernel\-Version}/2.6.8-10-amd64-k8/' \
debian/control.in > debian/control
dh_testdir
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make KSRC=/usr/src/kernel-headers-2.6.8-10-amd64-k8/ KVERS=2.6.8-10-amd64-k8
make[1]: Entering directory `/usr/src/modules/vmware'
rm -rf *.o *.ko
/usr/bin/make V=1 VM_UNAME=2.6.8-10-amd64-k8 HEADER_DIR=/usr/src/kernel-headers-2.6.8-10-amd64-k8//include -C vmmon-only auto-build
Unable to find VMware installation database. Using 'vmware'.
Building for VMware Workstation 4.5.2 or VMware GSX Server 3.1.0.
Using 2.6.x kernel build system.
make[2]: Entering directory `/usr/src/modules/vmware/vmmon-only'
make -C /usr/src/kernel-headers-2.6.8-10-amd64-k8//include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[3]: Entering directory `/usr/src/kernel-headers-2.6.8-10-amd64-k8'
mkdir -p /usr/src/modules/vmware/vmmon-only/.tmp_versions
make -f scripts/Makefile.build obj=/usr/src/modules/vmware/vmmon-only
gcc -Wp,-MD,/usr/src/modules/vmware/vmmon-only/linux/.driver.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -O2-fomit-frame-pointer -Wall -Wstrict-prototypes -DVME_DEFAULT=VME_V452 -DVMW_USING_KBUILD -I/usr/src/modules/vmware/vmmon-only/./include -I/usr/src/modules/vmware/vmmon-only/./common -I/usr/src/modules/vmware/vmmon-only/./linux -I/usr/src/modules/vmware/vmmon-only/./vmcore -DVMWARE__FIX_IO_APIC_BASE=FIX_IO_APIC_BASE -DVMW_HAVE_COMPILE_H -DMODULE -DKBUILD_BASENAME=driver -DKBUILD_MODNAME=vmmon -c -o /usr/src/modules/vmware/vmmon-only/linux/.tmp_driver.o /usr/src/modules/vmware/vmmon-only/linux/driver.c /usr/src/modules/vmware/vmmon-only/linux/driver.c:1: error: code model `kernel'not supported in the 32 bit mode
make[4]: *** [/usr/src/modules/vmware/vmmon-only/linux/driver.o] Error 1
make[3]: *** [_module_/usr/src/modules/vmware/vmmon-only] Error 2
make[3]: Leaving directory `/usr/src/kernel-headers-2.6.8-10-amd64-k8'
make[2]: *** [vmmon.ko] Error 2
make[2]: Leaving directory `/usr/src/modules/vmware/vmmon-only'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/modules/vmware'
make: *** [binary-modules] Error 2
indik:/usr/src/modules/vmware#



Reply to: