From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6A5sBobfCmF+UwAAgWs5BA (envelope-from ) for ; Wed, 04 Aug 2021 20:42:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IGDxAYbfCmH0NgAAB5/wlQ (envelope-from ) for ; Wed, 04 Aug 2021 18:42:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B1BBF1300A for ; Wed, 4 Aug 2021 20:42:13 +0200 (CEST) Received: from localhost ([::1]:36878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBLqG-0003PF-MV for larch@yhetil.org; Wed, 04 Aug 2021 14:42:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBLq6-0003Mn-2D for guix-patches@gnu.org; Wed, 04 Aug 2021 14:42:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBLq5-0003m4-Rr for guix-patches@gnu.org; Wed, 04 Aug 2021 14:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBLq5-00050d-P4 for guix-patches@gnu.org; Wed, 04 Aug 2021 14:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49880] [PATCH 2/2] gnu: gmp-boot: Fix t-scan test crash References: <20210804183454.153783-1-bauermann@kolabnow.com> In-Reply-To: <20210804183454.153783-1-bauermann@kolabnow.com> Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Aug 2021 18:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49880 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49880@debbugs.gnu.org Cc: Thiago Jung Bauermann Received: via spool by 49880-submit@debbugs.gnu.org id=B49880.162810251319239 (code B ref 49880); Wed, 04 Aug 2021 18:42:01 +0000 Received: (at 49880) by debbugs.gnu.org; 4 Aug 2021 18:41:53 +0000 Received: from localhost ([127.0.0.1]:45132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBLpx-00050F-2r for submit@debbugs.gnu.org; Wed, 04 Aug 2021 14:41:53 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:9972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBLpv-000501-5u for 49880@debbugs.gnu.org; Wed, 04 Aug 2021 14:41:51 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out001.mykolab.com (Postfix) with ESMTP id E85F3CFD for <49880@debbugs.gnu.org>; Wed, 4 Aug 2021 20:41:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1628102504; x=1629916905; bh=nfUtC4vWFPESexmRaiK Dcag3wXSk6yr4/ZYNzmfmAUM=; b=n3K5PzU4SXGGdgKnHBI1ispqZK0RQ2vCeSo SaSulF765WX6OloeXB6QmjxzyaDxWy10ZgBPR/IPgRpR5+CilAJPMgRVkZbtsXxM ncGVwgYYm0F0eEgpNJ1YkVKYt1Hj0I07NPx/U0Wg+GWNzri6NOdXlfddIzpW/NPm 6tEpTciGr+j3L1frAgRBv1dhdMAUBS3N/sD8dEnm7nHMEIsksLqLaJZIU5M5TyZ+ qoIM834iIu6rlVrUAcvE5b9vTDTct9TF8DYio/M43r3hXujRH69NlZ27s/H6xpRO XJUW5DaKxwrfhJYavtWNZ7Jf08Op0s7LRkum3DQ1sqHrVvRE5dMN1xJ8VRkE6Nag jC6BuaUeUbQZF7Ia6NiZnOv8EGrHf9K5tAFmi0wZLQNjZZsviu28lgjLbPqNOViY uUTSPArB7nkHXWfkV7opNvcbVjHRA/2MAF7H+7MTFJ0eId3mplzuQWcETgy8grkh gUi1/TETlH1yRwVmtgw95S7+vFJxMlnwGkjH8lMqkUZX9a3IdLjiwjFhu4nvea3+ pxfWixsqAXl5ORYZlEpxgsNGNR7LEL1i3mSdBnPTN6WrrhSAAWVzxuJulOUa8+f1 VR7XxFR32NsB/EAUo/4XvDwF30497Qi4zhgQ2IcbIY55HDFdFrISflSO3EDrfIT+ NOgq6wRg= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out001.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P461NOlnJL4Q for <49880@debbugs.gnu.org>; Wed, 4 Aug 2021 20:41:44 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out001.mykolab.com (Postfix) with ESMTPS id 03786A2F for <49880@debbugs.gnu.org>; Wed, 4 Aug 2021 20:41:43 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 90DF0514D; Wed, 4 Aug 2021 20:41:43 +0200 (CEST) Date: Wed, 4 Aug 2021 15:41:28 -0300 Message-Id: <20210804184128.153984-1-bauermann@kolabnow.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches From: Thiago Jung Bauermann via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628102533; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nfUtC4vWFPESexmRaiKDcag3wXSk6yr4/ZYNzmfmAUM=; b=lbO4Kg8asfvKo4XZCRkj7jXvLCvHnHaBqEx93ilFoeammlbRIfpYvIjww+23IkK6D9rAVv sh2HbYn8CZyP4HxLmLNU0v7KnH97nouIdIhzQru8ZhtI0SsZwtxUijM114quRAgyyw336Z S0KL8mgdCNG7eB3KTRRct3olVFSyRSfQAiGlibpUm1n229XJa8FMLqNc3EQrPNZ4ybBO9C PbnQBKDWnBTHBYSitvbD9bvQ+99RXFBNp6TkRD+x1fUZW7ci1BAjl49GINoajCdbRyKGxp FgCKVEJ6E+reSbng8QrGI74HbHp4Eu8qO5eT0j3stSoB4Cgal+JVJkZ8/uwRdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628102533; a=rsa-sha256; cv=none; b=gm5syZZFB8uHiQ84iV2IYixj5Pyw4NH2S7lHkrrTAgrHUoqvedFnoKw86sXjthCmPuXukv OKtDBJpoKzi9BIDhQ0vyMU28BQEaZyqaKVek4zpg81xM8P9YYIvDj6xiF3FPPvPnNNLdhJ ATUU+weMy/rIMXl7+ZiIISdtSThMrQFfoASIqcpVhtX84iE7sNietxgJkAxfJcD6hbcA2f cCD9W75C4EqTQ1WjsJ5XtPdtAgGgjgB8//fLgfCpz+WHyuS6ol24FoEPlp20/E7ivhWVMA /VTJr8eKhdMxnuRDBXT0fE/lUd93XAY130lhVUoBTAnbVBvrTnO9qPgi3X3oUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=n3K5PzU4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.59 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=n3K5PzU4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B1BBF1300A X-Spam-Score: 2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: RI+Ie0vCpWPK GMP 4.3 was released with a bug in the t-scan test which causes it to crash with a segmentation fault. Backport fix from upstream. * gnu/packages/commencement.scm (gmp-boot): Apply gmp-4.3-fix-t-scan-test.patch. * gnu/packages/patches/gmp-4.3-fix-t-scan-test.patch: New file. --- Hello, With this and the previous patch applied, gmp-boot builds successfully on powerpc64le-linux both in master and core-updates-frozen. It should also fix the same problem in i686-linux: https://ci.guix.gnu.org/build/699347/details gnu/packages/commencement.scm | 4 +++- .../patches/gmp-4.3-fix-t-scan-test.patch | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/gmp-4.3-fix-t-scan-test.patch diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index ae3f07bc59ef..16eb46d44d77 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -1840,7 +1840,9 @@ ac_cv_c_float_format='IEEE (little-endian)' (uri (string-append "mirror://gnu/gmp/gmp-" version ".tar.gz")) (sha256 (base32 - "15rwq54fi3s11izas6g985y9jklm3xprfsmym3v1g6xr84bavqvv")))) + "15rwq54fi3s11izas6g985y9jklm3xprfsmym3v1g6xr84bavqvv")) + ;; See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60933#c11 + (patches (search-patches "gmp-4.3-fix-t-scan-test.patch")))) (arguments (substitute-keyword-arguments (package-arguments gmp) ((#:configure-flags gmp-configure-flags) diff --git a/gnu/packages/patches/gmp-4.3-fix-t-scan-test.patch b/gnu/packages/patches/gmp-4.3-fix-t-scan-test.patch new file mode 100644 index 000000000000..85b4b666215a --- /dev/null +++ b/gnu/packages/patches/gmp-4.3-fix-t-scan-test.patch @@ -0,0 +1,24 @@ +Testcase fix obtained from upstream at: + +https://gmplib.org/repo/gmp/raw-rev/966737bd91ed + +# HG changeset patch +# User Torbjorn Granlund +# Date 1318259187 -7200 +# Node ID 966737bd91ed4cd158ca9730167f70db47442fc1 +# Parent 27913f466a23776215bd9341866e10a50cf61c01 +(check_ref): Fix loop end bound. + +diff -r 27913f466a23 -r 966737bd91ed tests/mpz/t-scan.c +--- a/tests/mpz/t-scan.c Mon Oct 10 12:06:39 2011 +0200 ++++ b/tests/mpz/t-scan.c Mon Oct 10 17:06:27 2011 +0200 +@@ -79,7 +79,7 @@ + + for (isize = 0; isize <= size; isize++) + { +- for (oindex = 0; oindex <= numberof (offset); oindex++) ++ for (oindex = 0; oindex < numberof (offset); oindex++) + { + o = offset[oindex]; + if ((int) isize*GMP_NUMB_BITS < -o) +