liblapack: disable failing tests on darwin

Tests were enabled in #113021 and staging is broken since then.
This commit is contained in:
Ivan Babrou 2021-03-06 14:08:29 -08:00 committed by Frederik Rietdijk
parent 2445e9a681
commit 06c5ea2a14

View File

@ -10,7 +10,7 @@ let
version = "3.9.0";
in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "liblapack";
inherit version;
@ -23,6 +23,9 @@ stdenv.mkDerivation {
nativeBuildInputs = [ gfortran cmake ];
# Configure stage fails on aarch64-darwin otherwise, due to either clang 11 or gfortran 10.
hardeningDisable = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "stackprotector" ];
cmakeFlags = [
"-DCMAKE_Fortran_FLAGS=-fPIC"
"-DLAPACKE=ON"
@ -33,6 +36,26 @@ stdenv.mkDerivation {
doCheck = true;
# Some CBLAS related tests fail on Darwin:
# 14 - CBLAS-xscblat2 (Failed)
# 15 - CBLAS-xscblat3 (Failed)
# 17 - CBLAS-xdcblat2 (Failed)
# 18 - CBLAS-xdcblat3 (Failed)
# 20 - CBLAS-xccblat2 (Failed)
# 21 - CBLAS-xccblat3 (Failed)
# 23 - CBLAS-xzcblat2 (Failed)
# 24 - CBLAS-xzcblat3 (Failed)
#
# Upstream issue to track:
# * https://github.com/Reference-LAPACK/lapack/issues/440
ctestArgs = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) "-E '^(CBLAS-(x[sdcz]cblat[23]))$'";
checkPhase = ''
runHook preCheck
ctest ${ctestArgs}
runHook postCheck
'';
meta = with lib; {
inherit version;
description = "Linear Algebra PACKage";