| Summary: | nvidia-driver package fails to build | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Dr I J Ormshaw <ian_ormshaw> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED MOVED | ||
| Severity: | normal | CC: | buildroot, yann.morin.1998 |
| Priority: | P5 | ||
| Version: | 2022.05 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: |
config files
Fedora 35 build log source tree patch |
||
|
Description
Dr I J Ormshaw
2022-06-20 09:03:00 UTC
I get the same issue with gcc 9, 10, and 11 Created attachment 9331 [details]
Fedora 35 build log
Pretty sure the CC error may be addressed by https://patchwork.ozlabs.org/project/buildroot/patch/20211104141910.1840914-1-vfazio@xes-inc.com/ version 390.151 has been released which adds support up to 5.17rc, the 390.132 package I think only technically supports through 5.4 I can resubmit my patch with the version bump and kick off a build to make sure it at least compiles OK but I don't have the bandwidth to do actual hardware testing at the moment. hopefully fixed by https://patchwork.ozlabs.org/project/buildroot/patch/20220620170940.513445-1-vfazio@xes-inc.com/ I am still not able to compile the drivers. It would appear from https://gist.github.com/joanbm/144a965c36fc1dc0d1f1b9be3438a368. That the patch you have applied only works for 5.10 -> 5.13 and the build breaks again from 5.14 on. In file included from ../nvidia-driver-390.144/kernel/common/inc/os-interface.h:27, from ../nvidia-driver-390.144/kernel/nvidia/nv-procfs.c:14: ../../host/lib/gcc/x86_64-WatersAMST-linux-gnu/11.3.0/include/stdarg.h:52: note: this is the location of the previous definition 52 | #define va_copy(d,s) __builtin_va_copy(d,s) | ../nvidia-driver-390.144/kernel/nvidia-drm/nvidia-drm-drv.c: In function ‘nv_drm_register_drm_device’: ../nvidia-driver-390.144/kernel/nvidia-drm/nvidia-drm-drv.c:814:10: error: ‘struct drm_device’ has no member named ‘pdev’; did you mean ‘dev’? 814 | dev->pdev = pdev; | ^~~~ | dev make[3]: *** [scripts/Makefile.build:288: /home/ian/build/amst-hiwire-linux-9297fa84-x86_64/buildroot/build/nvidia-driver-390.144/kernel/nvidia-drm/nvidia-drm-drv.o] Error 1 ../nvidia-driver-390.144/kernel/nvidia/nvlink_linux.c: In function ‘nvlink_sleep’: ../nvidia-driver-390.144/kernel/nvidia/nvlink_linux.c:600:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’? 600 | current->state = TASK_INTERRUPTIBLE; | ^~~~~ | __state make[3]: *** [scripts/Makefile.build:288: /home/ian/build/amst-hiwire-linux-9297fa84-x86_64/buildroot/build/nvidia-driver-390.144/kernel/nvidia/nvlink_linux.o] Error 1 make[2]: *** [Makefile:1868: /home/ian/build/amst-hiwire-linux-9297fa84-x86_64/buildroot/build/nvidia-driver-390.144/kernel] Error 2 make[2]: Leaving directory '/home/ian/build/amst-hiwire-linux-9297fa84-x86_64/buildroot/build/linux-5.15.44' make[1]: *** [package/pkg-generic.mk:294: /home/ian/build/amst-hiwire-linux-9297fa84-x86_64/buildroot/build/nvidia-driver-390.144/.stamp_built] Error 2 make[1]: Leaving directory '/home/ian/projects/amst-hiwire-linux/source/buildroot' make: *** [Makefile:616: buildroot] Error 2 The no cc check patch works as expected on Fedora 36 Created attachment 9336 [details]
source tree patch
I've applied this patch to the source tree and it now build for me on my system.
I've submitted https://patchwork.ozlabs.org/project/buildroot/list/?series=305651 Which uses the upstream 390.151 package. I was able to successfully compile the driver using the vanilla 5.17 kernel Thanks, Compiles with my realtime 5.15 kernel too. Thank you for your report.
The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.
Thank you!
|