FS#74714 - dkms install phrase failed on installing nvidia-open-dkms on llvm compiled kernel

Attached to Project: Arch Linux
Opened by Jiacheng Li (xin201501) - Thursday, 12 May 2022, 05:42 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 15 May 2022, 02:12 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
dkms install phrase failed on installing nvidia-open-dkms on llvm compiled kernel(I made it on 5.18-rc6 kernel version,but I think this might not be the case),make.log says BTF related error in the end.
Additional info:
package version:nvidia-open-dkms-515.43.04-3
config and/or log files etc: make.log's content is at 'make.log'.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 15 May 2022, 02:12 GMT
Reason for closing:  Won't fix
Comment by Jiacheng Li (xin201501) - Thursday, 12 May 2022, 05:43 GMT
nvidia-dkms-515.43.04-3 is not affected.
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 12 May 2022, 11:00 GMT
I'm not sure we can support llvm kernels with dkms. Did you manage to compile the upstream nvidia sources using clang?
Comment by Jiacheng Li (xin201501) - Thursday, 12 May 2022, 11:34 GMT
The upstream nvidia sources can't compile as well.It finishes the compile phrase,but at link phrase it throws the same error.
Only the open-source version has this problem,and when I try the closed-source version(nvidia-dkms)it works again.
The build log of the open-source version is in 'log.txt'.
   log.txt (1.41 MiB)
Comment by Jiacheng Li (xin201501) - Thursday, 12 May 2022, 11:36 GMT
The build command of nvidia source is: sudo make modules -j`nproc` TARGET_ARCH=x86_64 CC=clang CXX=clang++ AR=llvm-ar LD=ld.lld OBJCOPY=objcopy &>log.txt
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 12 May 2022, 14:55 GMT
Check your CFLAGS and perhaps try unsetting all CFLAGS.
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 14 May 2022, 20:14 GMT
I'll close this for the time being. It sounds quite a lot like an upstream problem since you can easily reproduce this against the upstream code. I'd report an issue there. If you'd like to, we could track that here but unless there are patches, there's not much use. What do you think?
Comment by Jiacheng Li (xin201501) - Sunday, 15 May 2022, 00:57 GMT
Yes the upstream doesn't support clang well.I switched to clang-13 but no use.When I switch to GCC and compile the same kernel version,it works.Thank you.

Loading...