Skip to content

spack uninstall : cannot query by architecture or dependencies, just by compilers #1012

@alalazo

Description

@alalazo

Reproducible by :

$ spack find
==> 33 installed packages.
-- linux-x86_64 / [email protected] ---------------------------------------
[email protected]+gold~krellpatch~libiberty  [email protected]        [email protected]                                                                                                 [email protected]+sigsegv  [email protected]  
[email protected]                              [email protected]         [email protected]+all_targets+clang+compiler-rt~debug+gold+internal_unwind+libcxx~link_dylib+lldb+polly~shared_libs  [email protected]          [email protected]   
[email protected]~doc+ncurses+openssl~qt       [email protected]      [email protected]                                                                                                    [email protected]         [email protected]     
[email protected]+binutils+gold                  [email protected]  [email protected]                                                                                                     [email protected]          [email protected]     

-- linux-x86_64 / [email protected] -------------------------------------
[email protected]~cxx~debug+fortran+mpi+shared+szip~threadsafe  [email protected]                     [email protected]~mxm~pmi~psm~psm2~slurm~sqlite3~thread_multiple~tm~verbs+vt  [email protected]
[email protected]+cxx~debug+fortran~mpi+shared+szip~threadsafe  [email protected]                       [email protected]~mxm~pmi~psm~psm2~slurm+sqlite3+thread_multiple~tm~verbs+vt  
[email protected]                                              [email protected]+sigsegv                   [email protected]                                                               
[email protected]                                       [email protected]+fpic~openmp+shared  [email protected]                                                                   

$ spack uninstall arch=linux-x86_64
==> Error: Unexpected end of input

$ spack uninstall =linux-x86_64
==> Error: Unexpected token

A similar issue will be triggered if querying for a dependency, e.g. :

$ spack uninstall ^szip
==> Error: Unexpected end of input

Note that queries on compilers instead works :

$ spack uninstall -a %[email protected]
==> The following packages will be uninstalled : 

-- linux-x86_64 / [email protected] -------------------------------------
vhxsri5 [email protected]%gcc~cxx~debug+fortran+mpi+shared+szip~threadsafe

q4cd33d [email protected]%gcc+cxx~debug+fortran~mpi+shared+szip~threadsafe

whp7ocf [email protected]%gcc

wwwjaz6 [email protected]%gcc

tn76ik6 [email protected]%gcc

rounbef [email protected]%gcc

m57favd [email protected]%gcc+sigsegv

tvffito [email protected]%gcc+fpic~openmp+shared

fa3jbsy [email protected]%gcc~mxm~pmi~psm~psm2~slurm~sqlite3~thread_multiple~tm~verbs+vt

7kcx5zj [email protected]%gcc~mxm~pmi~psm~psm2~slurm+sqlite3+thread_multiple~tm~verbs+vt

4fjyj2l [email protected]%gcc

prj7bjf [email protected]%gcc

xfi4wik [email protected]%gcc


==> Do you want to proceed ? [y/n]
n
Operation aborted

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions