From 3b085fd66da985920f650ddb625497620cfc8748 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 31 Dec 2024 13:06:12 +0100 Subject: [PATCH] solc: fix build on GCC 14 --- pkgs/by-name/so/solc/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/so/solc/package.nix b/pkgs/by-name/so/solc/package.nix index d36dc55bb69d..b104d8130f37 100644 --- a/pkgs/by-name/so/solc/package.nix +++ b/pkgs/by-name/so/solc/package.nix @@ -71,6 +71,15 @@ let hash = linuxHash; }; + # Fix build with GCC 14 + # Submitted upstream: https://github.com/ethereum/solidity/pull/15685 + postPatch = '' + substituteInPlace test/yulPhaser/Chromosome.cpp \ + --replace-fail \ + "BOOST_TEST(abs" \ + "BOOST_TEST(fabs" + ''; + cmakeFlags = [ "-DBoost_USE_STATIC_LIBS=OFF"