spack: "%gcc@:5" conflicts with "clingo-bootstrap" [C++14 support is required to bootstrap clingo]

Steps to reproduce

spack won’t install any package for my spack development build. I used minime as an example package. I can flip to the original concretizer and and then I can build. platform is eclipse at SNL.

jgalaro@eclipse-login3 spack]$ spack install minime
==> Bootstrapping clingo from pre-built binaries
==> Bootstrapping clingo from sources
==> 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: could not populate the binary index
    'spack-install' raised ConflictsInSpecError: Conflicts in concretized spec "clingo-bootstrap@spack%gcc@4.9.3~docs~ipo+python~static_libstdcpp build_type=Release arch=linux-rhel7-x86_64/cvmqzep"

    List of matching conflicts for spec:

    clingo-bootstrap@spack%gcc@4.9.3~docs~ipo+python~static_libstdcpp build_type=Release arch=linux-rhel7-x86_64
        ^bison@3.0.4%gcc@4.9.3 patches=b72914fe38e54a6fc25f29019e0a0786705c4f61ce20d414cc2010c8d62448c7 arch=linux-rhel7-x86_64
        ^cmake@3.21.3%gcc@4.9.3~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-rhel7-x86_64
            ^ncurses@6.2%gcc@4.9.3~symlinks+termlib abi=none arch=linux-rhel7-x86_64
                ^pkgconf@1.8.0%gcc@4.9.3 arch=linux-rhel7-x86_64
            ^openssl@1.1.1l%gcc@4.9.3~docs certs=system arch=linux-rhel7-x86_64
                ^perl@5.34.0%gcc@4.9.3+cpanm+shared+threads arch=linux-rhel7-x86_64
                    ^berkeley-db@18.1.40%gcc@4.9.3+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-rhel7-x86_64
                    ^bzip2@1.0.8%gcc@4.9.3~debug~pic+shared arch=linux-rhel7-x86_64
                        ^diffutils@3.8%gcc@4.9.3 arch=linux-rhel7-x86_64
                            ^libiconv@1.16%gcc@4.9.3 libs=shared,static arch=linux-rhel7-x86_64
                    ^gdbm@1.19%gcc@4.9.3 arch=linux-rhel7-x86_64
                        ^readline@8.1%gcc@4.9.3 arch=linux-rhel7-x86_64
                    ^zlib@1.2.11%gcc@4.9.3+optimize+pic+shared arch=linux-rhel7-x86_64
        ^python@3.6%gcc@4.9.3+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib arch=linux-rhel7-x86_64
        ^re2c@2.2%gcc@4.9.3 arch=linux-rhel7-x86_64

1. "%gcc@:5" conflicts with "clingo-bootstrap" [C++14 support is required to bootstrap clingo]

    Please run `spack -d spec zlib` for more verbose error messages
[jgalaro@eclipse-login3 spack]$ 
[jgalaro@eclipse-login3 spack]$ spack find
==> 0 installed packages

Error message

see above.

Information on your system

[jgalaro@eclipse-login3 packages]$ spack debug report

  • Spack: 0.16.3-4702-713bbdbe7c
  • Python: 3.6.8
  • Platform: linux-rhel7-broadwell
  • Concretizer: original – was clingo, but I changed it to make progress.

General 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

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (23 by maintainers)

Most upvoted comments

I get the same error on CentOS7 with the latest develop branch. I tried to enable devtoolset-9 with the following command, but spack failed to detect it.

scl enable devtoolset-9 bash
* **Spack:** 0.17.1
* **Python:** 3.6.8
* **Platform:** linux-centos7-broadwell
* **Concretizer:** clingo

Same problem. I had to edit the bootstrap config in $HOME/.spack/…/bootstrap/… manually to change the compiler.

It works! Thank you. I thought this config file would be overwritten when bootstrapping.

Anybody hitting this same issue recently? From March last year there have been a few changes to the bootstrapping part of Spack, and it seems more stable - but wanted to double check here.

I don’t mean to hijack this thread, but I want to mention that others are having issues with this same thing. Many people are using RHEL7 machines (labs, universities, etc…), and for some of the architectures there are no prebuilt binary to install, causing the need to untrust github-actions and then attempting to install clingo-bootstrap. The default compilers for these systems are 4.8.5 and don’t support C++14. Even if a user has a newer version (maybe from module load ...), there are JSON parse errors preventing installation of clingo-bootstrap from source.

Could there be improved support for using the results of pip install clingo in Spack?