Bug 15121 - make nconfig failes with nvidia drivers and mesa3d selected
Summary: make nconfig failes with nvidia drivers and mesa3d selected
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2022.08
Hardware: PC Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-11 12:46 UTC by Dr I J Ormshaw
Modified: 2022-11-11 22:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr I J Ormshaw 2022-11-11 12:46:47 UTC
I am currently using 2022-11, but this has been a problem with earlier versions too,

I'm trying to produce a system on which I can run opencl code on an nvidia graphics card.  It would appear to me that both the nvidia drivers and mesa3d are required to make this work.  nconfig allows me to selet both but then fails on exit after the configuration is saved.

####### making buildroot-config Updating the default AMST buildroot configuration
make[1]: Entering directory '/home/ian/build/amst-hiwire-linux_5-provide-an-opencl-platform_x86_64/buildroot'
package/mesa3d-headers/mesa3d-headers.mk:10: *** mesa3d-headers enabled, but mesa3d enabled too.  Stop.
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/home/ian/build/amst-hiwire-linux_5-provide-an-opencl-platform_x86_64/buildroot'
make: *** [Makefile:630: buildroot-config] Error 2
Comment 1 Thomas Petazzoni 2022-11-11 22:45:31 UTC
Thanks for your bug report, but there is no bug here.

Buildroot only allows one OpenGL provider to be selected. Indeed, if you have multiple OpenGL providers, they will simply step on each other.

mesa3d-headers is a package that is selected by the nvidia drivers package, as the nvidia drivers package does not provide the OpenGL headers.

mesa3d is another OpenGL implementation.

So having mesa3d and nvidia drivers enabled in the same configuration does not make sense, and that's what the error message is telling you.