I just installed xanmod kernel, which uses clang instead of gcc, and the Nvidia driver doesn't compile.
Here are the logs for the driver compilation: make.log
I think in this case the problem is that LD variable still points to /usr/bin/ld.bfd, even /usr/bin/ld.lld is installed and available.
I found an old PR that set LD to ld.lld when the config file of the kernel shows it was linked using lld. But I saw another more recent PR that replaces it by using LLVM=1, which appears in the make command, but for some reason LD wasn't set to the correct value.
I just installed xanmod kernel, which uses clang instead of gcc, and the Nvidia driver doesn't compile.
Here are the logs for the driver compilation: make.log
I think in this case the problem is that LD variable still points to /usr/bin/ld.bfd, even /usr/bin/ld.lld is installed and available.
I found an old PR that set LD to ld.lld when the config file of the kernel shows it was linked using lld. But I saw another more recent PR that replaces it by using LLVM=1, which appears in the make command, but for some reason LD wasn't set to the correct value.