spack: Spack install AssertionError assert len(concrete_specs) <= 1

I thought this problem had been solved, but it seems that it’s still present (or has regressed) in the latest develop branch. I ran spack install eigen and it successfully installed metis. Then it tried to install mvapich2. I hit <kbd>Ctrl</kbd>+<kbd>C</kbd> and killed it because I wanted it to use an already installed version of mvapich2. I eventually gave up and decided to just let Spack build mvapich2 again, but when I reran spack install eigen, I got the following error message:

$ spack install eigen
==> Installing eigen
==> metis is already installed in /blues/gpfs/home/software/spack-0.9.1/opt/spack/linux-centos6-x86_64/gcc-6.1.0/metis-5.1.0-k4pqzigdgdsuk2r3xls7eyhk6uwvxp46
Traceback (most recent call last):
  File "/soft/spack-0.9.1/bin/spack", line 202, in <module>
    main()
  File "/soft/spack-0.9.1/bin/spack", line 179, in main
    return_val = command(parser, args)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/cmd/install.py", line 117, in install
    package.do_install(**kwargs)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/package.py", line 1183, in do_install
    dirty=dirty)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/package.py", line 1160, in do_install
    rec = spack.installed_db.get_record(self.spec)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 79, in converter
    return function(self, spec_like, *args, **kwargs)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 527, in get_record
    key = self._get_matching_spec_key(spec, **kwargs)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 519, in _get_matching_spec_key
    match = self.query_one(spec, **kwargs)
  File "/blues/gpfs/home/software/spack-0.9.1/lib/spack/spack/database.py", line 653, in query_one
    assert len(concrete_specs) <= 1
AssertionError

NOTE: running spack reindex does not fix this problem. I’m going to try manually deleting the metis installation and trying again.

@tgamblin I would love to see this bug fixed before the 0.10 release.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 32 (32 by maintainers)

Most upvoted comments

@tgamblin This might actually be finally fixed! I ran into the same problem again when trying to build mvapich2, updated to the latest develop, tried again, and it worked!