Results 1 to 6 of 6

Thread: Unable to complete 5.8.0 kernel install - Ubuntu 20.04

  1. #1
    Join Date
    Nov 2020
    Beans
    3

    Unable to complete 5.8.0 kernel install - Ubuntu 20.04

    Seems dkms is failing to to build in certain modules during a kernel update from 5.6 to 5.8, but I've tried multiple kernels updates. 5.6 is as high as I can go. Make.log shown below (cant attach)

    Code:
    DKMS make.log for virtualbox-6.1.10 for kernel 5.8.0-050800-generic (x86_64)
    Tue 17 Nov 2020 12:12:07 PM EST
    make: Entering directory '/usr/src/linux-headers-5.8.0-050800-generic'
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrv.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrvGip.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrvSem.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPDrvTracer.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/SUPLibAll.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/alloc-r0drv.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/initterm-r0drv.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/memobj-r0drv.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/mpnotification-r0drv.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/powernotification-r0drv.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/process-r0drv-linux.o
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function ‘rtR0MemAllocExecVmArea’:
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:171:15: error: implicit declaration of function ‘__get_vm_area’; did you mean ‘get_vm_area’? [-Werror=implicit-function-declaration]
      171 |     pVmArea = __get_vm_area(cbAlloc, VM_ALLOC, MODULES_VADDR, MODULES_END);
          |               ^~~~~~~~~~~~~
          |               get_vm_area
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:171:13: warning: assignment to ‘struct vm_struct *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
      171 |     pVmArea = __get_vm_area(cbAlloc, VM_ALLOC, MODULES_VADDR, MODULES_END);
          |             ^
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:204:14: error: implicit declaration of function ‘map_vm_area’; did you mean ‘get_vm_area’? [-Werror=implicit-function-declaration]
      204 |         if (!map_vm_area(pVmArea, PAGE_KERNEL_EXEC,
          |              ^~~~~~~~~~~
          |              get_vm_area
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/rtStrFormatKernelAddress-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
      CC [M]  /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/semmutex-r0drv-linux.o
    In file included from ./include/asm-generic/percpu.h:7,
                     from ./arch/x86/include/asm/percpu.h:556,
                     from ./arch/x86/include/asm/preempt.h:6,
                     from ./include/linux/preempt.h:78,
                     from ./include/linux/spinlock.h:51,
                     from /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/../SUPDrvInternal.h:79,
                     from /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:32:
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c: In function ‘supdrvOSChangeCR4’:
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:38: error: ‘cpu_tlbstate’ undeclared (first use in this function); did you mean ‘cpuhp_state’?
      760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
          |                                      ^~~~~~~~~~~~
    ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘__pcpu_size_call_return’
      318 |  typeof(variable) pscr_ret__;     \
          |         ^~~~~~~~
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’
      760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
          |                        ^~~~~~~~~~~~~
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:38: note: each undeclared identifier is reported only once for each function it appears in
      760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
          |                                      ^~~~~~~~~~~~
    ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘__pcpu_size_call_return’
      318 |  typeof(variable) pscr_ret__;     \
          |         ^~~~~~~~
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’
      760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
          |                        ^~~~~~~~~~~~~
    make[2]: *** [scripts/Makefile.build:280: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.o] Error 1
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeFree’:
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:596:43: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
      596 |                     down_read(&pTask->mm->mmap_sem);
          |                                           ^~~~~~~~
          |                                           mmap_base
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:611:41: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
      611 |                     up_read(&pTask->mm->mmap_sem);
          |                                         ^~~~~~~~
          |                                         mmap_base
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeLockUser’:
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1079:31: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
     1079 |         down_read(&pTask->mm->mmap_sem);
          |                               ^~~~~~~~
          |                               mmap_base
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1165:33: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
     1165 |             up_read(&pTask->mm->mmap_sem);
          |                                 ^~~~~~~~
          |                                 mmap_base
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1192:29: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
     1192 |         up_read(&pTask->mm->mmap_sem);
          |                             ^~~~~~~~
          |                             mmap_base
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeMapUser’:
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1607:36: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
     1607 |             down_write(&pTask->mm->mmap_sem);
          |                                    ^~~~~~~~
          |                                    mmap_base
    /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1724:34: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean ‘mmap_base’?
     1724 |             up_write(&pTask->mm->mmap_sem);
          |                                  ^~~~~~~~
          |                                  mmap_base
    make[2]: *** [scripts/Makefile.build:280: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
    make[1]: *** [scripts/Makefile.build:497: /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv] Error 2
    make: *** [Makefile:1756: /var/lib/dkms/virtualbox/6.1.10/build] Error 2
    make: Leaving directory '/usr/src/linux-headers-5.8.0-050800-generic'
    Last edited by deadflowr; November 17th, 2020 at 06:30 PM. Reason: code tags

  2. #2
    Join Date
    Oct 2009
    Beans
    550
    Distro
    Ubuntu Development Release

    Re: Unable to complete 5.8.0 kernel install - Ubuntu 20.04

    I think you need Virtualbox 6.1.14 to do that
    https://betanews.com/2020/09/06/virt...ux-kernel-5-8/

  3. #3
    Join Date
    Nov 2020
    Beans
    3

    Re: Unable to complete 5.8.0 kernel install - Ubuntu 20.04

    Quote Originally Posted by P-I H View Post
    I think you need Virtualbox 6.1.14 to do that
    https://betanews.com/2020/09/06/virt...ux-kernel-5-8/
    I thought you might be right, so I installed virtualbox 6.1.16. Still getting failures on any kernel now above 5.7.19. Interesting because I'm now on 6.1.16 but but the build is referencing a 6.1.10 folder


    "make ...KERNELRELEASE=5.8.18-XXXXXX-generic -C /lib/modules/5.8.18-xxxxxx-generic/build M=/var/lib/dkms/virtualbox-guest/6.1.10/build...(bad exit status: 2)
    ERROR kernel package linux-headers-5.8.18-050818-generic is not supported"
    Last edited by bigverm23; November 18th, 2020 at 02:12 PM.

  4. #4
    Join Date
    Nov 2020
    Beans
    3

    Re: Unable to complete 5.8.0 kernel install - Ubuntu 20.04


  5. #5
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Unable to complete 5.8.0 kernel install - Ubuntu 20.04

    @bigverm23, if you want to post an image, use the paperclip icon in the advanced editor to upload an image to the forum server. I'll leave your apparently blank post in situ until you either acknowledge this, or post an uploaded image. Your post is blank because it contains a mass of base64 code, which the forum software won't display. You get base64 code when you drag and drop an image into the editor. That will never work. Use the paperclip icon to access the attachment manager.
    Ubuntu 18.04 Desktop Guide - Ubuntu 20.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags - IRC #ubuntuforums

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  6. #6
    Join Date
    Oct 2009
    Beans
    550
    Distro
    Ubuntu Development Release

    Re: Unable to complete 5.8.0 kernel install - Ubuntu 20.04

    Perhaps some Virtualbox extension.
    I Installed on this machine and it worked.Got some Virtualbox error message, but Ubuntu hirsute installed after I closed the message.
    Code:
    p-i@pi-VirtualBox:~$ inxi -Fz
    System:
      Kernel: 5.8.0-25-generic x86_64 bits: 64 Desktop: GNOME 3.38.1 
      Distro: Ubuntu 21.04 (Hirsute Hippo) 
    Machine:
      Type: Virtualbox System: innotek product: VirtualBox v: 1.2 
      serial: <filter> 
      Mobo: Oracle model: VirtualBox v: 1.2 serial: <filter> BIOS: innotek 
      v: VirtualBox date: 12/01/2006 
    CPU:
      Info: 6-Core model: AMD Ryzen 5 5600X bits: 64 type: MCP 
      L2 cache: 3072 KiB 
      Speed: 3700 MHz min/max: N/A Core speeds (MHz): 1: 3700 2: 3700 3: 3700 
      4: 3700 5: 3700 6: 3700 
    Graphics:
      Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.18.0.0 
      Display: x11 server: X.Org 1.20.9 driver: vmware 
      unloaded: fbdev,modesetting,vesa resolution: 1920x1200~60Hz 
      OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 20.2.1 
    Audio:
      Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0 
      Sound Server: ALSA v: k5.8.0-25-generic 
    Network:
      Device-1: Intel 82540EM Gigabit Ethernet driver: e1000 
      IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: <filter> 
      Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge 
      driver: piix4_smbus 
    Drives:
      Local Storage: total: 20.52 GiB used: 6.64 GiB (32.4%) 
      ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 20.52 GiB 
    Partition:
      ID-1: / size: 19.57 GiB used: 6.64 GiB (33.9%) fs: ext4 dev: /dev/sda3 
    Swap:
      ID-1: swap-1 type: file size: 947.9 MiB used: 0 KiB (0.0%) file: /swapfile 
    Sensors:
      Message: No sensors data was found. Is sensors configured? 
    Info:
      Processes: 221 Uptime: 3m Memory: 7.77 GiB used: 1.05 GiB (13.5%) 
      Shell: Bash inxi: 3.1.09 
    p-i@pi-VirtualBox:~$
    Attached Images Attached Images
    Last edited by P-I H; November 21st, 2020 at 08:30 AM. Reason: added info

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •