Tried to install Clingo on a Cray system (Blue Waters). Default compiler is gcc@6.3.0.
Steps to reproduce the issue
$ spack install clingo
...[snip]...
==> Installing clingo-master-7cfrbcc7vks2dbnzklogk5fpapsy7kof
==> Warning: Spack will not check SSL certificates. You need to update your Python to enable certificate verification.
==> No binary for clingo-master-7cfrbcc7vks2dbnzklogk5fpapsy7kof found: installing from source
==> clingo: Executing phase: 'cmake'
==> Error: NameError: global name 'UnsupportedCompilerFlag' is not defined
/mnt/abc/u/staff/mbelkin/spack/var/spack/repos/builtin/packages/clingo/package.py:56, in cmake_args:
53 def cmake_args(self):
54 try:
55 self.compiler.cxx14_flag
>> 56 except UnsupportedCompilerFlag:
57 InstallError('clingo requires a C++14-compliant C++ compiler')
58
59 return [
See build log for details:
/tmp/mbelkin/spack-stage/spack-stage-clingo-master-7cfrbcc7vks2dbnzklogk5fpapsy7kof/spack-build-out.txt
Error Message
Didn't do this step as I pinged @adamjstewart for help and his proposed fix (changing .real_version to .version in lib/spack/spack/compilers/gcc.py) solved the problem. I can execute this step without the "fix" if desired.
$ spack --debug --stacktrace <command>
Information on your system
spack debug report
$ spack debug report
* **Spack:** 0.16.0-913-6b13909cc1
* **Python:** 2.6.9
* **Platform:** cray-suse_linux11-bulldozer
* **Concretizer:** clingo
Additional information
Tried to install Clingo on a Cray system (Blue Waters). Default compiler is gcc@6.3.0.
Steps to reproduce the issue
Error Message
Didn't do this step as I pinged @adamjstewart for help and his proposed fix (changing
.real_versionto.versioninlib/spack/spack/compilers/gcc.py) solved the problem. I can execute this step without the "fix" if desired.$ spack --debug --stacktrace <command>Information on your system
spack debug reportAdditional information
spack debug reportand reported the version of Spack/Python/Platform