fails to compile a Nvidia driver(Solved)
Frugal install of f96-CE with a save folder.
Trying to compile the Nvidia driver using NVIDIA-Linux-x86_64-525.85.05.run file from Nvidia web site.
Loaded the devx_fossapup64_9.6.sfs and kernel_sources-6.0.12-FP.sfs
Compiling process never completes.
Has the following errors:
-> Building kernel modules
executing: 'cd ./kernel; /usr/bin/make -k -j8 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.0.12-F96/source" SYSOUT="/lib/modules/6.0.12-F96/build" '...
make[1]: Entering directory '/usr/src/linux'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 11.2.0
You are using: cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Warning: Compiler version check failed:
The major and minor number of the compiler used to
compile the kernel:
gcc (GCC) 11.2.0, GNU ld version 2.37-slack15
does not match the compiler used here:
To skip the test and silence this warning message, set
the IGNORE_CC_MISMATCH environment variable to "1".
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.
*** Failed CC version check. ***All the make lines end with an error 1.
With this error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./tools/objtool/objtool
Here is the complete install log:
Note:
This same NVIDIA-Linux-x86_64-525.85.05.run file was used in Fossapup64 9.5.
With it's devx and kernel sources SFS's loaded.
It compiled a good working Nvidia driver with no errors.