diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py index 6fd3dd04573..3748110470c 100644 --- a/lib/spack/spack/compiler.py +++ b/lib/spack/spack/compiler.py @@ -294,6 +294,10 @@ def determine_implicit_rpaths(cls, paths): output=str, error=str)) # str for py2 return cls.parse_implicit_rpaths(output) + except spack.util.executable.ProcessError as pe: + tty.debug('ProcessError: Command exited with non-zero status: ' + + pe.long_message) + return [] finally: shutil.rmtree(tmpdir, ignore_errors=True)