VirtualBox

#20998 closed defect (fixed)

vboxdrv build issues (clang)

Reported by: CdeMills Owned by:
Component: other Version: VirtualBox 6.1.32
Keywords: clang Cc:
Guest type: other Host type: Linux

Description

Hello Under CentOS-8, I compile kernel-ml kernels as LC_ALL=C TMPDIR=/var/tmp MAKEFLAGS="LLVM=1 LLVM_IAS=1" nice -n 20 rpmbuild ...

This permits to use clang as the compiler. Version is clang version 14.0.0 (Red Hat 14.0.0-1.module_el8.7.0+1142+5343df54) Target: x86_64-redhat-linux-gnu

Those kernels build and run fine. Yet the vboxdrv build fails. The command line is: env LC_ALL=C TMP=/var/tmp MAKEFLAGS="LLVM=1 LLVM_IAS=1" CC=clang CXX=clang++ LD=ld.lld rcvboxdrv setup

The failure is: /tmp/vbox.0/SUPDrvGip.c:4341:13: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]

case kTscDeltaThreadState_Listening:

/tmp/vbox.0/SUPDrvGip.c:4341:13: note: insert 'attribute((fallthrough));' to silence this warning

case kTscDeltaThreadState_Listening: attribute((fallthrough));

Could you please try to build it in a similar framework and check the error reproducibility ?

Regards

Pascal

Change History (2)

comment:1 by galitsyn, 15 months ago

Hi Pascal,

There is a fix in this area which you can find in the "Latest 6.1.x test builds" on https://www.virtualbox.org/wiki/Testbuilds. Both rcvboxdrv and rcvboxadd now should detect if kernel was built using clang and act accordingly. There is no need to customly specify environment variables for this anymore. Fix is available starting from r152011 and later.

comment:2 by galitsyn, 14 months ago

Resolution: fixed
Status: newclosed

Thank you for reporting the issue. It should be fixed in VirtualBox 6.1.36. Please refer to https://www.virtualbox.org/wiki/Downloads page.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use