-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Attempted to use external for 'apple-libuuid' which does not satisfy any configured external spec #31832
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized
Description
Steps to reproduce
My pretty-fresh spack installation has ROOT installed:
Ugly ROOT spec
53qeuen [email protected]~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 [email protected]~doc+ncurses+ownlibs~qt build_type=Release muw42gz [email protected]~symlinks+termlib abi=none 6ge5mev gnuconfig@2021-08-14 ett7ygi [email protected] 373h7tj [email protected]~docs~shared certs=mozilla patches=3fdcf2d u5bzvfg ca-certificates-mozilla@2022-03-29 256wjmr [email protected]+cpanm+shared+threads e5dqqjq [email protected]+cxx~docs+stl patches=b231fcc rjsj6wi [email protected]~debug~pic+shared mbrctz7 [email protected] fh6dfpn [email protected] libs=shared,static chvvbrt [email protected] ua734bl [email protected] ke4alug [email protected]+optimize+pic+shared patches=0d38234 3s3dqxu [email protected] 6kpcuy2 [email protected] oronjek [email protected] sombxov [email protected] 3myktsy [email protected] raxqbvb [email protected] abkohk4 [email protected] 3qt26b3 [email protected] ozh3lkm [email protected]~python gv3m23p [email protected]~pic libs=shared,static bhvuert [email protected] libs=shared,static eomd6ql [email protected]~ipo~multiple_headers build_type=RelWithDebInfo nhld2jy [email protected]~bignuma~consistent_fpcsr~ilp64+locking+pic+shared symbol_suffix=none threads=none o6y4zfu [email protected]~jit+multibyte+utf vq2jw2b [email protected]+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 [email protected] f5zknwn [email protected]~libbsd fvtlcau [email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz axle3yr [email protected] zip=pigz zzd6h23 [email protected] cx7gkqf [email protected]+programs compression=none libs=shared,static rjvdm33 [email protected] b567lts [email protected]+column_metadata+dynamic_extensions+fts~functions+rtree lqe2aod [email protected]~gsl+rngstreams+shared fwwrbyt [email protected] acznmsy [email protected]~ipo~preload build_type=RelWithDebInfo g6qsrzy [email protected]
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 ^[email protected] /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 specInformation on your system
And the external does seem to be installed:
$ spack find -lvd apple-libuuid
==> 1 installed package
-- darwin-monterey-m1 / [email protected] ----------------------
jbbx4ar [email protected]
- Spack: 0.19.0.dev0 (98d6862)
- Python: 3.9.13
- Platform: darwin-monterey-m1
- Concretizer: clingo
General information
- I have run
spack debug reportand 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriageThe issue needs to be prioritizedThe issue needs to be prioritized