Skip to content

Spack continues installing packages after failure #15182

@wortiz

Description

@wortiz

After a build failed spack will print out "Skipping build of ... since ... failed" but will continue building other packages

This occurs with KeyboardInterrupt as well

Steps to reproduce the issue

$ spack install package
(Send interrupt e.g. Ctrl-C)
...

Error Message

 $ spack install git
==> 29647: Installing libsigsegv
==> Fetching https://ftpmirror.gnu.org/libsigsegv/libsigsegv-2.12.tar.gz
################################################################################# 100.0%
==> Staging archive: /tmp/wortiz/spack-stage/spack-stage-libsigsegv-2.12-yo4g77w4jxsh46lj4pdo3oo6szee7bjk/libsigsegv-2.12.tar.gz
==> Created stage in /tmp/wortiz/spack-stage/spack-stage-libsigsegv-2.12-yo4g77w4jxsh46lj4pdo3oo6szee7bjk
==> No patches needed for libsigsegv
==> 29647: libsigsegv: Building libsigsegv [AutotoolsPackage]
==> 29647: libsigsegv: Executing phase: 'autoreconf'
==> 29647: libsigsegv: Executing phase: 'configure'
==> Error: Exception occurred in writer daemon!
==> Error: Failed to install libsigsegv due to KeyboardInterrupt: 
Traceback (most recent call last):
  File "/home/wortiz/spack/lib/spack/llnl/util/tty/log.py", line 434, in _writer_daemon
    rlist, _, _ = select.select(istreams, [], [])
KeyboardInterrupt
==> Warning: Skipping build of m4 since libsigsegv failed
==> Warning: Skipping build of git since m4 failed
==> Warning: Skipping build of autoconf since m4 failed
==> Warning: Skipping build of automake since autoconf failed
==> Warning: Skipping build of libtool since m4 failed
==> 29647: Installing pkgconf
==> Fetching http://distfiles.dereferenced.org/pkgconf/pkgconf-1.6.3.tar.xz
################################################################################# 100.0%
==> Staging archive: /tmp/wortiz/spack-stage/spack-stage-pkgconf-1.6.3-wyezssuqshd4wismk2i4s6ppx3lilnqc/pkgconf-1.6.3.tar.xz
==> Created stage in /tmp/wortiz/spack-stage/spack-stage-pkgconf-1.6.3-wyezssuqshd4wismk2i4s6ppx3lilnqc
==> No patches needed for pkgconf

Information on your system

Ubuntu 18.04
2. any relevant configuration detail (custom packages.yaml or modules.yaml, etc.)

packages.yaml

packages:
  parmetis:
    variants: build_type=Release
  trilinos:
    variants: +teko+superlu-dist+chaco build_type=Release
  superlu-dist:
    variants: build_type=Release
  all:
    compiler: [gcc]
    providers:
      mpi: [mpich, openmpi]
      blas: [openblas, intel-mkl]
      lapack: [openblas, intel-mkl]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions