

Maybe depends for the configs, in my case I need to build the external modules with the same compiler, and in lkml you can see a few warnings about do not mix the compiles: https://lkml.iu.edu/hypermail/linux/kernel/2107.3/08102.html
For rust modules you need to use LVM=1 because you need to use all the LVM stack instead of the GCC stack, if I define in the Makefike the LVM=1 then the build fails with a lot of clang: error: unknown argument: …
So for me is impossible to build my rust modules for a kernel build with a GCC kernel
Must be as easy as windows, but in windows the easy way to fix a big problem is install again, un linux you can reinstall or… Fix with commands. Probably in your case you need to write commands because something go wrong with the installation, maybe you did something wrong, or maybe Ubuntu read something in a bad way and make a mistake installing Ubuntu. Is impossible to know if you don’t share the exact error message.