VMware Communities
Dan2112
Contributor
Contributor
Jump to solution

VMWare tools fails to Compile on Centos 7.3 (1611)

Upgraded to CentOS 7.3 today and hit a compilation issue w/ VMWare Tools from Fusion v8.5.3

Searching for a valid kernel header path...

Detected the kernel headers at

"/lib/modules/3.10.0-514.2.2.el7.x86_64/build/include".

The path "/lib/modules/3.10.0-514.2.2.el7.x86_64/build/include" appears to be a

valid path to the 3.10.0-514.2.2.el7.x86_64 kernel headers.

Would you like to change it? [no]

Using kernel build system.

make: Entering directory `/tmp/modconfig-36luPI/vmhgfs-only'

/bin/make -C /lib/modules/3.10.0-514.2.2.el7.x86_64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \

  MODULEBUILDDIR= modules

make[1]: Entering directory `/usr/src/kernels/3.10.0-514.2.2.el7.x86_64'

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/message.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/dir.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/rpcout.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/filesystem.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/cpName.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/link.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/request.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/hgfsUtil.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/file.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/bdhandler.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/transport.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/module.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/super.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/stubs.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/fsutil.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/cpNameLinux.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/hgfsBd.o

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/backdoorGcc64.o

/tmp/modconfig-36luPI/vmhgfs-only/backdoorGcc64.o: warning: objtool: BackdoorHbIn()+0xd: duplicate frame pointer save

/tmp/modconfig-36luPI/vmhgfs-only/backdoorGcc64.o: warning: objtool: BackdoorHbOut()+0xd: duplicate frame pointer save

  CC [M]  /tmp/modconfig-36luPI/vmhgfs-only/page.o

/tmp/modconfig-36luPI/vmhgfs-only/page.c: In function ‘HgfsWbRequestWait’:

/tmp/modconfig-36luPI/vmhgfs-only/page.c:1649:23: warning: passing argument 3 of ‘wait_on_bit’ makes integer from pointer without a cast [enabled by default]

                       TASK_UNINTERRUPTIBLE);

                       ^

In file included from include/linux/mmzone.h:9:0,

                 from include/linux/gfp.h:5,

                 from include/linux/mm.h:9,

                 from include/linux/pagemap.h:7,

                 from /tmp/modconfig-36luPI/vmhgfs-only/page.c:28:

include/linux/wait.h:1044:1: note: expected ‘unsigned int’ but argument is of type ‘int (*)(void *)’

wait_on_bit(void *word, int bit, unsigned mode)

^

/tmp/modconfig-36luPI/vmhgfs-only/page.c:1649:23: error: too many arguments to function ‘wait_on_bit’

                       TASK_UNINTERRUPTIBLE);

                       ^

In file included from include/linux/mmzone.h:9:0,

                 from include/linux/gfp.h:5,

                 from include/linux/mm.h:9,

                 from include/linux/pagemap.h:7,

                 from /tmp/modconfig-36luPI/vmhgfs-only/page.c:28:

include/linux/wait.h:1044:1: note: declared here

wait_on_bit(void *word, int bit, unsigned mode)

^

make[2]: *** [/tmp/modconfig-36luPI/vmhgfs-only/page.o] Error 1

make[1]: *** [_module_/tmp/modconfig-36luPI/vmhgfs-only] Error 2

make[1]: Leaving directory `/usr/src/kernels/3.10.0-514.2.2.el7.x86_64'

make: *** [vmhgfs.ko] Error 2

make: Leaving directory `/tmp/modconfig-36luPI/vmhgfs-only'

Reply
0 Kudos
1 Solution

Accepted Solutions
Dan2112
Contributor
Contributor
Jump to solution

There was a new vmware tools release to address the issue here

Re: Vmware tools vmhgfs and RHEL 7.3

View solution in original post

Reply
0 Kudos
3 Replies
mvdwrd
Contributor
Contributor
Jump to solution

I have exactly the same issue.

Sierra 10.12.1

Fusion 8.5.3

RHEL 7.2 VM updated to 7.3

Same output as Dan. If I can do anything to help resolve this issue, let me know.

For now I am reverting to 7.2

Thanks.

Reply
0 Kudos
Dan2112
Contributor
Contributor
Jump to solution

There was a new vmware tools release to address the issue here

Re: Vmware tools vmhgfs and RHEL 7.3

Reply
0 Kudos
santee90
Contributor
Contributor
Jump to solution

I solved following CentOS 7 安装 vmware-tools-懂客-dongcoder.com

Hope it is appreciated

Reply
0 Kudos