fails to compile a Nvidia driver(Solved)

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 6995
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

fails to compile a Nvidia driver(Solved)

Post 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 35 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.

Last edited by bigpup on Fri Feb 03, 2023 2:51 am, edited 1 time in total.
Reason: added solved

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

radky
Posts: 355
Joined: Fri May 28, 2021 2:14 am
Has thanked: 41 times
Been thanked: 320 times

Re: fails to compile a Nvidia driver

Post 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

User avatar
bigpup
Moderator
Posts: 6995
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 913 times
Been thanked: 1528 times

Re: fails to compile a Nvidia driver

Post 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.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “F96-CE”