Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workstation 17.5.2 + Xanmod 6.10.5 failed to build with clang #273

Open
Bryan2333 opened this issue Aug 16, 2024 · 1 comment
Open

Workstation 17.5.2 + Xanmod 6.10.5 failed to build with clang #273

Bryan2333 opened this issue Aug 16, 2024 · 1 comment

Comments

@Bryan2333
Copy link

Here is the build log

DKMS make.log for vmware-workstation-17.5.2_23775571 for kernel 6.10.5-native_amd-xanmod1-1 (x86_64)
2024年 08月 16日 星期五 09:48:44 CST
cp -r /usr/src/vmware-workstation-17.5.2_23775571/vmmon-only vmmon-only
cp -r /usr/src/vmware-workstation-17.5.2_23775571/vmnet-only vmnet-only
make KVERSION=6.10.5-native_amd-xanmod1-1 VM_KBUILD=yes -C vmnet-only
make[1]: 进入目录“/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only”
Using kernel build system.
make KVERSION=6.10.5-native_amd-xanmod1-1 VM_KBUILD=yes -C vmmon-only
make[1]: 进入目录“/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only”
Using kernel build system.
make -C /lib/modules/6.10.5-native_amd-xanmod1-1/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: 进入目录“/usr/lib/modules/6.10.5-native_amd-xanmod1-1/build”
make -C /lib/modules/6.10.5-native_amd-xanmod1-1/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: 进入目录“/usr/lib/modules/6.10.5-native_amd-xanmod1-1/build”
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/linux/driver.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/linux/driverLog.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/linux/hostif.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/apic.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/comport.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/cpuid.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/crosspage.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/memtrack.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/moduleloop.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/phystrack.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/statVarsVmmon.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/task.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/bootstrap/bootstrap.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/driver.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/bootstrap/monLoader.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/hub.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/userif.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/bootstrap/vmmblob.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/netif.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/bridge.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/procfs.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/smac_compat.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/smac.o
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/vnetEvent.o
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/smac.c:2483:17: warning: variable 'ipLen' set but not used [-Wunused-but-set-variable]
 2483 |          uint16 ipLen;       // reported length of IPv4 packet
      |                 ^
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/vnetUserListener.o
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/moduleloop.c:341:31: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
  341 |          crosspage->args[0] = query->logicalCPUs[0].msrVal;
      |                               ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
1 warning generated.
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:2896:11: warning: variable 'err' set but not used [-Wunused-but-set-variable]
 2896 |       int err;
      |           ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:3743:30: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
 3743 |          if (msrValuePCPU != query->logicalCPUs[0].msrVal) {
      |                              ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:3746:51: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
 3746 |                     msrIndex, j, msrValuePCPU, 0, query->logicalCPUs[0].msrVal);
      |                                                   ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:3805:19: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
 3805 |    msrCommonVal = query->logicalCPUs[0].msrVal;
      |                   ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:3814:27: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
 3814 |       if (msrValuePCPU != query->logicalCPUs[0].msrVal) {
      |                           ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:3852:16: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
 3852 |    commonVal = query->logicalCPUs[0].msrVal;
      |                ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/vmx86.c:13873 warning: generated19.
: warning: array index 0 is past the end of the array (that has type 'MSRReply[0]' (aka 'struct MSRReply[0]')) [-Warray-bounds]
 3873 |    msrCommonVal = query->logicalCPUs[0].msrVal;
      |                   ^                  ~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/./include/x86msr.h:69:4: note: array 'logicalCPUs' declared here
   69 |    MSRReply logicalCPUs[0]; // OUT
      |    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/task.c:730:19: warning: variable 'desc' set but not used [-Wunused-but-set-variable]
  730 |       Descriptor *desc;
      |                   ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/common/task.c:2694:23: warning: variable 'cr' set but not used [-Wunused-but-set-variable]
 2694 |             uintptr_t cr;
      |                       ^
2 warnings generated.
7 warnings generated.
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/linux/hostif.c:1682:12: warning: variable 'anonPages' set but not used [-Wunused-but-set-variable]
 1682 |    PageCnt anonPages;
      |            ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/linux/hostif.c:1757:20: warning: variable 'count' set but not used [-Wunused-but-set-variable]
 1757 |    static unsigned count;
      |                    ^
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/driver.c:1399:22: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
 1399 | VNetFreeInterfaceList()
      |                      ^
      |                       void
1 error generated.
make[4]: *** [scripts/Makefile.build:244:/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/driver.o] 错误 1
make[4]: *** 正在等待未完成的任务....
2 warnings generated.
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/smac_compat.c:86:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
   86 | SMACL_GetUptime()
      |                ^
      |                 void
1 error generated.
make[4]: *** [scripts/Makefile.build:244:/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/smac_compat.o] 错误 1
  LD [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/vmmon.o
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/procfs.c:132:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  132 |       seq_printf(p, buf);
      |                     ^~~
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only/procfs.c:132:21: note: treat the string as an argument to avoid this
  132 |       seq_printf(p, buf);
      |                     ^
      |                     "%s", 
1 warning generated.
make[3]: *** [/usr/lib/modules/6.10.5-native_amd-xanmod1-1/build/Makefile:2087:/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only] 错误 2
make[2]: *** [Makefile:240:__sub-make] 错误 2
make[2]: 离开目录“/usr/lib/modules/6.10.5-native_amd-xanmod1-1/build”
make[1]: *** [Makefile:121:vmnet.ko] 错误 2
make[1]: 离开目录“/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmnet-only”
make: *** [Makefile:10:vmnet.ko] 错误 2
make: *** 正在等待未完成的任务....
/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/vmmon.o: warning: objtool: CrossPage_CodePage+0x1f7: 'naked' return found in MITIGATION_RETHUNK build
  MODPOST /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/Module.symvers
  CC [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/vmmon.mod.o
  LD [M]  /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/vmmon.ko
  BTF [M] /var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only/vmmon.ko
make[2]: 离开目录“/usr/lib/modules/6.10.5-native_amd-xanmod1-1/build”
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: 进入目录“/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only”
make[2]: “postbuild”已是最新。
make[2]: 离开目录“/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only”
cp -f vmmon.ko ./../vmmon.o
make[1]: 离开目录“/var/lib/dkms/vmware-workstation/17.5.2_23775571/build/vmmon-only”
@depgod
Copy link

depgod commented Sep 1, 2024

same happening with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants