Skip to content

Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec #31832

@sethrj

Description

@sethrj

Steps to reproduce

My pretty-fresh spack installation has ROOT installed:

Ugly ROOT spec
53qeuen root@6.26.04~aqua~davix~dcache~emacs~examples~fftw~fits~fortran+gdml+gminimal~graphviz~gsl~http~ipo~jemalloc~math~memstat+minuit~mlp~mysql~opengl~oracle~postgres~pythia6~pythia8+python~qt4~r+roofit~root7+rpath~shadow~spectrum~sqlite~ssl~table~tbb+threads~tmva+unuran~vc+vdt~veccore~vmc~x+xml~xrootd build_type=RelWithDebInfo cxxstd=17 patches=22af347
jjddmrr     cmake@3.23.2~doc+ncurses+ownlibs~qt build_type=Release
muw42gz         ncurses@6.2~symlinks+termlib abi=none
6ge5mev             gnuconfig@2021-08-14
ett7ygi             pkgconf@1.8.0
373h7tj         openssl@1.1.1q~docs~shared certs=mozilla patches=3fdcf2d
u5bzvfg             ca-certificates-mozilla@2022-03-29
256wjmr             perl@5.34.1+cpanm+shared+threads
e5dqqjq                 berkeley-db@18.1.40+cxx~docs+stl patches=b231fcc
rjsj6wi                 bzip2@1.0.8~debug~pic+shared
mbrctz7                     diffutils@3.8
fh6dfpn                         libiconv@1.16 libs=shared,static
chvvbrt                 gdbm@1.19
ua734bl                     readline@8.1.2
ke4alug                 zlib@1.2.12+optimize+pic+shared patches=0d38234
3s3dqxu     freetype@2.11.1
6kpcuy2         libpng@1.6.37
oronjek     libice@1.0.9
sombxov         util-macros@1.19.3
3myktsy         xproto@7.0.31
raxqbvb         xtrans@1.3.5
abkohk4     libjpeg-turbo@2.1.3
3qt26b3         nasm@2.15.05
ozh3lkm     libxml2@2.9.13~python
gv3m23p         xz@5.2.5~pic libs=shared,static
bhvuert     lz4@1.9.3 libs=shared,static
eomd6ql     nlohmann-json@3.10.5~ipo~multiple_headers build_type=RelWithDebInfo
nhld2jy     openblas@0.3.20~bignuma~consistent_fpcsr~ilp64+locking+pic+shared symbol_suffix=none threads=none
o6y4zfu     pcre@8.45~jit+multibyte+utf
vq2jw2b     python@3.9.13+bz2+ctypes+dbm~debug+ensurepip+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,f2fd060
jbbx4ar         apple-libuuid@1353.100.2
f5zknwn         expat@2.4.8~libbsd
fvtlcau         gettext@0.21+bzip2+curses+git~libunistring+libxml2+tar+xz
axle3yr             tar@1.34 zip=pigz
zzd6h23                 pigz@2.7
cx7gkqf                 zstd@1.5.2+programs compression=none libs=shared,static
rjvdm33         libffi@3.4.2
b567lts         sqlite@3.38.5+column_metadata+dynamic_extensions+fts~functions+rtree
lqe2aod     unuran@1.8.1~gsl+rngstreams+shared
fwwrbyt         rngstreams@1.0.1
acznmsy     vdt@0.4.3~ipo~preload build_type=RelWithDebInfo
g6qsrzy     xxhash@0.8.1

Trying to install a package with ROOT as a dependency failed to reuse it, so I tried manually requiring it:

$ spack spec -I vecgeom+root ^root/53qeuen
==> Error: Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec

Error message

$ spack -vd spec -I vecgeom+root ^root/53qeuen
==> [2022-08-01-06:42:01.776455] Imported spec from built-in commands
==> [2022-08-01-06:42:01.776876] Imported spec from built-in commands
==> [2022-08-01-06:42:01.777346] Reading config file /opt/spack/etc/spack/defaults/config.yaml
==> [2022-08-01-06:42:01.785312] Reading config file /opt/spack/etc/spack/config.yaml
==> [2022-08-01-06:42:01.789661] Reading config file /opt/spack/etc/spack/defaults/bootstrap.yaml
==> [2022-08-01-06:42:01.792486] DATABASE LOCK TIMEOUT: 3s
==> [2022-08-01-06:42:01.792511] PACKAGE LOCK TIMEOUT: No timeout
==> [2022-08-01-06:42:01.814553] Reading config file /opt/spack/etc/spack/defaults/config.yaml
==> [2022-08-01-06:42:01.822481] Reading config file /opt/spack/etc/spack/config.yaml
==> [2022-08-01-06:42:01.823530] DATABASE LOCK TIMEOUT: 3s
==> [2022-08-01-06:42:01.823550] PACKAGE LOCK TIMEOUT: No timeout
==> [2022-08-01-06:42:01.823609] [BOOTSTRAP CONFIG SCOPE] name=_builtin
==> [2022-08-01-06:42:01.823768] Reading config file /opt/spack/etc/spack/defaults/bootstrap.yaml
==> [2022-08-01-06:42:01.826417] [BOOTSTRAP CONFIG SCOPE] name=defaults, path=/opt/spack/etc/spack/defaults
==> [2022-08-01-06:42:01.826436] [BOOTSTRAP CONFIG SCOPE] name=defaults/darwin, path=/opt/spack/etc/spack/defaults/darwin
==> [2022-08-01-06:42:01.826457] [BOOTSTRAP CONFIG SCOPE] name=bootstrap, path=/Users/seth/.spack/bootstrap/config
==> [2022-08-01-06:42:01.826472] [BOOTSTRAP CONFIG SCOPE] name=bootstrap/darwin, path=/Users/seth/.spack/bootstrap/config/darwin
==> [2022-08-01-06:42:01.826644] Reading config file /Users/seth/.spack/bootstrap/config/darwin/compilers.yaml
==> [2022-08-01-06:42:01.858056] [BOOTSTRAP ROOT SPEC] clingo-bootstrap@spack+python %apple-clang target=aarch64
==> [2022-08-01-06:42:01.858163] [BOOTSTRAP MODULE clingo] Try importing from Python
==> [2022-08-01-06:42:01.858390] Reading config file /opt/spack/etc/spack/defaults/bootstrap.yaml
==> [2022-08-01-06:42:01.956870] Reading config file /opt/spack/etc/spack/defaults/config.yaml
==> [2022-08-01-06:42:01.983873] '/opt/spack/var/spack/environments/celeritas/.spack-env/._view/r3gorybsmmaw2ewvo4gspqpcttebk5eb/bin/python3.9' '-c' '
import json
from sysconfig import (
    get_config_vars,
    get_config_h_filename,
    get_makefile_filename,
    get_paths,
)

config = get_config_vars()
config['"'"'config_h_filename'"'"'] = get_config_h_filename()
config['"'"'makefile_filename'"'"'] = get_makefile_filename()
config.update(get_paths())

print(json.dumps(config))
'
==> [2022-08-01-06:42:02.011243] [BOOTSTRAP MODULE clingo] The installed spec "clingo-bootstrap@spack+python %apple-clang target=aarch64 ^python@3.9 /cz4h2dpuycwo4w36toajumqbjkbpqkqo" provides the "clingo" Python module
==> [2022-08-01-06:42:02.011764] Reading config file /opt/spack/etc/spack/defaults/concretizer.yaml
==> [2022-08-01-06:42:02.014042] Reading config file /opt/spack/etc/spack/defaults/repos.yaml
==> [2022-08-01-06:42:02.082447] Reading config file /opt/spack/etc/spack/defaults/config.yaml
==> [2022-08-01-06:42:02.090300] Reading config file /opt/spack/etc/spack/config.yaml
==> [2022-08-01-06:42:02.091505] Reading config file /opt/spack/etc/spack/defaults/mirrors.yaml
==> [2022-08-01-06:42:03.952062] Reading config file /opt/spack/etc/spack/compilers.yaml
==> [2022-08-01-06:42:03.957584] Reading config file /opt/spack/etc/spack/defaults/packages.yaml
==> [2022-08-01-06:42:03.970025] Reading config file /opt/spack/etc/spack/defaults/darwin/packages.yaml
==> [2022-08-01-06:42:03.974048] Reading config file /Users/seth/.spack/packages.yaml
==> [2022-08-01-06:42:09.336478] SpackError: Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec
==> [2022-08-01-06:42:09.336546] Error: Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec
Traceback (most recent call last):
  File "/opt/spack/lib/spack/spack/cmd/__init__.py", line 227, in parse_specs
    spec.concretize(tests=tests)  # implies normalize
  File "/opt/spack/lib/spack/spack/spec.py", line 2914, in concretize
    self._new_concretize(tests)
  File "/opt/spack/lib/spack/spack/spec.py", line 2889, in _new_concretize
    result = solver.solve([self], tests=tests)
  File "/opt/spack/lib/spack/spack/solver/asp.py", line 2243, in solve
    return self.driver.solve(
  File "/opt/spack/lib/spack/spack/solver/asp.py", line 676, in solve
    answers = builder.build_specs(tuples)
  File "/opt/spack/lib/spack/spack/solver/asp.py", line 2100, in build_specs
    action(*args)
  File "/opt/spack/lib/spack/spack/solver/asp.py", line 1938, in error
    raise UnsatisfiableSpecError(msg)
spack.solver.asp.UnsatisfiableSpecError: Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/spack/lib/spack/spack/main.py", line 961, in main
    return _main(argv)
  File "/opt/spack/lib/spack/spack/main.py", line 916, in _main
    return finish_parse_and_run(parser, cmd_name, env_format_error)
  File "/opt/spack/lib/spack/spack/main.py", line 944, in finish_parse_and_run
    return _invoke_command(command, parser, args, unknown)
  File "/opt/spack/lib/spack/spack/main.py", line 608, in _invoke_command
    return_val = command(parser, args)
  File "/opt/spack/lib/spack/spack/cmd/spec.py", line 104, in spec
    concretized_specs = spack.cmd.parse_specs(args.specs, concretize=True)
  File "/opt/spack/lib/spack/spack/cmd/__init__.py", line 241, in parse_specs
    raise spack.error.SpackError(msg)
spack.error.SpackError: Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec

Information on your system

And the external does seem to be installed:

$ spack find -lvd apple-libuuid
==> 1 installed package
-- darwin-monterey-m1 / apple-clang@13.1.6 ----------------------
jbbx4ar apple-libuuid@1353.100.2
  • Spack: 0.19.0.dev0 (98d6862)
  • Python: 3.9.13
  • Platform: darwin-monterey-m1
  • 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

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThe issue needs to be prioritized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions