From 3cf4ebd8c224dfc36a69b64ef6e6942707f7e11f Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 21 Dec 2024 20:15:26 +0100 Subject: [PATCH] haskellPackages.HsSyck: implicit function decl may not fail build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is another gcc 14 workaround. haskellPackages.HsOpenSSL: don't silence incompatible-pointer-types Disabling the error is a better option than silencing the warning which still applies… (cherry picked from commit 9c577069d9cd254c955ed320e45887c5ac991f90) --- pkgs/development/haskell-modules/configuration-common.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 8c4607814569..21e6e84c135d 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -245,8 +245,12 @@ self: super: { # https://github.com/haskell-cryptography/HsOpenSSL/issues/93 # https://github.com/haskell-cryptography/HsOpenSSL/issues/95 HsOpenSSL = appendConfigureFlags [ - "--ghc-option=-optc=-Wno-incompatible-pointer-types" + "--ghc-option=-optc=-Wno-error=incompatible-pointer-types" ] super.HsOpenSSL; + # Work around compilation failure with gcc >= 14 + HsSyck = appendConfigureFlags [ + "--ghc-option=-optc=-Wno-error=implicit-function-declaration" + ] super.HsSyck; # There are numerical tests on random data, that may fail occasionally lapack = dontCheck super.lapack;