<div dir="ltr"><div dir="ltr">I created a subprojects/llvm.wrap file containing:<br><font face="monospace">[wrap-git]<br>url=<a href="https://gitlab.gnome.org/GNOME/glib.git">https://gitlab.gnome.org/GNOME/glib.git</a><br>revision=glib-2-62<br>depth=1<br><br>[provide]<br>glib-2.0=glib_dep<br>gobject-2.0=gobject_dep<br>gio-2.0=gio_dep</font><div>Which gets me further but still ends with:</div><div><p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">llvm| Subproject <b>llvm</b> finished.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(0,0,0);min-height:18px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(159,160,28)"><b>WARNING:</b></span><span style="font-variant-ligatures:no-common-ligatures"> Variable 'dep_llvm' in the subproject 'subprojects/llvm' is not found</span></p>
<p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Dependency <b>llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)</b> from subproject <b>subprojects/llvm</b> found: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)"><b>NO</b></span></p>
<p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(0,0,0);min-height:18px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">../meson.build:1680:13: </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)"><b>ERROR:</b></span><span style="font-variant-ligatures:no-common-ligatures"> Dependency 'llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, native)' is required but not found.</span></p>
</div><div><br></div><div>Is this the correct place to ask?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 28, 2023 at 2:41 PM Rob Kudyba <<a href="mailto:rk3199@columbia.edu">rk3199@columbia.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Similar to the error mentioned in "<a href="https://github.com/mesonbuild/meson/issues/11503" target="_blank">I have build llvm and clang with source, set llvm-config path to environment variable, but when i tried to build mesa, it cant detect llvm subModule</a>" <font face="monospace">meson setup</font> errors out with<font face="monospace"> meson.build:1680:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.</font><br><div><br></div><div>meson --version<br>1.2.0<br></div><div>Installed into Anaconda 2022-3.</div><div><br></div><div>I tried using various permutations of:<br><font face="monospace">-Dllvm=enabled -Dshared-llvm=enabled -Dcmake_prefix_path=/path/to/llvm/16.0.6/bin<br>same error, here's the entire output.</font><br><br><font face="monospace">~/.local/bin/meson setup -Dllvm=enabled -Dshared-llvm=enabled -Dcmake_prefix_path=/path/to/llvm/16.0.6/bin builddir/ --default-library shared --native-file custom-llvm.ini<br>The Meson build system<br>Version: 1.2.0<br>Source dir: /path/to/me/mesa<br>Build dir: /path/to/me/mesa/builddir<br>Build type: native build<br>Project name: mesa<br>Project version: 23.3.0-devel<br>C compiler for the host machine: cc (gcc 8.3.1 "cc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)")<br>C linker for the host machine: cc ld.bfd 2.30-119<br>C++ compiler for the host machine: c++ (gcc 13.0.1 "c++ (GCC) 13.0.1 20230412 (experimental)")<br>C++ linker for the host machine: c++ ld.bfd 2.30-119<br>Host machine cpu family: x86_64<br>Host machine cpu: x86_64<br>Checking if "-mtls-dialect=gnu2" runs: YES<br>Checking if "split TLSDESC" : links: YES <br>Found pkg-config: /usr/bin/pkg-config (1.4.2)<br>Found CMake: /path/to/cmake/cmake-3.22.1-linux-x86_64/bin/cmake (3.22.1)<br>WARNING: CMake Toolchain: Failed to determine CMake compilers state<br>Run-time dependency vdpau found: NO (tried pkgconfig and cmake)<br>Program glslangValidator found: YES (/usr/bin/glslangValidator)<br>Run-time dependency libomxil-bellagio found: NO (tried pkgconfig and cmake)<br>Run-time dependency libtizonia found: NO (tried pkgconfig and cmake)<br>Run-time dependency libtizplatform found: NO (tried pkgconfig and cmake)<br>Run-time dependency tizilheaders found: NO (tried pkgconfig and cmake)<br>Run-time dependency libva found: NO (tried pkgconfig and cmake)<br>Program python3 found: YES (/path/to/anaconda3-2022.05/bin/python3)<br>Fetching value of define "ETIME" : 62 <br>Checking for function "bswap32" : YES <br>Checking for function "bswap64" : YES <br>Checking for function "clz" : YES <br>Checking for function "clzll" : YES <br>Checking for function "ctz" : YES <br>Checking for function "expect" : YES <br>Checking for function "ffs" : YES <br>Checking for function "ffsll" : YES <br>Checking for function "popcount" : YES <br>Checking for function "popcountll" : YES <br>Checking for function "unreachable" : YES <br>Checking for function "types_compatible_p" : NO <br>Compiler for C supports function attribute const: YES <br>Compiler for C supports function attribute flatten: YES <br>Compiler for C supports function attribute malloc: YES <br>Compiler for C supports function attribute pure: YES <br>Compiler for C supports function attribute unused: YES <br>Compiler for C supports function attribute warn_unused_result: YES <br>Compiler for C supports function attribute weak: YES <br>Compiler for C supports function attribute format: YES <br>Compiler for C supports function attribute packed: YES <br>Compiler for C supports function attribute returns_nonnull: YES <br>Compiler for C supports function attribute alias: YES <br>Compiler for C supports function attribute noreturn: YES <br>Compiler for C supports function attribute visibility:hidden: YES <br>Checking if "__uint128_t" compiles: YES <br>Checking for function "reallocarray" : YES <br>Checking for function "fmemopen" : YES <br>Checking if "gc-sections" : links: YES <br>Compiler for C supports arguments -Werror=implicit-function-declaration: YES <br>Compiler for C supports arguments -Werror=missing-prototypes: YES <br>Compiler for C supports arguments -Werror=return-type: YES <br>Compiler for C supports arguments -Werror=empty-body: YES <br>Compiler for C supports arguments -Werror=incompatible-pointer-types: YES <br>Compiler for C supports arguments -Werror=int-conversion: YES <br>Compiler for C supports arguments -Wimplicit-fallthrough: YES <br>Compiler for C supports arguments -Wmisleading-indentation: YES <br>Compiler for C supports arguments -Wno-missing-field-initializers: YES <br>Compiler for C supports arguments -Wno-format-truncation: YES <br>Compiler for C supports arguments -Wno-nonnull-compare: YES <br>Compiler for C supports arguments -fno-math-errno: YES <br>Compiler for C supports arguments -fno-trapping-math: YES <br>Compiler for C supports arguments -Qunused-arguments: NO <br>Compiler for C supports arguments -fno-common: YES <br>Compiler for C supports arguments -Wno-microsoft-enum-value: NO <br>Compiler for C supports arguments -Wno-unused-function: YES <br>Compiler for C supports arguments -Werror=format: YES <br>Compiler for C supports arguments -Wformat-security: YES <br>Compiler for C supports arguments -Werror=thread-safety: NO <br>Compiler for C supports arguments -ffunction-sections: YES <br>Compiler for C supports arguments -fdata-sections: YES <br>Compiler for C++ supports arguments -Werror=return-type: YES <br>Compiler for C++ supports arguments -Werror=empty-body: YES <br>Compiler for C++ supports arguments -Wmisleading-indentation: YES <br>Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES <br>Compiler for C++ supports arguments -Wno-missing-field-initializers: YES <br>Compiler for C++ supports arguments -Wno-format-truncation: YES <br>Compiler for C++ supports arguments -fno-math-errno: YES <br>Compiler for C++ supports arguments -fno-trapping-math: YES <br>Compiler for C++ supports arguments -Qunused-arguments: NO <br>Compiler for C++ supports arguments -flifetime-dse=1: YES <br>Compiler for C++ supports arguments -Wno-microsoft-enum-value: NO <br>Compiler for C++ supports arguments -Werror=format: YES <br>Compiler for C++ supports arguments -Wformat-security: YES <br>Compiler for C++ supports arguments -ffunction-sections: YES <br>Compiler for C++ supports arguments -fdata-sections: YES <br>Compiler for C supports arguments -Wno-override-init: YES <br>Compiler for C supports arguments -Wno-initializer-overrides: NO <br>Compiler for C supports arguments -Werror=pointer-arith: YES <br>Compiler for C supports arguments -Werror=vla: YES <br>Compiler for C supports arguments -Werror=gnu-empty-initializer: NO <br>Compiler for C++ supports arguments -Werror=pointer-arith: YES <br>Compiler for C++ supports arguments -Werror=vla: YES <br>Compiler for C++ supports arguments -Werror=gnu-empty-initializer: NO <br>Checking if "GCC atomic builtins" compiles: YES <br>Checking if "GCC atomic builtins required -latomic" : links: YES <br>Checking if "GCC 64bit atomics" with dependency : links: YES <br>Library ws2_32 found: NO<br>Header "sys/sysmacros.h" has symbol "major" : YES <br>Header "sys/sysmacros.h" has symbol "minor" : YES <br>Header "sys/sysmacros.h" has symbol "makedev" : YES <br>Header "sys/mkdev.h" has symbol "major" : NO <br>Check usable header "sched.h" : YES <br>Checking for function "sched_getaffinity" : YES <br>Check usable header "xlocale.h" : NO <br>Check usable header "linux/futex.h" : YES <br>Check usable header "endian.h" : YES <br>Check usable header "dlfcn.h" : YES <br>Check usable header "sys/shm.h" : YES <br>Check usable header "cet.h" : YES <br>Check usable header "pthread_np.h" : NO <br>Check usable header "renderdoc_app.h" : NO <br>Check usable header "sys/inotify.h" : YES <br>Checking for function "strtof" : YES <br>Checking for function "mkostemp" : YES <br>Checking for function "memfd_create" : YES <br>Checking for function "random_r" : YES <br>Checking for function "flock" : YES <br>Checking for function "strtok_r" : YES <br>Checking for function "getrandom" : YES <br>Checking for function "qsort_s" : NO <br>Checking for function "posix_fallocate" : YES <br>Checking if "GNU qsort_r" : links: YES <br>Header "time.h" has symbol "struct timespec" : YES <br>Checking for function "thrd_create" : NO <br>Header "errno.h" has symbol "program_invocation_name" : YES <br>Header "math.h" has symbol "issignaling" : YES <br>Checking for function "posix_memalign" : YES <br>Checking whether type "struct dirent" has member "d_type" : YES <br>Checking if "strtod has locale support" : links: YES <br>Checking if "Bsymbolic" : links: YES <br>Checking if "version-script" : links: YES <br>Checking if "dynamic-list" : links: YES <br>Compiler for C supports link arguments -Wl,--build-id=sha1: YES <br>Checking for function "dlopen" : NO <br>Library dl found: YES<br>Checking for function "dladdr" with dependency -ldl: YES <br>Checking for function "dl_iterate_phdr" : YES <br>Checking for function "clock_gettime" : YES <br>Run-time dependency zlib found: YES 1.2.12<br>Run-time dependency libzstd found: YES 1.4.9<br>Run-time dependency threads found: YES<br>Checking for function "pthread_setaffinity_np" with dependency threads: YES <br>Run-time dependency expat found: YES 2.4.4<br>Library m found: YES<br>Message: libdrm 2.4.110 needed because amdgpu has the highest requirement<br>Run-time dependency libdrm_intel found: YES 2.4.111<br>Run-time dependency libdrm_amdgpu found: YES 2.4.111<br>Run-time dependency libdrm_radeon found: YES 2.4.111<br>Run-time dependency libdrm_nouveau found: YES 2.4.111<br>Run-time dependency libdrm found: YES 2.4.111<br>Run-time dependency libudev found: YES 239<br>llvm-config found: YES (/path/to/llvm/16.0.6/bin/llvm-config) 18.0.0<br>Run-time dependency LLVM (modules: amdgpu(missing), asmparser, bitreader, bitwriter, core, engine, executionengine, instcombine, ipo, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines, lto) found: NO (tried cmake and config-tool)<br>Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, amdgpu, bitreader, ipo, asmparser, native)<br>Building fallback subproject with default_library=shared<br><br>meson.build:1680:13: ERROR: Neither a subproject directory nor a llvm.wrap file was found.</font><br></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">Is this a known issue? Pardon the directory obfuscation...</font></div></div>
</blockquote></div></div>