First build works (independent of the variant), e.g.
$ spack install gsl-lite@git.master=0.42 build_type=Release
...
$ spack install gsl-lite@git.master=0.42 build_type=Debug
=> Error:
gsl-lite@git.master=0.42 build_type=Debug is unsatisfiable, errors are:
internal_error("Reuse version weight used for build package")
internal_error("imposed hash without imposing all variant values")
$ spack --debug --stacktrace install gsl-lite@git.master=0.42 build_type=Debug
lib/spack/spack/cmd/__init__.py:123 ==> [2023-06-20-14:26:15.433414] Imported install from built-in commands
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.440440] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/config.yaml
lib/spack/spack/cmd/__init__.py:123 ==> [2023-06-20-14:26:15.485258] Imported install from built-in commands
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.500795] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/bootstrap.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.537915] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/repos.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.550326] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/config.yaml
lib/spack/spack/database.py:391 ==> [2023-06-20-14:26:15.583006] DATABASE LOCK TIMEOUT: 60s
lib/spack/spack/database.py:397 ==> [2023-06-20-14:26:15.583294] PACKAGE LOCK TIMEOUT: No timeout
lib/spack/spack/database.py:391 ==> [2023-06-20-14:26:15.584844] DATABASE LOCK TIMEOUT: 60s
lib/spack/spack/database.py:397 ==> [2023-06-20-14:26:15.585187] PACKAGE LOCK TIMEOUT: No timeout
lib/spack/spack/bootstrap/config.py:125 ==> [2023-06-20-14:26:15.585375] [BOOTSTRAP CONFIG SCOPE] name=_builtin
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.585824] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/bootstrap.yaml
lib/spack/spack/bootstrap/config.py:138 ==> [2023-06-20-14:26:15.592970] [BOOTSTRAP CONFIG SCOPE] name=defaults, path=/export/home/pauleonix/spack/etc/spack/defaults
lib/spack/spack/bootstrap/config.py:139 ==> [2023-06-20-14:26:15.593130] [BOOTSTRAP CONFIG SCOPE] name=defaults/linux, path=/export/home/pauleonix/spack/etc/spack/defaults/linux
lib/spack/spack/bootstrap/config.py:138 ==> [2023-06-20-14:26:15.593282] [BOOTSTRAP CONFIG SCOPE] name=bootstrap, path=/export/home/pauleonix/.spack/bootstrap/config
lib/spack/spack/bootstrap/config.py:139 ==> [2023-06-20-14:26:15.593425] [BOOTSTRAP CONFIG SCOPE] name=bootstrap/linux, path=/export/home/pauleonix/.spack/bootstrap/config/linux
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.595464] Reading config from file /export/home/pauleonix/.spack/bootstrap/config/linux/compilers.yaml
lib/spack/spack/bootstrap/_common.py:223 ==> [2023-06-20-14:26:15.704682] [BOOTSTRAP ROOT SPEC] patchelf@0.13.1: %gcc target=x86_64 [27/232]
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:15.707884] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/bootstrap.yaml
lib/spack/spack/bootstrap/_common.py:185 ==> [2023-06-20-14:26:15.737945] [BOOTSTRAP EXECUTABLES patchelf] Try installed specs with query 'patchelf@0.13.1: %gcc target=x86_64'
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.258639] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/config.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.388368] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/modules.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.401565] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/linux/modules.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.498147] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/packages.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.530265] Reading config from file /export/home/pauleonix/.spack/bootstrap/config/packages.yaml
lib/spack/spack/bootstrap/_common.py:223 ==> [2023-06-20-14:26:19.559225] [BOOTSTRAP ROOT SPEC] gnupg@2.3: %gcc target=x86_64
lib/spack/spack/bootstrap/_common.py:223 ==> [2023-06-20-14:26:19.583170] [BOOTSTRAP ROOT SPEC] clingo-bootstrap@spack+python %gcc target=x86_64
lib/spack/spack/bootstrap/core.py:376 ==> [2023-06-20-14:26:19.583327] [BOOTSTRAP MODULE clingo] Try importing from Python
lib/spack/spack/bootstrap/_common.py:78 ==> [2023-06-20-14:26:19.619947] [BOOTSTRAP MODULE clingo] The installed spec "clingo-bootstrap@spack+python %gcc target=x86_64 ^python@3.10/2l45t4kw3cqqwj6vbxhfwhzlo6b3q2p4" provides the "clingo" Python module
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.620569] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/concretizer.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.627305] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/repos.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.690945] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/packages.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.723023] Reading config from file /export/home/pauleonix/.spack/packages.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.769226] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/config.yaml
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:19.794957] Reading config from file /export/home/pauleonix/spack/etc/spack/defaults/mirrors.yaml
lib/spack/spack/util/web.py:345 ==> [2023-06-20-14:26:19.797941] Checking existence of https://mirror.spack.io/build_cache/index.json
lib/spack/spack/util/web.py:373 ==> [2023-06-20-14:26:20.440526] Failure reading URL: HTTP Error 404: Not Found
lib/spack/spack/config.py:996 ==> [2023-06-20-14:26:22.764978] Reading config from file /export/home/pauleonix/.spack/linux/compilers.yaml
lib/spack/spack/cmd/install.py:452 ==> [2023-06-20-14:26:41.457247] SpackError:
gsl-lite@git.master=0.42 build_type=Debug is unsatisfiable, errors are:
internal_error("Reuse version weight used for build package")
internal_error("imposed hash without imposing all variant values")
lib/spack/spack/main.py:1021 ==> [2023-06-20-14:26:41.457461] SpackError:
gsl-lite@git.master=0.42 build_type=Debug is unsatisfiable, errors are:
internal_error("Reuse version weight used for build package")
internal_error("imposed hash without imposing all variant values")
lib/spack/spack/error.py:54 ==> [2023-06-20-14:26:41.458766] Error:
gsl-lite@git.master=0.42 build_type=Debug is unsatisfiable, errors are:
internal_error("Reuse version weight used for build package")
internal_error("imposed hash without imposing all variant values")
Traceback (most recent call last):
File "/export/home/pauleonix/spack/lib/spack/spack/cmd/__init__.py", line 220, in parse_specs
spec.concretize(tests=tests) # implies normalize
File "/export/home/pauleonix/spack/lib/spack/spack/spec.py", line 2915, in concretize
self._new_concretize(tests)
File "/export/home/pauleonix/spack/lib/spack/spack/spec.py", line 2891, in _new_concretize
result.raise_if_unsat()
File "/export/home/pauleonix/spack/lib/spack/spack/solver/asp.py", line 481, in raise_if_unsat
raise InternalConcretizerError(constraints, conflicts=conflicts)
spack.solver.asp.InternalConcretizerError:
gsl-lite@git.master=0.42 build_type=Debug is unsatisfiable, errors are:
internal_error("Reuse version weight used for build package")
internal_error("imposed hash without imposing all variant values")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/export/home/pauleonix/spack/lib/spack/spack/main.py", line 1018, in main
return _main(argv)
File "/export/home/pauleonix/spack/lib/spack/spack/main.py", line 973, in _main
return finish_parse_and_run(parser, cmd_name, env_format_error)
File "/export/home/pauleonix/spack/lib/spack/spack/main.py", line 1001, in finish_parse_and_run
return _invoke_command(command, parser, args, unknown)
File "/export/home/pauleonix/spack/lib/spack/spack/main.py", line 650, in _invoke_command
return_val = command(parser, args)
File "/export/home/pauleonix/spack/lib/spack/spack/cmd/install.py", line 368, in install
install_without_active_env(args, install_kwargs, reporter_factory)
File "/export/home/pauleonix/spack/lib/spack/spack/cmd/install.py", line 481, in install_without_active_env
concrete_specs = concrete_specs_from_cli(args, install_kwargs) + concrete_specs_from_file(args)
File "/export/home/pauleonix/spack/lib/spack/spack/cmd/install.py", line 448, in concrete_specs_from_cli
concrete_specs = spack.cmd.parse_specs(
File "/export/home/pauleonix/spack/lib/spack/spack/cmd/__init__.py", line 234, in parse_specs
raise spack.error.SpackError(msg) from e
spack.error.SpackError:
gsl-lite@git.master=0.42 build_type=Debug is unsatisfiable, errors are:
internal_error("Reuse version weight used for build package")
internal_error("imposed hash without imposing all variant values")
Steps to reproduce
First build works (independent of the variant), e.g.
Second build fails
Error message
Information on your system
General information
spack debug reportand reported the version of Spack/Python/Platform