Hi Everyone, I recently upgraded Ubuntu 18.04 x86_64 to the 5.4.0-37 kernel. VirtualBox died, and I am trying to reinstall virtualbox-dkms. The reinstall fails because the build fails. The log is below. Is there anything I can do to solve the problem? ========== $ cat /var/lib/dkms/virtualbox/5.2.34/build/make.log DKMS make.log for virtualbox-5.2.34 for kernel 5.4.0-37-generic (x86_64) Thu Jun 18 01:35:43 EDT 2020 make: Entering directory '/usr/src/linux-headers-5.4.0-37-generic' CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/linux/SUPDrv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrv.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvTracer.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPLibAll.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvSem.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/alloc-r0drv.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/initterm-r0drv.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/memobj-r0drv.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/mpnotification-r0drv.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/powernotification-r0drv.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o In file included from ././include/linux/compiler_types.h:59:0, from <command-line>:0: /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c: In function ‘supdrvTscDeltaThread’: ./include/linux/compiler_attributes.h:200:41: error: expected ‘)’ before ‘__attribute__’ # define fallthrough __attribute__((__fallthrough__)) ^ /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1116:48: note: in expansion of macro ‘fallthrough’ # define RT_FALL_THROUGH() __attribute__((fallthrough)) ^~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’ #define RT_FALL_THRU() RT_FALL_THROUGH() ^~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4198:17: note: in expansion of macro ‘RT_FALL_THRU’ RT_FALL_THRU(); ^~~~~~~~~~~~ In file included from /var/lib/dkms/virtualbox/5.2.34/build/include/VBox/cdefs.h:29:0, from /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvInternal.h:34, from /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:33: /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1116:60: error: expected identifier or ‘(’ before ‘)’ token # define RT_FALL_THROUGH() __attribute__((fallthrough)) ^ /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’ #define RT_FALL_THRU() RT_FALL_THROUGH() ^~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4198:17: note: in expansion of macro ‘RT_FALL_THRU’ RT_FALL_THRU(); ^~~~~~~~~~~~ In file included from ././include/linux/compiler_types.h:59:0, from <command-line>:0: ./include/linux/compiler_attributes.h:200:41: error: expected ‘)’ before ‘__attribute__’ # define fallthrough __attribute__((__fallthrough__)) ^ /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1116:48: note: in expansion of macro ‘fallthrough’ # define RT_FALL_THROUGH() __attribute__((fallthrough)) ^~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’ #define RT_FALL_THRU() RT_FALL_THROUGH() ^~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4227:17: note: in expansion of macro ‘RT_FALL_THRU’ RT_FALL_THRU(); ^~~~~~~~~~~~ In file included from /var/lib/dkms/virtualbox/5.2.34/build/include/VBox/cdefs.h:29:0, from /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvInternal.h:34, from /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:33: /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1116:60: error: expected identifier or ‘(’ before ‘)’ token # define RT_FALL_THROUGH() __attribute__((fallthrough)) ^ /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/cdefs.h:1123:33: note: in expansion of macro ‘RT_FALL_THROUGH’ #define RT_FALL_THRU() RT_FALL_THROUGH() ^~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4227:17: note: in expansion of macro ‘RT_FALL_THRU’ RT_FALL_THRU(); ^~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4196:20: warning: this statement may fall through [-Wimplicit-fallthrough=] if (RT_FAILURE(rc)) ^ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4201:13: note: here case kTscDeltaThreadState_Listening: ^~~~ In file included from <command-line>:0:0: /var/lib/dkms/virtualbox/5.2.34/build/include/VBox/SUPDrvMangling.h:30:30: warning: this statement may fall through [-Wimplicit-fallthrough=] #define RT_MANGLER(symbol) VBoxHost_##symbol /var/lib/dkms/virtualbox/5.2.34/build/include/iprt/mangling.h:2219:57: note: in expansion of macro ‘RT_MANGLER’ # define RTThreadSleep RT_MANGLER(RTThreadSleep) ^~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4226:17: note: in expansion of macro ‘RTThreadSleep’ RTThreadSleep(1); ^~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.c:4230:13: note: here case kTscDeltaThreadState_Measuring: ^~~~ scripts/Makefile.build:273: recipe for target '/var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.o' failed make[2]: *** [/var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/SUPDrvGip.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:31:0: /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function ‘VBoxHost_RTMemContAlloc’: /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/the-linux-kernel.h:331:47: error: implicit declaration of function ‘set_pages_x’; did you mean ‘set_pages_rw’? [-Werror=implicit-function-declaration] # define MY_SET_PAGES_EXEC(pPages, cPages) set_pages_x(pPages, cPages) ^ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:445:13: note: in expansion of macro ‘MY_SET_PAGES_EXEC’ MY_SET_PAGES_EXEC(&paPages[iPage], 1); ^~~~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function ‘VBoxHost_RTMemContFree’: /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/the-linux-kernel.h:332:47: error: implicit declaration of function ‘set_pages_nx’; did you mean ‘set_pages_rw’? [-Werror=implicit-function-declaration] # define MY_SET_PAGES_NOEXEC(pPages, cPages) set_pages_nx(pPages, cPages) ^ /var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:493:13: note: in expansion of macro ‘MY_SET_PAGES_NOEXEC’ MY_SET_PAGES_NOEXEC(&paPages[iPage], 1); ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:273: recipe for target '/var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o' failed make[2]: *** [/var/lib/dkms/virtualbox/5.2.34/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o] Error 1 scripts/Makefile.build:522: recipe for target '/var/lib/dkms/virtualbox/5.2.34/build/vboxdrv' failed make[1]: *** [/var/lib/dkms/virtualbox/5.2.34/build/vboxdrv] Error 2 Makefile:1719: recipe for target '/var/lib/dkms/virtualbox/5.2.34/build' failed make: *** [/var/lib/dkms/virtualbox/5.2.34/build] Error 2 make: Leaving directory '/usr/src/linux-headers-5.4.0-37-generic' _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies