<div><font>Hi:</font></div><div><font>I was setting up my LLVM dev environment after migrating to WSL2 and noticed the following CMake configure errors:</font></div><div><font><br></font></div><div><font>```</font></div><div><font>.....</font></div><div><font><div>-- Performing Test LLVM_HAS_ATOMICS - Success</div><div>-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG</div><div>-- Performing Test SUPPORTS_VARIADIC_MACROS_FLAG - Success</div><div>-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG</div><div>-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed</div><div>-- Performing Test HAS_MAYBE_UNINITIALIZED</div><div>-- Performing Test HAS_MAYBE_UNINITIALIZED - Success</div></font></div><div><font><div>: not found</div><div>: not found</div><div>: not found</div><div>: not found</div><div>: not found</div><div>: not found</div><div>: not found</div><div>: not found</div><div>: not found</div><div>/mnt/c/Users/1/Desktop/Development/LLVM/llvm/cmake/config.guess: 71: Syntax error: word unexpected (expecting "in")</div><div>CMake Error at cmake/modules/GetHostTriple.cmake:36 (message):</div><div>  Failed to execute</div><div>  /mnt/c/Users/1/Desktop/Development/LLVM/llvm/cmake/config.guess</div><div>Call Stack (most recent call first):</div><div>  cmake/config-ix.cmake:395 (get_host_triple)</div><div>  CMakeLists.txt:672 (include)</div></font></div><div><font>```</font></div><div><font><br></font></div><div>Quick Google shows BitCoin ran into the same issue a while ago ( https://github.com/bitcoin/bitcoin/issues/10269 ) and one of WSL developers pointed out that this is due to WSL now merges Windows native $PATH with WSL $PATH and build scripts are not able to handle the unescaped characters.</div><div>However manually removing Windows paths from $PATH results in the exact same error. Now I'm confused.</div><div><includetail><!--<![endif]--></includetail></div>