Skip to content

.real_version not working as intended #21344

@maxim-belkin

Description

@maxim-belkin

Tried to install Clingo on a Cray system (Blue Waters). Default compiler is [email protected].

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompilerstriageThe issue needs to be prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions