I've tried recompiling gcc 10.3 but it seems there is a kernel plugin that is incompatible (structleak). vmware error log shows:
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
Here's what I've tried so far:
git clone git://gcc.gnu.org/git/gcc
cd gcc
git checkout releases/gcc-10.3.0
# 10.3 has a broken dependency so I manually applied this patch from gentoo
# https://gitweb.gentoo.org/proj/gcc-patches.git/tree/10.3.0/gentoo/35_all_remove-cyclades.patch
./configure --disable-multilib --prefix="$HOME/apps/gcc"
CFLAGS_FOR_BUILD=-fpermissive make -j all-gcc
CFLAGS_FOR_BUILD=-fpermissive make -j all-target-libgcc
make install-gcc
make install-target-libgcc
sudo vmware-modconfig --console --build-mod vmmon ~/apps/gcc/bin/gcc
This seems to be a dead end so I think I'll just have to wait for a new kernel.