Skip to content

Unclear error message for a typo in a depends_on directive #41059

@bvanessen

Description

@bvanessen

Steps to reproduce

On the develop-2023-11-12 tag

This command fails

spack solve lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a

this command succeeds

spack solve lbann@develop+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a

Error message

lbannusr@tioga11 [~] %> spack solve lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a                                                                         
==> Error: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.
    lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a is unsatisfiable
lbannusr@tioga11 [~] %> spack -d solve lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a
==> [2023-11-13-17:51:56.490179] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/defaults/config.yaml
==> [2023-11-13-17:51:56.529587] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/config.yaml
==> [2023-11-13-17:51:56.550048] Imported solve from built-in commands
==> [2023-11-13-17:51:56.550929] Imported solve from built-in commands
==> [2023-11-13-17:51:56.555430] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/defaults/concretizer.yaml
==> [2023-11-13-17:51:56.565306] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/defaults/repos.yaml
==> [2023-11-13-17:51:59.635684] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/defaults/packages.yaml
==> [2023-11-13-17:52:00.936343] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/upstreams.yaml
==> [2023-11-13-17:52:00.938638] DATABASE LOCK TIMEOUT: 60s
==> [2023-11-13-17:52:00.938702] PACKAGE LOCK TIMEOUT: No timeout
==> [2023-11-13-17:52:00.972296] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/defaults/mirrors.yaml
==> [2023-11-13-17:52:07.295806] Reading config from file /g/g14/lbannusr/spack_repos/spack_test.git/etc/spack/compilers.yaml
==> [2023-11-13-17:52:49.816725] InternalConcretizerError: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.
    lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a is unsatisfiable
==> [2023-11-13-17:52:49.817881] Error: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.
    lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a is unsatisfiable
Traceback (most recent call last):
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/main.py", line 1064, in main
    return _main(argv)
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/main.py", line 1019, in _main
    return finish_parse_and_run(parser, cmd_name, args.command, env_format_error)
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/main.py", line 1047, in finish_parse_and_run
    return _invoke_command(command, parser, args, unknown)
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/main.py", line 648, in _invoke_command
    return_val = command(parser, args)
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/cmd/solve.py", line 192, in solve
    _process_result(result, show, required_format, kwargs)
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/cmd/solve.py", line 94, in _process_result
    result.raise_if_unsat()
  File "/g/g14/lbannusr/spack_repos/spack_test.git/lib/spack/spack/solver/asp.py", line 513, in raise_if_unsat
    raise InternalConcretizerError(constraints, conflicts=conflicts)
spack.solver.asp.InternalConcretizerError: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.
    lbann@develop%[email protected]+deterministic+distconv+numpy+rocm+unit_tests+vision amdgpu_target=gfx90a is unsatisfiable
lbannusr@tioga11 [~] %> 

Information on your system

develop-2023-11-12

lbannusr@tioga11 [~] %> spack debug report
* **Spack:** 0.22.0.dev0 (15dcd3c65c6bbf36127c4cc4d0ed767c14d396b2)
* **Python:** 3.9.12
* **Platform:** linux-rhel8-zen3
* **Concretizer:** clingo

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

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions