Page 1 of 1

fails to compile a Nvidia driver(Solved)

Posted: Mon Jan 30, 2023 8:57 pm
by bigpup

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:

nvidia-installer.log
(235.62 KiB) Downloaded 36 times


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.


Re: fails to compile a Nvidia driver

Posted: Mon Jan 30, 2023 9:51 pm
by radky

@bigpup

For the updated 6.0.12 kernel in F-96-CE, the kernel sources and devx were created at the same time in the same gcc 11.2.0 compile environment.

Edit: However, there is a problem with the devx. This may take awhile to resolve.

Thanks


Re: fails to compile a Nvidia driver

Posted: Fri Feb 03, 2023 2:48 am
by bigpup

Now that I know everything is new and you have to do everything over.

I downloaded all the latest F96-CE files as of February 02 2023 and installed to a new frugal install.

Tried compiling a Nvidia graphics driver using a Nvidia run package from their web site.

This time it worked and the driver is compiled and installed. :thumbup:
Using it now.

So this set of the F96-CE ISO, devx sfs, and kernel sources sfs work. :thumbup:

I guess this is a good test to see if the 3 different parts will match and work together.