<div dir="ltr">Good evening! I hope you are all doing well.<div><br></div><div>My goal is simply to get OpenCL 1.2+ working on my MXLinux (Debian Buster derivative) machine with an AMD GPU.<br><div><br></div><div>I have successfully built and installed LLVM into $HOME/opt with the following commands:</div><div><br></div><div>tar -xf llvm-project-10.0.0.tar.xz<br></div><div>cd llvm-project-10.0.0</div><div>mkdir build</div><div>cd build</div><div>cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/opt -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly' ../llvm<br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>make</div><div>make install</div><div><br></div><div>$HOME/opt/bin is in my path.</div><div><br></div><div>When I invoke llvm-config, everything seems reasonable to my naive understanding:</div><div><br></div><div>dorito :: code/llvm-project-10.0.0/build » llvm-config --prefix<br>/home/jackman/opt<br>dorito :: code/llvm-project-10.0.0/build » llvm-config --obj-root<br>/home/jackman/opt<br></div><div>dorito :: code/llvm-project-10.0.0/build » llvm-config --includedir <br>/home/jackman/opt/include<br></div><div><br></div><div>When I try to build Mesa, however, I am still getting this error:</div><div><br></div><div>Message: libdrm 2.4.100 needed because amdgpu has the highest requirement<br>Run-time dependency libdrm_intel found: YES 2.4.101<br>Run-time dependency libdrm_amdgpu found: YES 2.4.101<br>Run-time dependency libdrm_radeon found: YES 2.4.101<br>Run-time dependency libdrm_nouveau found: YES 2.4.101<br>Run-time dependency libdrm found: YES 2.4.101<br>llvm-config found: YES (/home/jackman/opt/bin/llvm-config) 10.0.0<br>Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, engine, ipo, mcdisassembler, mcjit, native, coroutines) found: NO (tried config-tool)<br>Looking for a fallback subproject for the dependency llvm<br><br>meson.build:1389:2: ERROR: Subproject directory not found and llvm.wrap file not found<br></div><div><br></div><div>The full log is attached.</div><div><br></div><div>I really just don't understand enough about LLVM or Mesa to understand what's missing here.</div><div><br></div><div>Thank you for any help.</div><div><br></div><div>Andrew Jackman<br><a href="mailto:kd7nyq@gmail.com" target="_blank">kd7nyq@gmail.com</a></div></div></div></div></div></div></div>