External Issue: Error: command not found .../clang --gcc-toolchain=/usr

18741, "jlbyrne-hpe", "Error: command not found .../clang --gcc-toolchain=/usr", "2021-11-17T17:39:32Z"

When trying to build/run chapel compiler branched from main commit 8bb386b27 (the branch is for a couple of modules I'm working on, so no changes to the compiler itself)

CHPL_TARGET_COMPILER=clang
CHPL_TARGET_CPU=native
CHPL_COMM=none
CHPL_RE2=bundled
CHPL_LLVM=bundled

I got errors throughout the build output:

Error: command not found: /home/jbyrne/chplnone/third-party/llvm/install/linux64-x86_64-gnu/bin/clang --gcc-toolchain=/usr

but nothing obviously failed.

I identified the problem as having to my PATH having a non-standard gcc in my path, so I changed my build script to set my PATH and built and I thought all would be well, but when I tried to compile, the same error was output, but the compiler didn't stop executing. Again, resetting the PATH eliminated the problem.

There's a clear workaround, but the errors are really annoying and it isn't clear how serious it is because things don't stop.

jbyrne@eleven:~/chplnone$ ( . ~/bin/chplnone.sh ; chpl --version )
Setting CHPL_HOME to /home/jbyrne/chplnone
Updating PATH to include /home/jbyrne/chplnone/bin/linux64-x86_64
and /home/jbyrne/chplnone/util
Updating MANPATH to include /home/jbyrne/chplnone/man

Error: command not found: /home/jbyrne/chplnone/third-party/llvm/install/linux64-x86_64-gnu/bin/clang --gcc-toolchain=/usr
chpl version 1.26.0 pre-release (f3661ac307)
built with LLVM version 11.0.1
Copyright 2020-2021 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)