19791, "devreal", "Chapel 1.26.0: building with GCC and CHPL_LLVM=bundled fails to find clang binary", "2022-05-10T23:01:08Z"
Summary of Problem
Building with GCC and setting CHPL_LLVM=bundled, make fails to find the clang binary, looking for third-party/llvm/install/linux64-x86_64-clang/bin/clang instead of third-party/llvm/install/linux64-x86_64-gnu/bin/clang. Notice the difference between linux64-x86_64-clang and linux64-x86_64-gnu.
Steps to Reproduce
Source Code:
Chapel release 1.26.0
// Please provide source code that will reproduce the problem.
// You can insert your code inline if it's not too long.
// Otherwise, you can attach it as a file or provide a URL to it.
// To the extent possible, providing simplified programs demonstrating the
// problem will be appreciated.
// You can also replace this section with "Associated Future Test(s)" below.
Compile command:
$ export CHPL_LLVM=bundled
$ ./configure --chpl-home=/path/to/opt/chapel-1.26.0
$ make -j16
...
cd standard/gen/linux64-x86_64-llvm && python3 /path/to/src/chapel-1.26.0/util/config/make_sys_basic_types.py ChapelSysCTypes.chpl
/bin/sh: /path/to/src/chapel-1.26.0/third-party/llvm/install/linux64-x86_64-clang/bin/clang: No such file or directory
ERROR: Found 0 max values, but 18 types were expected.
Looking for the clang binary, it's there but in a different directory: