From d0bd8f74cf0ca6c820732473be5f8591bc9fe88c Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Tue, 10 Jan 2023 10:09:10 -0600 Subject: [PATCH] root: conflicts +ipo (#34842) ROOT does not build successfully with `+ipo`, with symptoms as in https://github.com/root-project/root/issues/10777, and discussed most recently in https://github.com/root-project/root/issues/11135. As indicated there, LTO is not a supported build configuration. As of 6.26.10 there is no estimate for a fix since upstream is still broken. --- var/spack/repos/builtin/packages/root/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index 262bea2ca1e..f2d007c677f 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -319,6 +319,10 @@ class Root(CMakePackage): # ROOT <6.14 is incompatible with Python >=3.7, which is the minimum supported by spack conflicts("+python", when="@:6.13", msg="Spack wants python >=3.7, too new for ROOT <6.14") + # ROOT does not support LTO builds + # See https://github.com/root-project/root/issues/11135 + conflicts("+ipo", msg="LTO is not a supported configuration for building ROOT") + @classmethod def filter_detected_exes(cls, prefix, exes_in_prefix): result = []