GCC – Fun with GCC 10, and the Kernel, NVIDIA, VMware..
I have updated some test systems (x86_64 and aarch64) to pre-beta Fedora 32, which now includes GCC 10:
$ gcc --version
gcc (GCC) 10.0.1 20200216 (Red Hat 10.0.1-0.8)
There have been a couple of problems with kernel compilation, but in each case there was already a patch/workaround available..
https://www.spinics.net/linux/fedora/fedora-arm/msg13193.html and https://lkml.org/lkml/2020/1/29/494
The most serious problem was a kernel crash on boot, on a VMware F32 guest system:
…………………..
[ 0.062278] smpboot: CPU 1 Converting physical 0 to logical die 1 [ 0.062278] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: start_secondary+0x1b9/0x1c0
[ 0.062278] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.6.0-0.rc0.git1.1.fc32 .x86_64 #1
[ 0.062278] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.
0-2.fc30 04/01/2014
[ 0.062278] Call Trace:
[ 0.062278] dump_stack+0x8b/0xc8
[ 0.062278] panic+0x10d/0x302
[ 0.062278] ? start_secondary+0x1b9/0x1c0
[ 0.062278] __stack_chk_fail+0x15/0x20
[ 0.062278] start_secondary+0x1b9/0x1c0
[ 0.062278] secondary_startup_64+0xb6/0xc0 [ 0.062278] ---[ end Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: start_secondary+0x1b9/0x1c0 ]---
The workaround is to de-select CONFIG_STACKPROTECTOR_STRONG in the kernel config, ‘General architecture-dependent options / Stack Protector buffer overflow detection / Strong Stack Protector’
The latest Kernel-5.6-patched versions of NVIDIA 440.59, and VMware 15.5.1, compile OK, but one system gave a ‘Failed to get gcc information.‘ error:
# vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Failed to get gcc information.
But — on another F32 system it all worked OK:
# vmware-modconfig --console --install-all
[AppLoader] GLib does not have GSettings support.
Stopping vmware (via systemctl): [ OK ]
make: Entering directory '/tmp/modconfig-tl9WqU/vmmon-only'
Using kernel build system.
............. etc .....................
On the ‘failed’ system, the vmmon and vmnet modules each compiled successfully, so more investigation is needed!
Robert Gadsdon. February 21st 2020.
Comments
GCC – Fun with GCC 10, and the Kernel, NVIDIA, VMware.. — No Comments