From a6c0b7ab3aeb0ef8670e03ed6bcf62bb38d1d274 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 26 Aug 2020 23:51:00 -0700 Subject: [PATCH] CMake: Update GCC on macOS Conflict message (#18253) * CMake 3.18.0+: Builds with GCC on macOS The latest release of CMake updates libuv, which fixes ObjC code usage on macOS. Passing ObjC code to non apple-clang compilers crashed the build before. Refs.: - https://gitlab.kitware.com/cmake/cmake/-/issues/20620 - https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4687 * CMake: Further issues GCC+macOS There are further issues to fix before this will work. https://gitlab.kitware.com/cmake/cmake/-/issues/21135 --- var/spack/repos/builtin/packages/cmake/package.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py index 3d2f8e71d78..b0dc890aa41 100644 --- a/var/spack/repos/builtin/packages/cmake/package.py +++ b/var/spack/repos/builtin/packages/cmake/package.py @@ -100,12 +100,11 @@ class Cmake(Package): variant('openssl', default=True, description="Enables CMake's OpenSSL features") variant('ncurses', default=True, description='Enables the build of the ncurses gui') - # Tries to build an Objective-C file from libuv with GCC's C frontend - # https://gitlab.kitware.com/cmake/cmake/-/issues/20620 - # https://github.com/libuv/libuv/issues/2805 + # Does not compile and is not covered in upstream CI (yet). conflicts('%gcc platform=darwin', - msg='CMake does not compile with GCC on macOS yet, use clang. ' - 'See: https://gitlab.kitware.com/cmake/cmake/-/issues/20620') + msg='CMake does not compile with GCC on macOS yet, ' + 'please use %apple-clang. ' + 'See: https://gitlab.kitware.com/cmake/cmake/-/issues/21135') # Really this should conflict since it's enabling or disabling openssl for # CMake's internal copy of curl. Ideally we'd want a way to have the