From dce45aa29970af948836b5b7292bc7cfc16eef72 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 16 Sep 2019 21:09:28 -0500 Subject: Allow build to proceed with failed compiler lib detection (#12756) Fixes #12732 Fixes #12767 c22a145 added automatic detection and RPATHing of compiler libraries to Spack builds. However, in cases where the parsing/detection logic fails this was terminating the build. This makes the compiler library detection "best-effort" and reports an issue when the detection fails rather than terminating the build. --- lib/spack/spack/compiler.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py index 6fd3dd0457..3748110470 100644 --- a/lib/spack/spack/compiler.py +++ b/lib/spack/spack/compiler.py @@ -294,6 +294,10 @@ class Compiler(object): 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) -- cgit v1.2.3-60-g2f50