﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
20998,vboxdrv build issues (clang),CdeMills,,"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",defect,closed,other,VirtualBox 6.1.32,fixed,clang,,other,Linux
