Repository: spack/spack

Issue:
spack bootstrap not installing clingo on Perlmutter
### Steps to reproduce

@tgamblin, @eugeneswalker  @sleak-lbl 
cc: @bonachea: reported this same issue and i suspect other NERSC users will have this same issue

Spack can't bootstrap clingo for some reason and therefore spack is not usable on Perlmutter. To reproduce this error we have a script where we clone spack in a python environment and run `spack spec zlib` to get the error.

```
siddiq90@login26> cat spack_clingo_reproducer.sh 
#!/bin/bash
python3 -m venv /tmp/spack_pyenv
source /tmp/spack_pyenv/bin/activate
spack_root=/tmp/spack
rm -rf $spack_root
git clone https://github.com/spack/spack $spack_root
. $spack_root/share/spack/setup-env.sh
spack spec zlib
spack debug report
```

The current workaround is to `pip install clingo` in your environment to make sure this works without having to bootstrap clingo from source.

Here is the script

```
siddiq90@login26> cat spack_clingo_reproducer_working.sh 
#!/bin/bash
python3 -m venv /tmp/spack_pyenv
source /tmp/spack_pyenv/bin/activate
pip install clingo
spack_root=/tmp/spack
rm -rf $spack_root
git clone https://github.com/spack/spack $spack_root
. $spack_root/share/spack/setup-env.sh
spack spec zlib
spack debug report
```


```
siddiq90@login26> bash spack_clingo_reproducer_working.sh 
Collecting clingo
  Using cached clingo-5.5.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB)
Collecting cffi
  Using cached cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (405 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Installing collected packages: pycparser, cffi, clingo
Successfully installed cffi-1.15.0 clingo-5.5.1 pycparser-2.21
WARNING: You are using pip version 20.2.3; however, version 21.3.1 is available.
You should consider upgrading via the '/tmp/spack_pyenv/bin/python3 -m pip install --upgrade pip' command.
Cloning into '/tmp/spack'...
remote: Enumerating objects: 334317, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 334317 (delta 9), reused 23 (delta 4), pack-reused 334289
Receiving objects: 100% (334317/334317), 151.04 MiB | 30.48 MiB/s, done.
Resolving deltas: 100% (139425/139425), done.
Input spec
--------------------------------
zlib

Concretized
--------------------------------
zlib@1.2.11%gcc@11.2.0+optimize+pic+shared arch=cray-sles15-zen3

* **Spack:** 0.17.1-748-5091dc2124
* **Python:** 3.6.13
* **Platform:** cray-sles15-zen3
* **Concretizer:** clingo
```

Until this is fixed we rely on `pip install clingo` but this can be problematic for users using spack in a deployment process. Everyone will need to install clingo in their python environment not to mention user need to be in the correct instance, pyenv, or conda to get this working. Its not clear if user configuration in `~/.spack` has anything to do this with but 

### Error message

```
siddiq90@login26> bash spack_clingo_reproducer.sh 
Cloning into '/tmp/spack'...
remote: Enumerating objects: 334317, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 334317 (delta 9), reused 23 (delta 4), pack-reused 334289
Receiving objects: 100% (334317/334317), 151.04 MiB | 36.88 MiB/s, done.
Resolving deltas: 100% (139425/139425), done.
Input spec
--------------------------------
zlib

Concretized
--------------------------------
==> Bootstrapping clingo from pre-built binaries
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.1/build_cache/linux-rhel5-x86_64/gcc-9.3.0/clingo-bootstrap-spack/linux-rhel5-x86_64-gcc-9.3.0-clingo-bootstrap-spack-vcipwnf57slgoo7busvvkzjkk7vydeb5.spack
==> Installing "clingo-bootstrap@spack%gcc@9.3.0~docs~ipo+python build_type=Release arch=linux-rhel5-x86_64" from a buildcache
==> Bootstrapping patchelf from pre-built binaries
==> Installing patchelf-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz
==> No binary for patchelf-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz found: installing from source
==> Fetching https://github.com/NixOS/patchelf/releases/download/0.13.1/patchelf-0.13.1.tar.gz
==> No patches needed for patchelf
==> patchelf: Executing phase: 'autoreconf'
==> patchelf: Executing phase: 'configure'
==> Error: ProcessError: Command exited with status 77:
    '/tmp/siddiq90/spack-stage/spack-stage-patchelf-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz/spack-src/configure' '--prefix=/global/homes/s/siddiq90/.spack/bootstrap/store/linux-sles15-x86_64/gcc-11.2.0/patchelf-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz'

2 errors found in build log:
     7     checking for gawk... gawk
     8     checking whether make sets $(MAKE)... yes
     9     checking whether make supports nested variables... yes
     10    checking whether make supports the include directive... yes (GNU style)
     11    checking for gcc... /tmp/spack/lib/spack/env/gcc/gcc
     12    checking whether the C compiler works... no
  >> 13    configure: error: in `/tmp/siddiq90/spack-stage/spack-stage-patchelf-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz/spack-src':
  >> 14    configure: error: C compiler cannot create executables
     15    See `config.log' for more details

See build log for details:
  /tmp/siddiq90/spack-stage/spack-stage-patchelf-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz/spack-build-out.txt

==> Bootstrapping clingo from sources
[+] /usr (external bison-3.0.4-ctbrq7kgcbhzenmg4xumf45gfl37ksuw)
[+] /usr (external cmake-3.17.0-33vudcgzyifzahh4nv3eveki4ggilh33)
[+] /tmp/spack_pyenv (external python-3.6-qrgecqghr3d4fgkg3sllwfct5vqvjxw3)
==> Installing re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur
==> No binary for re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/0f/0fc45e4130a8a555d68e230d1795de0216dfe99096b61b28e67c86dfd7d86bda.tar.xz
==> No patches needed for re2c
==> re2c: Executing phase: 'autoreconf'
==> re2c: Executing phase: 'configure'
==> re2c: Executing phase: 'build'
==> re2c: Executing phase: 'install'
==> re2c: Successfully installed re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur
  Fetch: 0.13s.  Build: 22.46s.  Total: 22.59s.
[+] /global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur
==> Installing clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv
==> No binary for clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv found: installing from source
==> Ran patch() for clingo-bootstrap
==> clingo-bootstrap: Executing phase: 'cmake'
==> Error: ProcessError: Command exited with status 1:
    'cmake' '-G' 'Unix Makefiles' '-DCMAKE_INSTALL_PREFIX:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=OFF' '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF' '-DCMAKE_INSTALL_RPATH:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/lib;/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/lib64;/tmp/spack_pyenv/lib;/tmp/spack_pyenv/lib64;/opt/cray/pe/gcc/11.2.0/snos' '-DCMAKE_PREFIX_PATH:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur;/tmp/spack_pyenv' '-DCLINGO_REQUIRE_PYTHON=ON' '-DCLINGO_BUILD_WITH_PYTHON=ON' '-DPYCLINGO_USER_INSTALL=OFF' '-DPYCLINGO_USE_INSTALL_PREFIX=ON' '-DCLINGO_BUILD_WITH_LUA=OFF' '-DCLINGO_BUILD_PY_SHARED:STRING=OFF' '-DPython_EXECUTABLE:STRING=/tmp/spack_pyenv/bin/python3' '-DPython_INCLUDE_DIR:STRING=/tmp/spack_pyenv/include/python3.6m' '-DCLINGO_BUILD_APPS:STRING=OFF' '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-src'

1 error found in build log:
     13    -- Check for working CXX compiler: /tmp/spack/lib/spack/env/gcc/g++
     14    -- Check for working CXX compiler: /tmp/spack/lib/spack/env/gcc/g++ - works
     15    -- Detecting CXX compiler ABI info
     16    -- Detecting CXX compiler ABI info - done
     17    -- Detecting CXX compile features
     18    -- Detecting CXX compile features - done
  >> 19    CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
     20      Could NOT find Python (missing: Python_LIBRARIES Interpreter Development)
     21    Call Stack (most recent call first):
     22      /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
     23      /usr/share/cmake/Modules/FindPython.cmake:358 (find_package_handle_standard_args)
     24      CMakeLists.txt:130 (find_package)
     25    

See build log for details:
  /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-out.txt

==> Error: cannot bootstrap the "clingo" Python module from spec "clingo-bootstrap@spack+python %gcc target=x86_64" due to the following failures:
    'github-actions' raised RuntimeError: cannot bootstrap any of the patchelf executables from spec "patchelf@0.13.1:0.13.99 %gcc target=x86_64"
    'spack-install' raised InstallError: Terminating after first install failure: ProcessError: Command exited with status 1:
    'cmake' '-G' 'Unix Makefiles' '-DCMAKE_INSTALL_PREFIX:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=OFF' '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF' '-DCMAKE_INSTALL_RPATH:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/lib;/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/lib64;/tmp/spack_pyenv/lib;/tmp/spack_pyenv/lib64;/opt/cray/pe/gcc/11.2.0/snos' '-DCMAKE_PREFIX_PATH:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur;/tmp/spack_pyenv' '-DCLINGO_REQUIRE_PYTHON=ON' '-DCLINGO_BUILD_WITH_PYTHON=ON' '-DPYCLINGO_USER_INSTALL=OFF' '-DPYCLINGO_USE_INSTALL_PREFIX=ON' '-DCLINGO_BUILD_WITH_LUA=OFF' '-DCLINGO_BUILD_PY_SHARED:STRING=OFF' '-DPython_EXECUTABLE:STRING=/tmp/spack_pyenv/bin/python3' '-DPython_INCLUDE_DIR:STRING=/tmp/spack_pyenv/include/python3.6m' '-DCLINGO_BUILD_APPS:STRING=OFF' '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-src'
    Please run `spack -d spec zlib` for more verbose error messages
* **Spack:** 0.17.1-748-5091dc2124
* **Python:** 3.6.13
* **Platform:** cray-sles15-zen3
* **Concretizer:** clingo
```

Here is the relevant log files

```
siddiq90@login26> cat /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-out.txt
==> clingo-bootstrap: Executing phase: 'cmake'
==> [2022-01-07-11:07:32.676387] Module name: gcc/11.2.0
==> [2022-01-07-11:07:32.676788] Package directory variable prefix: GCC
==> [2022-01-07-11:07:32.683543] 'cmake' '-G' 'Unix Makefiles' '-DCMAKE_INSTALL_PREFIX:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv' '-DCMAKE_BUILD_TYPE:STRING=Release' '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=OFF' '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=OFF' '-DCMAKE_INSTALL_RPATH:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/lib;/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/lib64;/tmp/spack_pyenv/lib;/tmp/spack_pyenv/lib64;/opt/cray/pe/gcc/11.2.0/snos' '-DCMAKE_PREFIX_PATH:STRING=/global/homes/s/siddiq90/.spack/bootstrap/store/cray-sles15-x86_64/gcc-11.2.0/re2c-2.2-fcysax3ltlm4ulhrthm66ub4p7bn4eur;/tmp/spack_pyenv' '-DCLINGO_REQUIRE_PYTHON=ON' '-DCLINGO_BUILD_WITH_PYTHON=ON' '-DPYCLINGO_USER_INSTALL=OFF' '-DPYCLINGO_USE_INSTALL_PREFIX=ON' '-DCLINGO_BUILD_WITH_LUA=OFF' '-DCLINGO_BUILD_PY_SHARED:STRING=OFF' '-DPython_EXECUTABLE:STRING=/tmp/spack_pyenv/bin/python3' '-DPython_INCLUDE_DIR:STRING=/tmp/spack_pyenv/include/python3.6m' '-DCLINGO_BUILD_APPS:STRING=OFF' '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-src'
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Check for working C compiler: /tmp/spack/lib/spack/env/gcc/gcc
-- Check for working C compiler: /tmp/spack/lib/spack/env/gcc/gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /tmp/spack/lib/spack/env/gcc/g++
-- Check for working CXX compiler: /tmp/spack/lib/spack/env/gcc/g++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Python (missing: Python_LIBRARIES Interpreter Development)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindPython.cmake:358 (find_package_handle_standard_args)
  CMakeLists.txt:130 (find_package)


-- Configuring incomplete, errors occurred!
See also "/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeOutput.log".
```

Output of CMakeOutput.log

```
siddiq90@login26> cat /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeOutput.log
The system is: Linux - 5.3.18-24.75_10.0.190-cray_shasta_c - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /tmp/spack/lib/spack/env/gcc/gcc 
Build flags: 
Id flags:  

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/3.17.0/CompilerIdC/a.out"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /tmp/spack/lib/spack/env/gcc/g++ 
Build flags: 
Id flags:  

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/3.17.0/CompilerIdCXX/a.out"

Determining if the C compiler works passed with the following output:
Change Dir: /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_6e073/fast && /usr/bin/gmake -f CMakeFiles/cmTC_6e073.dir/build.make CMakeFiles/cmTC_6e073.dir/build
gmake[1]: Entering directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6e073.dir/testCCompiler.c.o
/tmp/spack/lib/spack/env/gcc/gcc    -o CMakeFiles/cmTC_6e073.dir/testCCompiler.c.o   -c /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_6e073
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6e073.dir/link.txt --verbose=1
/tmp/spack/lib/spack/env/gcc/gcc      -rdynamic CMakeFiles/cmTC_6e073.dir/testCCompiler.c.o  -o cmTC_6e073 
gmake[1]: Leaving directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'



Detecting C compiler ABI info compiled with the following output:
Change Dir: /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_8f979/fast && /usr/bin/gmake -f CMakeFiles/cmTC_8f979.dir/build.make CMakeFiles/cmTC_8f979.dir/build
gmake[1]: Entering directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o
/tmp/spack/lib/spack/env/gcc/gcc   -v -o CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake/Modules/CMakeCCompilerABI.c
Using built-in specs.
COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/gcc
Target: x86_64-suse-linux
Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c,c++,fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 20210728 (Cray Inc.) (GCC) 
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-dumpdir' 'CMakeFiles/cmTC_8f979.dir/'
 /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/cc1 -quiet -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include -D __CRAY_X86_ROME -D __CRAYXT_COMPUTE_LINUX_TARGET -D __TARGET_LINUX__ /usr/share/cmake/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_8f979.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -march=znver2 -version -o /tmp/ccG9c7Zk.s
GNU C17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)
	compiled by GNU C version 11.2.0 20210728 (Cray Inc.), GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3, isl version isl-0.15-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../x86_64-suse-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include
 /opt/cray/pe/dsmml/0.2.2/dsmml//include
 /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include
 /usr/local/include
 /opt/cray/pe/gcc/11.2.0/snos/include
 /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed
 /usr/include
End of search list.
GNU C17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)
	compiled by GNU C version 11.2.0 20210728 (Cray Inc.), GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3, isl version isl-0.15-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: badfa565db16155a17a1c834f67f3849
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-dumpdir' 'CMakeFiles/cmTC_8f979.dir/'
 as -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include --64 -o CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o /tmp/ccG9c7Zk.s
GNU assembler version 2.35.1 (x86_64-suse-linux) using BFD version (GNU Binutils; SUSE Linux Enterprise 15) 2.35.1.20201123-7.18
COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/
LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-dumpdir' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.'
Linking C executable cmTC_8f979
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8f979.dir/link.txt --verbose=1
/tmp/spack/lib/spack/env/gcc/gcc     -v -rdynamic CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o  -o cmTC_8f979 
Using built-in specs.
COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/gcc
COLLECT_LTO_WRAPPER=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c,c++,fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 20210728 (Cray Inc.) (GCC) 
COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/
LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-rdynamic' '-o' 'cmTC_8f979' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib' '-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib' '-dumpdir' 'cmTC_8f979.'
 /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/collect2 -plugin /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/liblto_plugin.so -plugin-opt=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccRswqAo.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_8f979 /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtbegin.o -L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../.. CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o -rpath=/opt/cray/pe/gcc-libs -Bdynamic --as-needed -lmpi_gnu_91 --no-as-needed --as-needed -ldsmml --no-as-needed --as-needed -lgfortran -lquadmath --no-as-needed --as-needed -lmvec --no-as-needed --as-needed -lm --no-as-needed --as-needed -lpthread --no-as-needed --disable-new-dtags -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtend.o /usr/lib/../lib64/crtn.o
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-rdynamic' '-o' 'cmTC_8f979' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib' '-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib' '-dumpdir' 'cmTC_8f979.'
gmake[1]: Leaving directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'



Parsed C implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include]
    add: [/opt/cray/pe/dsmml/0.2.2/dsmml//include]
    add: [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include]
    add: [/usr/local/include]
    add: [/opt/cray/pe/gcc/11.2.0/snos/include]
    add: [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed]
    add: [/usr/include]
  end of search list found
  collapse include dir [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include] ==> [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include]
  collapse include dir [/opt/cray/pe/dsmml/0.2.2/dsmml//include] ==> [/opt/cray/pe/dsmml/0.2.2/dsmml/include]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include]
  collapse include dir [/usr/local/include] ==> [/usr/local/include]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/include] ==> [/opt/cray/pe/gcc/11.2.0/snos/include]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed]
  collapse include dir [/usr/include] ==> [/usr/include]
  implicit include dirs: [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include;/opt/cray/pe/dsmml/0.2.2/dsmml/include;/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include;/usr/local/include;/opt/cray/pe/gcc/11.2.0/snos/include;/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed;/usr/include]


Parsed C implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_8f979/fast && /usr/bin/gmake -f CMakeFiles/cmTC_8f979.dir/build.make CMakeFiles/cmTC_8f979.dir/build]
  ignore line: [gmake[1]: Entering directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp']
  ignore line: [Building C object CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o]
  ignore line: [/tmp/spack/lib/spack/env/gcc/gcc   -v -o CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake/Modules/CMakeCCompilerABI.c]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/gcc]
  ignore line: [Target: x86_64-suse-linux]
  ignore line: [Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c c++ fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib]
  ignore line: [Thread model: posix]
  ignore line: [Supported LTO compression algorithms: zlib]
  ignore line: [gcc version 11.2.0 20210728 (Cray Inc.) (GCC) ]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-dumpdir' 'CMakeFiles/cmTC_8f979.dir/']
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/cc1 -quiet -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include -D __CRAY_X86_ROME -D __CRAYXT_COMPUTE_LINUX_TARGET -D __TARGET_LINUX__ /usr/share/cmake/Modules/CMakeCCompilerABI.c -quiet -dumpdir CMakeFiles/cmTC_8f979.dir/ -dumpbase CMakeCCompilerABI.c.c -dumpbase-ext .c -march=znver2 -version -o /tmp/ccG9c7Zk.s]
  ignore line: [GNU C17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)]
  ignore line: [	compiled by GNU C version 11.2.0 20210728 (Cray Inc.)  GMP version 6.0.0  MPFR version 3.1.3  MPC version 1.0.3  isl version isl-0.15-GMP]
  ignore line: []
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [ignoring nonexistent directory "/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../x86_64-suse-linux/include"]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include]
  ignore line: [ /opt/cray/pe/dsmml/0.2.2/dsmml//include]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include]
  ignore line: [ /usr/local/include]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/include]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed]
  ignore line: [ /usr/include]
  ignore line: [End of search list.]
  ignore line: [GNU C17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)]
  ignore line: [	compiled by GNU C version 11.2.0 20210728 (Cray Inc.)  GMP version 6.0.0  MPFR version 3.1.3  MPC version 1.0.3  isl version isl-0.15-GMP]
  ignore line: []
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [Compiler executable checksum: badfa565db16155a17a1c834f67f3849]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-dumpdir' 'CMakeFiles/cmTC_8f979.dir/']
  ignore line: [ as -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include --64 -o CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o /tmp/ccG9c7Zk.s]
  ignore line: [GNU assembler version 2.35.1 (x86_64-suse-linux) using BFD version (GNU Binutils]
  ignore line: [ SUSE Linux Enterprise 15) 2.35.1.20201123-7.18]
  ignore line: [COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/]
  ignore line: [LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-dumpdir' 'CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.']
  ignore line: [Linking C executable cmTC_8f979]
  ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8f979.dir/link.txt --verbose=1]
  ignore line: [/tmp/spack/lib/spack/env/gcc/gcc     -v -rdynamic CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o  -o cmTC_8f979 ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/gcc]
  ignore line: [COLLECT_LTO_WRAPPER=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper]
  ignore line: [Target: x86_64-suse-linux]
  ignore line: [Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c c++ fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib]
  ignore line: [Thread model: posix]
  ignore line: [Supported LTO compression algorithms: zlib]
  ignore line: [gcc version 11.2.0 20210728 (Cray Inc.) (GCC) ]
  ignore line: [COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/]
  ignore line: [LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-rdynamic' '-o' 'cmTC_8f979' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib' '-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib' '-dumpdir' 'cmTC_8f979.']
  link line: [ /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/collect2 -plugin /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/liblto_plugin.so -plugin-opt=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccRswqAo.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_8f979 /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtbegin.o -L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../.. CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o -rpath=/opt/cray/pe/gcc-libs -Bdynamic --as-needed -lmpi_gnu_91 --no-as-needed --as-needed -ldsmml --no-as-needed --as-needed -lgfortran -lquadmath --no-as-needed --as-needed -lmvec --no-as-needed --as-needed -lm --no-as-needed --as-needed -lpthread --no-as-needed --disable-new-dtags -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtend.o /usr/lib/../lib64/crtn.o]
    arg [/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/collect2] ==> ignore
    arg [-plugin] ==> ignore
    arg [/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/liblto_plugin.so] ==> ignore
    arg [-plugin-opt=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper] ==> ignore
    arg [-plugin-opt=-fresolution=/tmp/ccRswqAo.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [-export-dynamic] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_8f979] ==> ignore
    arg [/usr/lib/../lib64/crt1.o] ==> ignore
    arg [/usr/lib/../lib64/crti.o] ==> ignore
    arg [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtbegin.o] ==> ignore
    arg [-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib] ==> dir [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib]
    arg [-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib] ==> dir [/opt/cray/pe/dsmml/0.2.2/dsmml//lib]
    arg [-L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0] ==> dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0]
    arg [-L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64] ==> dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64]
    arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
    arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
    arg [-L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../..] ==> dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../..]
    arg [CMakeFiles/cmTC_8f979.dir/CMakeCCompilerABI.c.o] ==> ignore
    arg [-rpath=/opt/cray/pe/gcc-libs] ==> ignore
    arg [-Bdynamic] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lmpi_gnu_91] ==> lib [mpi_gnu_91]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-ldsmml] ==> lib [dsmml]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lgfortran] ==> lib [gfortran]
    arg [-lquadmath] ==> lib [quadmath]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lmvec] ==> lib [mvec]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lm] ==> lib [m]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lpthread] ==> lib [pthread]
    arg [--no-as-needed] ==> ignore
    arg [--disable-new-dtags] ==> ignore
    arg [-lgcc] ==> lib [gcc]
    arg [--push-state] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--pop-state] ==> ignore
    arg [-lc] ==> lib [c]
    arg [-lgcc] ==> lib [gcc]
    arg [--push-state] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [--pop-state] ==> ignore
    arg [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtend.o] ==> ignore
    arg [/usr/lib/../lib64/crtn.o] ==> ignore
  collapse library dir [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib] ==> [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib]
  collapse library dir [/opt/cray/pe/dsmml/0.2.2/dsmml//lib] ==> [/opt/cray/pe/dsmml/0.2.2/dsmml/lib]
  collapse library dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0]
  collapse library dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib64]
  collapse library dir [/lib/../lib64] ==> [/lib64]
  collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64]
  collapse library dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../..] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib]
  implicit libs: [mpi_gnu_91;dsmml;gfortran;quadmath;mvec;m;pthread;gcc;gcc_s;c;gcc;gcc_s]
  implicit dirs: [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib;/opt/cray/pe/dsmml/0.2.2/dsmml/lib;/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0;/opt/cray/pe/gcc/11.2.0/snos/lib64;/lib64;/usr/lib64;/opt/cray/pe/gcc/11.2.0/snos/lib]
  implicit fwks: []


Determining if the CXX compiler works passed with the following output:
Change Dir: /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_10158/fast && /usr/bin/gmake -f CMakeFiles/cmTC_10158.dir/build.make CMakeFiles/cmTC_10158.dir/build
gmake[1]: Entering directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_10158.dir/testCXXCompiler.cxx.o
/tmp/spack/lib/spack/env/gcc/g++     -o CMakeFiles/cmTC_10158.dir/testCXXCompiler.cxx.o -c /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_10158
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_10158.dir/link.txt --verbose=1
/tmp/spack/lib/spack/env/gcc/g++       -rdynamic CMakeFiles/cmTC_10158.dir/testCXXCompiler.cxx.o  -o cmTC_10158 
gmake[1]: Leaving directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'



Detecting CXX compiler ABI info compiled with the following output:
Change Dir: /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/gmake cmTC_433cc/fast && /usr/bin/gmake -f CMakeFiles/cmTC_433cc.dir/build.make CMakeFiles/cmTC_433cc.dir/build
gmake[1]: Entering directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o
/tmp/spack/lib/spack/env/gcc/g++    -v -o CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp
Using built-in specs.
COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/g++
Target: x86_64-suse-linux
Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c,c++,fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 20210728 (Cray Inc.) (GCC) 
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-shared-libgcc' '-dumpdir' 'CMakeFiles/cmTC_433cc.dir/'
 /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/cc1plus -quiet -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include -D_GNU_SOURCE -D __CRAY_X86_ROME -D __CRAYXT_COMPUTE_LINUX_TARGET -D __TARGET_LINUX__ /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_433cc.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -march=znver2 -version -o /tmp/ccRqY5GP.s
GNU C++17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)
	compiled by GNU C version 11.2.0 20210728 (Cray Inc.), GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3, isl version isl-0.15-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../x86_64-suse-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include
 /opt/cray/pe/dsmml/0.2.2/dsmml//include
 /opt/cray/pe/gcc/11.2.0/snos/include/g++
 /opt/cray/pe/gcc/11.2.0/snos/include/g++/x86_64-suse-linux
 /opt/cray/pe/gcc/11.2.0/snos/include/g++/backward
 /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include
 /usr/local/include
 /opt/cray/pe/gcc/11.2.0/snos/include
 /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed
 /usr/include
End of search list.
GNU C++17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)
	compiled by GNU C version 11.2.0 20210728 (Cray Inc.), GMP version 6.0.0, MPFR version 3.1.3, MPC version 1.0.3, isl version isl-0.15-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3d4a383112e4401915c216e400980bff
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-shared-libgcc' '-dumpdir' 'CMakeFiles/cmTC_433cc.dir/'
 as -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include --64 -o CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccRqY5GP.s
GNU assembler version 2.35.1 (x86_64-suse-linux) using BFD version (GNU Binutils; SUSE Linux Enterprise 15) 2.35.1.20201123-7.18
COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/
LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-shared-libgcc' '-dumpdir' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.'
Linking CXX executable cmTC_433cc
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_433cc.dir/link.txt --verbose=1
/tmp/spack/lib/spack/env/gcc/g++      -v -rdynamic CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o  -o cmTC_433cc 
Using built-in specs.
COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/g++
COLLECT_LTO_WRAPPER=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c,c++,fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 20210728 (Cray Inc.) (GCC) 
COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/
LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-rdynamic' '-o' 'cmTC_433cc' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib' '-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib' '-shared-libgcc' '-dumpdir' 'cmTC_433cc.'
 /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/collect2 -plugin /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/liblto_plugin.so -plugin-opt=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccx7ud9T.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_433cc /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtbegin.o -L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../.. CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o -rpath=/opt/cray/pe/gcc-libs -Bdynamic --as-needed -lmpi_gnu_91 --no-as-needed --as-needed -ldsmml --no-as-needed --as-needed -lgfortran -lquadmath --no-as-needed --as-needed -lmvec --no-as-needed --as-needed -lm --no-as-needed --as-needed -lpthread --no-as-needed --disable-new-dtags -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtend.o /usr/lib/../lib64/crtn.o
COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-rdynamic' '-o' 'cmTC_433cc' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib' '-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib' '-shared-libgcc' '-dumpdir' 'cmTC_433cc.'
gmake[1]: Leaving directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp'



Parsed CXX implicit include dir info from above output: rv=done
  found start of include info
  found start of implicit include info
    add: [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include]
    add: [/opt/cray/pe/dsmml/0.2.2/dsmml//include]
    add: [/opt/cray/pe/gcc/11.2.0/snos/include/g++]
    add: [/opt/cray/pe/gcc/11.2.0/snos/include/g++/x86_64-suse-linux]
    add: [/opt/cray/pe/gcc/11.2.0/snos/include/g++/backward]
    add: [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include]
    add: [/usr/local/include]
    add: [/opt/cray/pe/gcc/11.2.0/snos/include]
    add: [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed]
    add: [/usr/include]
  end of search list found
  collapse include dir [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include] ==> [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include]
  collapse include dir [/opt/cray/pe/dsmml/0.2.2/dsmml//include] ==> [/opt/cray/pe/dsmml/0.2.2/dsmml/include]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/include/g++] ==> [/opt/cray/pe/gcc/11.2.0/snos/include/g++]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/include/g++/x86_64-suse-linux] ==> [/opt/cray/pe/gcc/11.2.0/snos/include/g++/x86_64-suse-linux]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/include/g++/backward] ==> [/opt/cray/pe/gcc/11.2.0/snos/include/g++/backward]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include]
  collapse include dir [/usr/local/include] ==> [/usr/local/include]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/include] ==> [/opt/cray/pe/gcc/11.2.0/snos/include]
  collapse include dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed]
  collapse include dir [/usr/include] ==> [/usr/include]
  implicit include dirs: [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include;/opt/cray/pe/dsmml/0.2.2/dsmml/include;/opt/cray/pe/gcc/11.2.0/snos/include/g++;/opt/cray/pe/gcc/11.2.0/snos/include/g++/x86_64-suse-linux;/opt/cray/pe/gcc/11.2.0/snos/include/g++/backward;/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include;/usr/local/include;/opt/cray/pe/gcc/11.2.0/snos/include;/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed;/usr/include]


Parsed CXX implicit link information from above output:
  link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
  ignore line: [Change Dir: /tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp]
  ignore line: []
  ignore line: [Run Build Command(s):/usr/bin/gmake cmTC_433cc/fast && /usr/bin/gmake -f CMakeFiles/cmTC_433cc.dir/build.make CMakeFiles/cmTC_433cc.dir/build]
  ignore line: [gmake[1]: Entering directory '/tmp/siddiq90/spack-stage/spack-stage-clingo-bootstrap-spack-ho7nswbllqrov7vvsrsw22kad7iu7mqv/spack-build-ho7nswb/CMakeFiles/CMakeTmp']
  ignore line: [Building CXX object CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o]
  ignore line: [/tmp/spack/lib/spack/env/gcc/g++    -v -o CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/g++]
  ignore line: [Target: x86_64-suse-linux]
  ignore line: [Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c c++ fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib]
  ignore line: [Thread model: posix]
  ignore line: [Supported LTO compression algorithms: zlib]
  ignore line: [gcc version 11.2.0 20210728 (Cray Inc.) (GCC) ]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-shared-libgcc' '-dumpdir' 'CMakeFiles/cmTC_433cc.dir/']
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/cc1plus -quiet -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include -D_GNU_SOURCE -D __CRAY_X86_ROME -D __CRAYXT_COMPUTE_LINUX_TARGET -D __TARGET_LINUX__ /usr/share/cmake/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_433cc.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -march=znver2 -version -o /tmp/ccRqY5GP.s]
  ignore line: [GNU C++17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)]
  ignore line: [	compiled by GNU C version 11.2.0 20210728 (Cray Inc.)  GMP version 6.0.0  MPFR version 3.1.3  MPC version 1.0.3  isl version isl-0.15-GMP]
  ignore line: []
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [ignoring nonexistent directory "/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../x86_64-suse-linux/include"]
  ignore line: [#include "..." search starts here:]
  ignore line: [#include <...> search starts here:]
  ignore line: [ /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include]
  ignore line: [ /opt/cray/pe/dsmml/0.2.2/dsmml//include]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/include/g++]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/include/g++/x86_64-suse-linux]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/include/g++/backward]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include]
  ignore line: [ /usr/local/include]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/include]
  ignore line: [ /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/include-fixed]
  ignore line: [ /usr/include]
  ignore line: [End of search list.]
  ignore line: [GNU C++17 (GCC) version 11.2.0 20210728 (Cray Inc.) (x86_64-suse-linux)]
  ignore line: [	compiled by GNU C version 11.2.0 20210728 (Cray Inc.)  GMP version 6.0.0  MPFR version 3.1.3  MPC version 1.0.3  isl version isl-0.15-GMP]
  ignore line: []
  ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
  ignore line: [Compiler executable checksum: 3d4a383112e4401915c216e400980bff]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-shared-libgcc' '-dumpdir' 'CMakeFiles/cmTC_433cc.dir/']
  ignore line: [ as -v -I /opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include -I /opt/cray/pe/dsmml/0.2.2/dsmml//include --64 -o CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccRqY5GP.s]
  ignore line: [GNU assembler version 2.35.1 (x86_64-suse-linux) using BFD version (GNU Binutils]
  ignore line: [ SUSE Linux Enterprise 15) 2.35.1.20201123-7.18]
  ignore line: [COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/]
  ignore line: [LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-o' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-shared-libgcc' '-dumpdir' 'CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.']
  ignore line: [Linking CXX executable cmTC_433cc]
  ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_433cc.dir/link.txt --verbose=1]
  ignore line: [/tmp/spack/lib/spack/env/gcc/g++      -v -rdynamic CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o  -o cmTC_433cc ]
  ignore line: [Using built-in specs.]
  ignore line: [COLLECT_GCC=/opt/cray/pe/gcc/11.2.0/bin/../snos/bin/g++]
  ignore line: [COLLECT_LTO_WRAPPER=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper]
  ignore line: [Target: x86_64-suse-linux]
  ignore line: [Configured with: ../cpe-gcc-11.2.0-202108140355.9bf1fd589a5c1/configure --prefix=/opt/cray/pe/gcc/11.2.0/snos --disable-nls --libdir=/opt/cray/pe/gcc/11.2.0/snos/lib --enable-languages=c c++ fortran --with-gxx-include-dir=/opt/cray/pe/gcc/11.2.0/snos/include/g++ --with-slibdir=/opt/cray/pe/gcc/11.2.0/snos/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --build=x86_64-suse-linux --with-ppl --with-cloog --disable-multilib]
  ignore line: [Thread model: posix]
  ignore line: [Supported LTO compression algorithms: zlib]
  ignore line: [gcc version 11.2.0 20210728 (Cray Inc.) (GCC) ]
  ignore line: [COMPILER_PATH=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/]
  ignore line: [LIBRARY_PATH=/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../:/lib/:/usr/lib/]
  ignore line: [COLLECT_GCC_OPTIONS='-march=znver2' '-D' '__CRAY_X86_ROME' '-D' '__CRAYXT_COMPUTE_LINUX_TARGET' '-D' '__TARGET_LINUX__' '-v' '-rdynamic' '-o' 'cmTC_433cc' '-I' '/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/include' '-I' '/opt/cray/pe/dsmml/0.2.2/dsmml//include' '-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib' '-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib' '-shared-libgcc' '-dumpdir' 'cmTC_433cc.']
  link line: [ /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/collect2 -plugin /opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/liblto_plugin.so -plugin-opt=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccx7ud9T.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_433cc /usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtbegin.o -L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../.. CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o -rpath=/opt/cray/pe/gcc-libs -Bdynamic --as-needed -lmpi_gnu_91 --no-as-needed --as-needed -ldsmml --no-as-needed --as-needed -lgfortran -lquadmath --no-as-needed --as-needed -lmvec --no-as-needed --as-needed -lm --no-as-needed --as-needed -lpthread --no-as-needed --disable-new-dtags -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtend.o /usr/lib/../lib64/crtn.o]
    arg [/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/collect2] ==> ignore
    arg [-plugin] ==> ignore
    arg [/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/liblto_plugin.so] ==> ignore
    arg [-plugin-opt=/opt/cray/pe/gcc/11.2.0/snos/libexec/gcc/x86_64-suse-linux/11.2.0/lto-wrapper] ==> ignore
    arg [-plugin-opt=-fresolution=/tmp/ccx7ud9T.res] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [-plugin-opt=-pass-through=-lc] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
    arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
    arg [--eh-frame-hdr] ==> ignore
    arg [-m] ==> ignore
    arg [elf_x86_64] ==> ignore
    arg [-export-dynamic] ==> ignore
    arg [-dynamic-linker] ==> ignore
    arg [/lib64/ld-linux-x86-64.so.2] ==> ignore
    arg [-o] ==> ignore
    arg [cmTC_433cc] ==> ignore
    arg [/usr/lib/../lib64/crt1.o] ==> ignore
    arg [/usr/lib/../lib64/crti.o] ==> ignore
    arg [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtbegin.o] ==> ignore
    arg [-L/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib] ==> dir [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib]
    arg [-L/opt/cray/pe/dsmml/0.2.2/dsmml//lib] ==> dir [/opt/cray/pe/dsmml/0.2.2/dsmml//lib]
    arg [-L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0] ==> dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0]
    arg [-L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64] ==> dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64]
    arg [-L/lib/../lib64] ==> dir [/lib/../lib64]
    arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64]
    arg [-L/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../..] ==> dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../..]
    arg [CMakeFiles/cmTC_433cc.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
    arg [-rpath=/opt/cray/pe/gcc-libs] ==> ignore
    arg [-Bdynamic] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lmpi_gnu_91] ==> lib [mpi_gnu_91]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-ldsmml] ==> lib [dsmml]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lgfortran] ==> lib [gfortran]
    arg [-lquadmath] ==> lib [quadmath]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lmvec] ==> lib [mvec]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lm] ==> lib [m]
    arg [--no-as-needed] ==> ignore
    arg [--as-needed] ==> ignore
    arg [-lpthread] ==> lib [pthread]
    arg [--no-as-needed] ==> ignore
    arg [--disable-new-dtags] ==> ignore
    arg [-lstdc++] ==> lib [stdc++]
    arg [-lm] ==> lib [m]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [-lc] ==> lib [c]
    arg [-lgcc_s] ==> lib [gcc_s]
    arg [-lgcc] ==> lib [gcc]
    arg [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/crtend.o] ==> ignore
    arg [/usr/lib/../lib64/crtn.o] ==> ignore
  collapse library dir [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib] ==> [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib]
  collapse library dir [/opt/cray/pe/dsmml/0.2.2/dsmml//lib] ==> [/opt/cray/pe/dsmml/0.2.2/dsmml/lib]
  collapse library dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0]
  collapse library dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../../../lib64] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib64]
  collapse library dir [/lib/../lib64] ==> [/lib64]
  collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64]
  collapse library dir [/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0/../../..] ==> [/opt/cray/pe/gcc/11.2.0/snos/lib]
  implicit libs: [mpi_gnu_91;dsmml;gfortran;quadmath;mvec;m;pthread;stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
  implicit dirs: [/opt/cray/pe/mpich/8.1.11/ofi/gnu/9.1/lib;/opt/cray/pe/dsmml/0.2.2/dsmml/lib;/opt/cray/pe/gcc/11.2.0/snos/lib/gcc/x86_64-suse-linux/11.2.0;/opt/cray/pe/gcc/11.2.0/snos/lib64;/lib64;/usr/lib64;/opt/cray/pe/gcc/11.2.0/snos/lib]
  implicit fwks: []
```

### Information on your system

```
* **Spack:** 0.17.1-748-5091dc2124
* **Python:** 3.6.13
* **Platform:** cray-sles15-zen3
* **Concretizer:** clingo
```

### General information

- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform
- [X] I have searched the issues of this repo and believe this is not a duplicate
- [X] I have run the failing commands in debug mode and reported the output


Discussion:
@alalazo @becker33 
I see the same problem on perlmutter.  Starting from scratch, for me,
the first failure is trying to build patchelf as part of bootstrapping.

First, `spack arch` reports the same answer for both FE and BE.
SLES15 is right for the FE, but I'm not so sure for the BE.

```
cray-sles15-zen3
```

The default modules are:

```
  1) craype-x86-rome                         8) cray-dsmml/0.2.2
  2) libfabric/1.11.0.4.75                   9) cray-mpich/8.1.12
  3) craype-network-ofi                     10) cray-libsci/21.08.1.2
  4) perftools-base/21.12.0                 11) PrgEnv-nvidia/8.2.0
  5) xpmem/2.2.40-2.1_3.9__g3cf3325.shasta  12) xalt/2.10.2
  6) nvidia/21.9                            13) darshan/3.2.1
  7) craype/2.7.13
```

`spack compiler find` identifies these compilers:

```
-- aocc sles15-any ----------------------------------------------
aocc@8.2.0  aocc@3.1.0  aocc@3.1.0

-- cce sles15-any -----------------------------------------------
cce@13.0.0

-- gcc sles15-any -----------------------------------------------
gcc@11.2.0  gcc@10.3.0  gcc@9.3.0
```

The three gcc compilers all look like this with the CC/cc Cray wrappers.

```
gcc@11.2.0:
	paths:
		cc = cc
		cxx = CC
		f77 = ftn
		fc = ftn
	modules  = ['PrgEnv-gnu', 'gcc/11.2.0']
	operating system  = sles15
```

Also, /usr/bin/gcc 7.5.0 is not found.
I don't get any more compilers with PrgEnv-gnu.

Triggering bootstrap with `spack solve` fails building patchelf with:

```
     11    checking for gcc... /global/u1/k/krentel/boot/spack-repo/lib/spack/env/gcc/gcc
     12    checking whether the C compiler works... no
  >> 13    configure: error: in `/global/u1/k/krentel/boot/spack-repo/build-stage/spack-stage-patchel
           f-0.13.1-svdzvfhlk5otwcbzhkieqbjancolgtiz/spack-src':
  >> 14    configure: error: C compiler cannot create executables
     15    See `config.log' for more details
```

config.log has:

```
configure:2870: checking whether the C compiler works
configure:2892: /global/u1/k/krentel/boot/spack-repo/lib/spack/env/gcc/gcc    conftest.c  >&5
/usr/bin/ld: warning: libfabric.so.1, needed by /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_9
1.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_91.so: undefined reference to `fi_ve
rsion@FABRIC_1.0'
/usr/bin/ld: /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_91.so: undefined reference to `fi_du
pinfo@FABRIC_1.3'
/usr/bin/ld: /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_91.so: undefined reference to `fi_st
rerror@FABRIC_1.0'
/usr/bin/ld: /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_91.so: undefined reference to `fi_fr
eeinfo@FABRIC_1.3'
/usr/bin/ld: /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_91.so: undefined reference to `fi_fa
bric@FABRIC_1.1'
/usr/bin/ld: /opt/cray/pe/mpich/8.1.12/ofi/gnu/9.1/lib/libmpi_gnu_91.so: undefined reference to `fi_ge
tinfo@FABRIC_1.3'
collect2: error: ld returned 1 exit status
configure:2896: $? = 1
configure:2934: result: no
```

The undefined references to libfabric suggests something getting mixed
up between BE and FE.  Libfabric is only for the BE and shouldn't be
used for a FE build.

And if I let the bootstrapping run to completion, something strange happens.
It hits the patchelf error, installs clingo from source and proceeds to spec/solve.

But somehow, it's not registering that it is bootstrapped.
Because on EVERY spec/solve, it reinstalls clingo from source.
> Because on EVERY spec/solve, it reinstalls clingo from source.

Are you using environments? I can't remember the issue, but that could be part of it.
> The undefined references to libfabric suggests something getting mixed
up between BE and FE. Libfabric is only for the BE and shouldn't be
used for a FE build.

Could this be more cray strangeness like we saw on Spock where libfabric needs to be included in the compiler module list? Although, I would be even happier if there was a less hacky fix to this.
I fixed this for myself my manually installing patchelf-0.13.1 locally and adding it to my bin.

I think it would be the simplest fix if perlmutter just had a local installation of patchelf installed in /usr/bin. @shahzebsiddiqui
A workaround is unsetting MODULEPATH just for bootstrapping:
```console
> spack find -b
==> Showing internal bootstrap store at "/global/homes/c/culpo/.spack/bootstrap/store"
==> 0 installed packages

> MODULEPATH='' spack solve zlib
==> Bootstrapping clingo from pre-built binaries
==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.1/build_cache/linux-rhel5-x86_64/gcc-9.3.0/clingo-bootstrap-spack/linux-rhel5-x86_64-gcc-9.3.0-clingo-bootstrap-spack-vcipwnf57slgoo7busvvkzjkk7vydeb5.spack
==> Installing "clingo-bootstrap@spack%gcc@9.3.0~docs~ipo+python build_type=Release arch=linux-rhel5-x86_64" from a buildcache
==> Bootstrapping patchelf from pre-built binaries
==> Installing patchelf-0.13.1-ve6zc4mmlfvsjbuqw6ynd3e6ghddueok
==> No binary for patchelf-0.13.1-ve6zc4mmlfvsjbuqw6ynd3e6ghddueok found: installing from source
==> Using cached archive: /global/u1/c/culpo/github/spack/var/spack/cache/_source-cache/archive/08/08c0237e89be74d61ddf8f6ff218439cdd62af572d568fb38913b53e222831de.tar.gz
==> No patches needed for patchelf
==> patchelf: Executing phase: 'autoreconf'
==> patchelf: Executing phase: 'configure'
==> patchelf: Executing phase: 'build'
==> patchelf: Executing phase: 'install'
==> patchelf: Successfully installed patchelf-0.13.1-ve6zc4mmlfvsjbuqw6ynd3e6ghddueok
  Fetch: 0.00s.  Build: 6.37s.  Total: 6.37s.
[+] /global/homes/c/culpo/.spack/bootstrap/store/linux-sles15-x86_64/gcc-7.5.0/patchelf-0.13.1-ve6zc4mmlfvsjbuqw6ynd3e6ghddueok
==> Best of 4 considered solutions.
==> Optimization Criteria:
  Priority  Criterion                                            Installed  ToBuild
  1         number of packages to build (vs. reuse)                      -        0
  2         deprecated versions used                                     0        0
  3         version weight                                               0        0
  4         number of non-default variants (roots)                       0        0
  5         preferred providers for roots                                0        0
  6         default values of variants not being used (roots)            0        0
  7         number of non-default variants (non-roots)                   0        0
  8         preferred providers (non-roots)                              0        0
  9         compiler mismatches                                          0        0
  10        OS mismatches                                                0        0
  11        non-preferred OS's                                           0        0
  12        version badness                                              0        0
  13        default values of variants not being used (non-roots)        0        0
  14        non-preferred compilers                                      0        0
  15        target mismatches                                            0        0
  16        non-preferred targets                                        0        2

zlib@1.2.11%gcc@7.5.0+optimize+pic+shared arch=linux-sles15-zen
```
After that you can use Spack normally. Unsetting `MODULEPATH` has the effect to detect the host like a `sles15` and skip the custom code written for PrgEnv (which is not only not needed for bootstrapping, but apparently getting in the way).
I think another workaround, since cori and perlmutter share a file
system, is to bootstrap on cori and then (I think) that will work on
perlmutter.  I haven't tested this, but I'm pretty sure perlmutter
used to work until I tried to start from scratch and carefully verify
all the steps.

But my concern is that if Cray/PrgEnv is not detected correctly, then
maybe other things will also fail over confusion between FE/BE.
Right now I just use pip to install clingo and that works. Unsetting MODULEPATH to get this to work is reasonable assuming `module restore` gets us to sane environment which it does. I am thinking from aspect of CI we have a clean python environment where we do the builds and getting spack to work since we are cloning from scratch we expect that clingo is needed. If patchelf is required as system library we can see if this can be installed 
> Right now I just use pip to install clingo and that works. 

Yes. In general if a user takes care of setting up the interpreter so that all dependencies are satisfied bootstrapping is not used and can be disabled.

> Unsetting MODULEPATH to get this to work is reasonable assuming module restore gets us to sane environment which it does.

This can be done, as a workaround, on the command line for just the command that bootstraps clingo.

Note that besides this specific issue, that deals with bootstrapping, @mwkrentel is right in saying that the broader issue is Spack not getting the backend of Perlmutter right (due to some files that moved to another location with respect to other Cray machines).

Resolving patch:
diff --git a/lib/spack/spack/bootstrap.py b/lib/spack/spack/bootstrap.py
--- a/lib/spack/spack/bootstrap.py
+++ b/lib/spack/spack/bootstrap.py
@@ -33,6 +33,7 @@
 import spack.spec
 import spack.store
 import spack.user_environment
+import spack.util.environment
 import spack.util.executable
 import spack.util.path
 
@@ -65,12 +66,6 @@ def _try_import_from_store(module, query_spec, query_info=None):
     """
     # If it is a string assume it's one of the root specs by this module
     if isinstance(query_spec, six.string_types):
-        bincache_platform = spack.platforms.real_host()
-        if str(bincache_platform) == 'cray':
-            bincache_platform = spack.platforms.linux.Linux()
-            with spack.platforms.use_platform(bincache_platform):
-                query_spec = str(spack.spec.Spec(query_spec))
-
         # We have to run as part of this python interpreter
         query_spec += ' ^' + spec_for_current_python()
 
@@ -231,10 +226,6 @@ def _spec_and_platform(abstract_spec_str):
         abstract_spec = spack.spec.Spec(abstract_spec_str)
         # On Cray we want to use Linux binaries if available from mirrors
         bincache_platform = spack.platforms.real_host()
-        if str(bincache_platform) == 'cray':
-            bincache_platform = spack.platforms.Linux()
-            with spack.platforms.use_platform(bincache_platform):
-                abstract_spec = spack.spec.Spec(abstract_spec_str)
         return abstract_spec, bincache_platform
 
     def _read_metadata(self, package_name):
@@ -372,9 +363,6 @@ def try_import(self, module, abstract_spec_str):
         # Try to build and install from sources
         with spack_python_interpreter():
             # Add hint to use frontend operating system on Cray
-            if str(spack.platforms.host()) == 'cray':
-                abstract_spec_str += ' os=fe'
-
             concrete_spec = spack.spec.Spec(
                 abstract_spec_str + ' ^' + spec_for_current_python()
             )
@@ -406,10 +394,6 @@ def try_search_path(self, executables, abstract_spec_str):
         # might reduce compilation time by a fair amount
         _add_externals_if_missing()
 
-        # Add hint to use frontend operating system on Cray
-        if str(spack.platforms.host()) == 'cray':
-            abstract_spec_str += ' os=fe'
-
         concrete_spec = spack.spec.Spec(abstract_spec_str)
         if concrete_spec.name == 'patchelf':
             concrete_spec._old_concretize(deprecation_warning=False)
@@ -666,21 +650,26 @@ def _ensure_bootstrap_configuration():
     bootstrap_store_path = store_path()
     user_configuration = _read_and_sanitize_configuration()
     with spack.environment.no_active_environment():
-        with spack.platforms.use_platform(spack.platforms.real_host()):
-            with spack.repo.use_repositories(spack.paths.packages_path):
-                with spack.store.use_store(bootstrap_store_path):
-                    # Default configuration scopes excluding command line
-                    # and builtin but accounting for platform specific scopes
-                    config_scopes = _bootstrap_config_scopes()
-                    with spack.config.use_configuration(*config_scopes):
-                        # We may need to compile code from sources, so ensure we have
-                        # compilers for the current platform before switching parts.
-                        _add_compilers_if_missing()
-                        spack.config.set('bootstrap', user_configuration['bootstrap'])
-                        spack.config.set('config', user_configuration['config'])
-                        with spack.modules.disable_modules():
-                            with spack_python_interpreter():
-                                yield
+        with spack.platforms.prevent_cray_detection():
+            with spack.platforms.use_platform(spack.platforms.real_host()):
+                with spack.repo.use_repositories(spack.paths.packages_path):
+                    with spack.store.use_store(bootstrap_store_path):
+                        # Default configuration scopes excluding command line
+                        # and builtin but accounting for platform specific scopes
+                        config_scopes = _bootstrap_config_scopes()
+                        with spack.config.use_configuration(*config_scopes):
+                            # We may need to compile code from sources, so ensure we
+                            # have compilers for the current platform
+                            _add_compilers_if_missing()
+                            spack.config.set(
+                                'bootstrap', user_configuration['bootstrap']
+                            )
+                            spack.config.set(
+                                'config', user_configuration['config']
+                            )
+                            with spack.modules.disable_modules():
+                                with spack_python_interpreter():
+                                    yield
 
 
 def _read_and_sanitize_configuration():
diff --git a/lib/spack/spack/platforms/__init__.py b/lib/spack/spack/platforms/__init__.py
--- a/lib/spack/spack/platforms/__init__.py
+++ b/lib/spack/spack/platforms/__init__.py
@@ -4,7 +4,7 @@
 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
 import contextlib
 
-from ._functions import _host, by_name, platforms
+from ._functions import _host, by_name, platforms, prevent_cray_detection, reset
 from ._platform import Platform
 from .cray import Cray
 from .darwin import Darwin
@@ -19,7 +19,9 @@
     'Test',
     'platforms',
     'host',
-    'by_name'
+    'by_name',
+    'reset',
+    'prevent_cray_detection'
 ]
 
 #: The "real" platform of the host running Spack. This should not be changed
diff --git a/lib/spack/spack/platforms/_functions.py b/lib/spack/spack/platforms/_functions.py
--- a/lib/spack/spack/platforms/_functions.py
+++ b/lib/spack/spack/platforms/_functions.py
@@ -2,8 +2,12 @@
 # Spack Project Developers. See the top-level COPYRIGHT file for details.
 #
 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import contextlib
+
 import llnl.util.lang
 
+import spack.util.environment
+
 from .cray import Cray
 from .darwin import Darwin
 from .linux import Linux
@@ -22,6 +26,13 @@ def _host():
     return None
 
 
+def reset():
+    """The result of the host search is memoized. In case it needs to be recomputed
+    we must clear the cache, which is what this function does.
+    """
+    _host.cache.clear()
+
+
 @llnl.util.lang.memoized
 def cls_by_name(name):
     """Return a platform class that corresponds to the given name or None
@@ -45,3 +56,14 @@ def by_name(name):
     """
     platform_cls = cls_by_name(name)
     return platform_cls() if platform_cls else None
+
+
+@contextlib.contextmanager
+def prevent_cray_detection():
+    """Context manager that prevents the detection of the Cray platform"""
+    reset()
+    try:
+        with spack.util.environment.set_env(MODULEPATH=''):
+            yield
+    finally:
+        reset()


Test patch: