Problems while installing Nvidia drivers for Ubuntu real time kernel 6.1.38-rt13-rc1

I recently met a problem while installing Nvidia drivers for our Ubuntu real time kernel while following this post:

Here is my system and RT version:
Linux pcrt-sysgen 6.1.38-rt13-rc1 #1 SMP PREEMPT_RT Tue Aug 8 14:19:01 CEST 2023 x86_64 x86_64 x86_64 GNU/Linux

I was trying to install the driver from I went into this error:

The related make.log and nvidia-bug-report.log have been attached. dmks has been correctly installed and configured.
make.log (14.4 KB)

nvidia-bug-report.log (386.4 KB)