diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/autotools.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py index 97b5e9ef51..d6707ac27e 100644 --- a/lib/spack/spack/build_systems/autotools.py +++ b/lib/spack/spack/build_systems/autotools.py @@ -266,7 +266,8 @@ To resolve this problem, please try the following: def _do_patch_libtool(self): """If configure generates a "libtool" script that does not correctly detect the compiler (and patch_libtool is set), patch in the correct - flags for the Arm, Clang/Flang, Fujitsu and NVHPC compilers.""" + flags for the Arm, Clang/Flang, Fujitsu and NVHPC compilers. Also + filter out spurious predep_objects for Intel dpcpp builds.""" # Exit early if we are required not to patch libtool if not self.patch_libtool: @@ -300,6 +301,13 @@ To resolve this problem, please try the following: ] for o in objfile: fs.filter_file(rehead + o, "", libtool_path) + # Hack to filter out spurious predp_objects when building with + # Intel dpcpp; see issue #32863 + if self.spec.satisfies("%dpcpp"): + fs.filter_file( + r"^(predep_objects=.*)/tmp/conftest-[0-9A-Fa-f]+\.o", r"\1", libtool_path + ) + fs.filter_file(r"^(predep_objects=.*)/tmp/a-[0-9A-Fa-f]+\.o", r"\1", libtool_path) @property def configure_directory(self): |