Hello all, about mid cycle on Fedora 36 I swapped over from the amdgpu-pro OpenCL drivers to the rocm OpenCL drivers and recently I upgraded the desktop to Fedora 37 and main branch darktable fails to launch with the following error:
mesa: CommandLine Error: Option 'h' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted (core dumped)
I tried removing the previous OpenCL kernels in .cache and rebuilding the program with no success. However removing the rocm-opencl package and its dependencies allows darktable to work just fine.
I’m not sure who’s bug this is: darktable, LLVM, mesa or rocm? I’m running a Radeon RX 6900 XT currently. On my laptop I’ve got an RTX 3060 and Fedora 37 and OpenCL works just fine so this is limited to AMD/rocm. Version info below on what Fedora installs:
I’m thinking this is upstream too, just not sure if it’s compiler/linker or something in the rocm runtime. A fresh recompile after today’s LLVM patches did not fix it.
I just turn off nvidia to try using the rocm drivers. Darktable loads, but it fails to compile any of the kernels [opencl_build_program] could not build program: CL_BUILD_PROGRAM_FAILURE. I will try to investigate a bit more, but AMD is normally a pain.