From 3323ad151218406382f20b833873ab509ec65b9b Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 14 Jul 2022 17:25:43 +0200 Subject: [PATCH] FlexiBLAS: Workaround miscompilation on PPC --- .../easyconfigs/f/FlexiBLAS/FlexiBLAS-3.0.4-GCC-10.3.0.eb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/easybuild/easyconfigs/f/FlexiBLAS/FlexiBLAS-3.0.4-GCC-10.3.0.eb b/easybuild/easyconfigs/f/FlexiBLAS/FlexiBLAS-3.0.4-GCC-10.3.0.eb index 47fcb322dc7..42bbeb8fc67 100644 --- a/easybuild/easyconfigs/f/FlexiBLAS/FlexiBLAS-3.0.4-GCC-10.3.0.eb +++ b/easybuild/easyconfigs/f/FlexiBLAS/FlexiBLAS-3.0.4-GCC-10.3.0.eb @@ -11,6 +11,13 @@ toolchain = {'name': 'GCC', 'version': '10.3.0'} local_extra_flags = "-fstack-protector-strong -fstack-clash-protection" toolchainopts = {'pic': True, 'extra_cflags': local_extra_flags, 'extra_fflags': local_extra_flags} +if ARCH == 'ppc64le': + # Workaround optimizer bug in GCC + # See https://github.com/easybuilders/easybuild-easyconfigs/issues/12968 + local_configopts = '-DCMAKE_C_FLAGS_RELEASE="-O0"' +else: + local_configopts = '' + builddependencies = [ ('CMake', '3.20.1'), ('Python', '3.9.5'), # required for running the tests @@ -35,6 +42,7 @@ components = [ 'sources': [SOURCELOWER_TAR_GZ], 'checksums': ['50a88f2e88994dda91b2a2621850afd9654b3b84820e737e335687a46751be5c'], 'backends': local_backends, + 'configopts': local_configopts, }), ('LAPACK', '3.10.0', { 'easyblock': 'CMakeMake',