Skip to contentSkip to conversation

2.6.3-mjb1 vmware modules compile error..

DISCUSSION Steve Kieu 3 participants 6 messages Feb 22, 2004 Kbuild

lore
Share & tools
lore

Steve Kieu

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I can not compile vmware modules in kernel 2.6.3-mjb1 the compilation bomb wiht lot of error ; it can not find out many header files, probably something changes in the kernel build
system?

The vmmon modules I got from thi site ftp://platan.vc.cvut.cz/pub/vmware/ version 51 (latest). vmnet compile
fine.

If you have any advice pls cc me. Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAOLVvv07eUvBr8ysRArB/AJ9d8NRFFweTc//xqkmlmUoBe7BiawCfYk44 DyMLQujVMJsqWdbaBk4IcJs=
=ML3C
-----END PGP SIGNATURE-----

=====
S.KIEU

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

#1 lore raw
Quoted 11 lines · Steve Kieu

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I can not compile vmware modules in kernel 2.6.3-mjb1 the compilation bomb wiht lot of error ; it can not find out many header files, probably something changes in the kernel build
system?

Quoted 4 lines

The vmmon modules I got from thi site ftp://platan.vc.cvut.cz/pub/vmware/ version 51 (latest). vmnet compile
fine.

It would be nice if you could post beginning of the compilation messages. It uses simple

$(DRIVER_KO):

        make -C $(BUILD_DIR) SUBDIRS=$$PWD SRCROOT=$$PWD/$(SRCROOT) modules

to start build, so I have no idea why it should break on your system.
Petr

author
#2 lore raw

Hi,

bash-2.05b# make
Unable to find VMware installation database. Using 'vmware'.
Building for VMware Workstation 3.2.0. Using 2.6.x kernel build system.
make -C /lib/modules/2.6.1-mm4/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modu
les
make[1]: Entering directory `/vol/hdb5/linux' *** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /root/vmmon-6/linux/driver.o
driver.c:7:27: driver-config.h: No such file or directory
driver.c:23:29: linux/malloc.h: No such file or directory
driver.c:41:20: vmware.h: No such file or directory In file included from driver.c:42:
driver.h:9:26: inclu

deCheck.h: No such file or directory driver.h:14:21: machine.h: No such file or directory driver.h:15:19: vmx86.h: No such file or directory driver.h:16:21: vm_time.h: No such file or directory driver.h:17:29: compat_spinlock.h: No such file or directory
driver.h:18:25: compat_wait.h: No such file or directory
driver.h:19:19: vmx86.h: No such file or directory In file included from driver.c:42:
driver.h:36: error: parse error before "VA" driver.h:36: warning: no semicolon at end of struct or unionmake[2]: *** Deletin
g file `/root/vmmon-6/linux/driver.o' make[2]: *** [/root/vmmon-6/linux/driver.o] Interrupt make[1]: *** [/root/vmmon-6] Interrupt
make: *** [vmmon.ko] Interrupt

The strange thing is in Makefile.kernel it has the line
INCLUDE := -I$(SRCROOT)/include -I$(SRCROOT)/common -I$(SRCROOT)/linux

I just extract the vmmon.tar from the vmware-any--- package and run make in the source dir. It works with all vanila kernels and mm tree, but not with mjb1.

Thanks for your reply

=====
S.KIEU

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

#3 lore raw
Quoted 23 lines · Steve Kieu

Hi,

bash-2.05b# make
Unable to find VMware installation database. Using 'vmware'.
Building for VMware Workstation 3.2.0. Using 2.6.x kernel build system.
make -C /lib/modules/2.6.1-mm4/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modu
les
make[1]: Entering directory `/vol/hdb5/linux' *** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /root/vmmon-6/linux/driver.o
driver.c:7:27: driver-config.h: No such file or directory

Quoted 3 lines

I just extract the vmmon.tar from the vmware-any--- package and run make in the source dir. It works with all vanila kernels and mm tree, but not with mjb1.

WTF? It prepends $(TOPDIR)/ to all include paths. I have no idea what is this supposed to do, but I can guarantee that I'm not going to support that kernel.
Petr Vandrovec

scripts/Makefile.build 2004-02-18 16:23:03.000000000 -0800 renamed from scripts/Makefile.build 2003-10-14 15:50:40.000000000 -0700 +10 -1
diff -purN -X /home/mbligh/.diff.exclude 000-virgin/scripts/Makefile.build 790-irq_vector/scripts/Makefile.build
@@ -128,7 +128,16 @@ cmd_cc_i_c       = $(CPP) $(c_flags)   -
 quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
 
 ifndef CONFIG_MODVERSIONS
-cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
+new1_c_flags = $(c_flags:-I%=-I$(TOPDIR)/%)
+new2_c_flags = $(new1_c_flags:-Wp%=)
+PWD = $(TOPDIR)
+
+quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
+cmd_cc_o_c = $(CC) $(c_flags) -E -o $@ $< \
+               && cd $(dir $<) \
+               && $(CC) $(new2_c_flags) -c -o $(notdir $@) $(notdir $<) \
+               && cd $(TOPDIR)
+#cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
 
 else
 # When module versioning is enabled the following steps are executed:
#4 lore raw
Quoted 19 lines
Quoted 18 lines

bash-2.05b# make
Unable to find VMware installation database. Using 'vmware'.
Building for VMware Workstation 3.2.0. Using 2.6.x kernel build system.
make -C /lib/modules/2.6.1-mm4/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modu
les
make[1]: Entering directory `/vol/hdb5/linux' *** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /root/vmmon-6/linux/driver.o
driver.c:7:27: driver-config.h: No such file or directory

Quoted 9 lines
Quoted 3 lines

I just extract the vmmon.tar from the vmware-any--- package and run make in the source dir. It works with all vanila kernels and mm tree, but not with mjb1.

WTF? It prepends $(TOPDIR)/ to all include paths. I have no idea what is this supposed to do, but I can guarantee that I'm not going to support that kernel.
Petr Vandrovec

Sigh. That's gcov. Paul, any idea why it's doing that?

M.

Quoted 21 lines

diff -purN -X /home/mbligh/.diff.exclude 000-virgin/scripts/Makefile.build 790-irq_vector/scripts/Makefile.build

scripts/Makefile.build 2004-02-18 16:23:03.000000000 -0800 renamed from scripts/Makefile.build 2003-10-14 15:50:40.000000000 -0700 +10 -1
@@ -128,7 +128,16 @@ cmd_cc_i_c       = $(CPP) $(c_flags)   -
 quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
 
 ifndef CONFIG_MODVERSIONS
-cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
+new1_c_flags = $(c_flags:-I%=-I$(TOPDIR)/%)
+new2_c_flags = $(new1_c_flags:-Wp%=)
+PWD = $(TOPDIR)
+
+quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
+cmd_cc_o_c = $(CC) $(c_flags) -E -o $@ $< \
+               && cd $(dir $<) \
+               && $(CC) $(new2_c_flags) -c -o $(notdir $@) $(notdir $<) \
+               && cd $(TOPDIR)
+#cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
 
 else
 # When module versioning is enabled the following steps are executed:
#5 lore raw
Quoted 23 lines · Martin J. Bligh
Quoted 23 lines
Quoted 22 lines

bash-2.05b# make
Unable to find VMware installation database. Using 'vmware'.
Building for VMware Workstation 3.2.0. Using 2.6.x kernel build system.
make -C /lib/modules/2.6.1-mm4/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modu
les
make[1]: Entering directory `/vol/hdb5/linux' *** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
CC [M] /root/vmmon-6/linux/driver.o
driver.c:7:27: driver-config.h: No such file or directory

I just extract the vmmon.tar from the vmware-any--- package and run make in the source dir. It works with all vanila kernels and mm tree, but not with mjb1.

Quoted 7 lines
Quoted 5 lines

WTF? It prepends $(TOPDIR)/ to all include paths. I have no idea what is this supposed to do, but I can guarantee that I'm not going to support that kernel.
Petr Vandrovec

Sigh. That's gcov. Paul, any idea why it's doing that?

Maybe doing:

new1_c_flags = $(patsubst -I$(TOPDIR)//%,-I/%,$(c_flags:-I%=-I$(TOPDIR)/%))

would fix a problem.
Petr Vandrovec

Quoted 27 lines

M.

Quoted 21 lines

diff -purN -X /home/mbligh/.diff.exclude 000-virgin/scripts/Makefile.build 790-irq_vector/scripts/Makefile.build

scripts/Makefile.build 2004-02-18 16:23:03.000000000 -0800 renamed from scripts/Makefile.build 2003-10-14 15:50:40.000000000 -0700 +10 -1
@@ -128,7 +128,16 @@ cmd_cc_i_c       = $(CPP) $(c_flags)   -
 quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
 
 ifndef CONFIG_MODVERSIONS
-cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
+new1_c_flags = $(c_flags:-I%=-I$(TOPDIR)/%)
+new2_c_flags = $(new1_c_flags:-Wp%=)
+PWD = $(TOPDIR)
+
+quiet_cmd_cc_o_c = CC $(quiet_modtag)  $@
+cmd_cc_o_c = $(CC) $(c_flags) -E -o $@ $< \
+               && cd $(dir $<) \
+               && $(CC) $(new2_c_flags) -c -o $(notdir $@) $(notdir $<) \
+               && cd $(TOPDIR)
+#cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
 
 else
 # When module versioning is enabled the following steps are executed: