spack compiler find incorrectly populates compilers.yaml.
Steps to reproduce the issue
[sajid@xrm-backup ~]$ spack load llvm && spack compiler find
==> Added 1 new compiler to /home/sajid/.spack/linux/compilers.yaml
clang@11.0.0
Target:
==> Compilers are defined in the following files:
/home/sajid/.spack/linux/compilers.yaml
[sajid@xrm-backup ~]$ tail -n 15 .spack/linux/compilers.yaml
- compiler:
spec: 'clang@11.0.0
Target:'
paths:
cc: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang
cxx: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++
f77:
fc:
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
[sajid@xrm-backup ~]$
Debug stacktrace
[sajid@xrm-backup ~]$ spack --debug --stacktrace compiler find
lib/spack/spack/cmd/__init__.py:122 ==> [2020-10-22-12:25:56.328538] Imported compiler from built-in commands
lib/spack/spack/cmd/__init__.py:122 ==> [2020-10-22-12:25:56.330682] Imported compiler from built-in commands
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.480489] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-rename' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.483465] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-format' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.486075] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.484115] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-11' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.487826] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-apply-replacements' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.486770] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-refactor' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.490628] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-query' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.483861] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-bundler' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.491613] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-extdef-mapping' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.483120] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cpp' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.504985] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cl' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.491281] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-reorder-fields' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.504747] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-check' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.506033] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-include-fixer' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.515289] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.490896] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-scan-deps' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.519337] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-format' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.521331] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-check' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.488872] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-change-namespace' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.529532] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-extdef-mapping' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.491089] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-move' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.485144] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-wrapper' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.504349] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-doc' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.533050] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-apply-replacements' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.540117] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-tidy' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.548315] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-include-fixer' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.490292] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cl' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.515602] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-11' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.522439] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-scan-deps' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.517485] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cpp' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.530032] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-wrapper' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.579571] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-wrapper' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.583735] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-scan-deps' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.539403] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-bundler' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.600435] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-doc' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.603585] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-tidy' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.550149] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-doc' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.550583] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-reorder-fields' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.611192] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.497881] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-tidy' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.559418] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-move' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.623703] '/usr/bin/g++' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.563946] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.536529] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-refactor' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.585682] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cl' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.585929] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-reorder-fields' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.505404] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.610975] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-change-namespace' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.621060] '/usr/bin/gcc' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.536808] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-change-namespace' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.603408] '/home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-move' '--version'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.716195] '/usr/bin/g++' '-dumpversion'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.728633] '/usr/bin/gcc' '-dumpversion'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.735222] '/usr/bin/g++' '-dumpfullversion'
lib/spack/spack/util/executable.py:159 ==> [2020-10-22-12:25:56.739756] '/usr/bin/gcc' '-dumpfullversion'
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.750449] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-11
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.751137] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.751372] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cl
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.751777] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cpp
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.752169] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-format
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.752566] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-bundler
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.752909] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-wrapper
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753072] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-scan-deps
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753216] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-rename
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753358] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-refactor
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753498] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-check
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753652] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-extdef-mapping
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753798] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-apply-replacements
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.753938] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-reorder-fields
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754079] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-tidy
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754220] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-change-namespace
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754359] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-doc
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754497] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-include-fixer
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754634] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-move
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754781] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-query
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.754922] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755061] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-11
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755199] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755337] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cl
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755478] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-cpp
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755615] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-format
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755758] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-bundler
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.755896] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-wrapper
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756034] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-scan-deps
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756173] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-rename
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756312] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-refactor
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756449] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-check
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756587] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-extdef-mapping
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756768] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-apply-replacements
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.756911] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-reorder-fields
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757049] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-tidy
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757187] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-change-namespace
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757324] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-doc
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757462] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-include-fixer
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757600] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-move
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757747] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-query
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.757886] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758026] Error while executing candidate compiler /usr/bin/cc
TypeError: expected string or bytes-like object
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758174] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-format
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758313] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-bundler
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758451] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-offload-wrapper
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758592] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-scan-deps
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758739] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-rename
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.758877] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-refactor
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759014] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-check
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759152] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-extdef-mapping
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759291] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-apply-replacements
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759428] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-reorder-fields
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759566] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-tidy
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759727] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-change-namespace
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.759866] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-doc
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.760006] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-include-fixer
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.760145] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-move
lib/spack/spack/compilers/__init__.py:228 ==> [2020-10-22-12:25:56.760283] Couldn't get version for compiler /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang-query
lib/spack/spack/config.py:872 ==> [2020-10-22-12:25:56.768581] Reading config file /home/sajid/.spack/linux/compilers.yaml
lib/spack/spack/cmd/compiler.py:102 ==> [2020-10-22-12:25:56.798829] Added 1 new compiler to /home/sajid/.spack/linux/compilers.yaml
clang@11.0.0
Target:
lib/spack/spack/cmd/compiler.py:106 ==> [2020-10-22-12:25:56.799271] Compilers are defined in the following files:
/home/sajid/.spack/linux/compilers.yaml
[sajid@xrm-backup ~]$
Information on your system
[sajid@xrm-backup ~]$ spack debug report
* **Spack:** 0.15.1-1651-caab89b9c
* **Python:** 3.8.6
* **Platform:** linux-rhel8-skylake_avx512
[sajid@xrm-backup ~]$
[sajid@xrm-backup ~]$ cat .spack/linux/compilers.yaml
compilers:
- compiler:
spec: gcc@8.3.1
paths:
cc: /usr/bin/gcc
cxx: /usr/bin/g++
f77:
fc:
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: gcc@7.5.0
paths:
cc: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-7.5.0-gsqtui5tv5t6idavaycq2mbkksaqhg3i/bin/gcc
cxx: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-7.5.0-gsqtui5tv5t6idavaycq2mbkksaqhg3i/bin/g++
f77: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-7.5.0-gsqtui5tv5t6idavaycq2mbkksaqhg3i/bin/gfortran
fc: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-7.5.0-gsqtui5tv5t6idavaycq2mbkksaqhg3i/bin/gfortran
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: gcc@10.2.0
paths:
cc: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-10.2.0-4jmdzphthnycx45pluk4qg2mf3usfhf5/bin/gcc
cxx: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-10.2.0-4jmdzphthnycx45pluk4qg2mf3usfhf5/bin/g++
f77: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-10.2.0-4jmdzphthnycx45pluk4qg2mf3usfhf5/bin/gfortran
fc: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/gcc-10.2.0-4jmdzphthnycx45pluk4qg2mf3usfhf5/bin/gfortran
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: 'clang@11.0.0
Target:'
paths:
cc: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang
cxx: /home/sajid/packages/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.3.1/llvm-11.0.0-43vkqdskrqkb3k2ous5zqcm2fs7mxjpl/bin/clang++
f77:
fc:
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []
[sajid@xrm-backup ~]$
Additional information
spack compiler findincorrectly populatescompilers.yaml.Steps to reproduce the issue
Debug stacktrace
Information on your system
Additional information
spack debug reportand reported the version of Spack/Python/Platform