Compiler differs from the one used to build the kernel

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Jedi
Posts: 16
Joined: 21. Oct 2017, 23:34

Compiler differs from the one used to build the kernel

Post by Jedi »

I am running Ubuntu 22-04 guest on Ubuntu 22-04 host.
Virtualbox Version 6.1.50 r161033 (Qt5.15.3)

On the guest I get an error when I run /sbin/rcvboxadd quicksetup

Code: Select all

mike@matrix:~$ uname -r
6.5.0-14-generic
mike@matrix:~$ sudo /sbin/rcvboxadd quicksetup 6.5.0-14-generic
VirtualBox Guest Additions: Building the modules for kernel 6.5.0-14-generic.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what 
went wrong
I have added the vboxadd-setup.log

I have the correct version of the complier installed.

Code: Select all

root@matrix:~# sudo apt-get install gcc-12-base
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc-12-base is already the newest version (12.3.0-1ubuntu1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Attachments
vboxadd-setup.log
(3.08 KiB) Downloaded 118 times
fth0
Volunteer
Posts: 5678
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Compiler differs from the one used to build the kernel

Post by fth0 »

The gcc-12-base package only contains some documentation files. Try sudo apt install gcc-12 and gcc-12 --version.
Jedi
Posts: 16
Joined: 21. Oct 2017, 23:34

Re: Compiler differs from the one used to build the kernel

Post by Jedi »

Zsysctl-2024-01-22-22-13-07.log
(209.53 KiB) Downloaded 97 times
I have upgraded to Version 7.0.14 r161095 (Qt5.15.3) with VBoxGuestAdditions-7.0.14 installed.

I have also added myself to the vboxusers group and installed the extension pack as per directions here.

Code: Select all

sudo apt install gcc-12
solved the compile error.

But now my screen is all fuzzy and I am getting these errors in the log:

Code: Select all

Jan 22 19:23:25 orac kernel: UBSAN: array-index-out-of-bounds in /tmp/vbox.0/SUPDrvGip.c:647:59
Jan 22 19:23:25 orac kernel: index 1 is out of range for type 'SUPGIPCPU [1]'
Jan 22 19:23:25 orac kernel: ================================================================================
I see its been reported here

This is my only vm on the 6.5.0-14-generic kernel. My other vm's are fine.

Code: Select all

root@orac:/home/mike# nvidia-smi 
Mon Jan 22 22:09:10 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.146.02             Driver Version: 535.146.02   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1060 6GB    Off | 00000000:0A:00.0  On |                  N/A |
| 31%   55C    P8              11W / 180W |    269MiB /  6144MiB |     15%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      5441      G   /usr/lib/xorg/Xorg                          143MiB |
|    0   N/A  N/A      5592      G   /usr/bin/gnome-shell                         32MiB |
|    0   N/A  N/A      8339      G   ...,262144 --variations-seed-version=1       90MiB |
+---------------------------------------------------------------------------------------+
I have attached the log.
Post Reply