From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EPJQL32aaWd3TgAAqHPOHw:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:14:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id EPJQL32aaWd3TgAAqHPOHw (envelope-from ) for ; Mon, 23 Dec 2024 18:14:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hprN5OkE; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=Sr8nTNWY; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734974077; 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=p76qjktoazycFjstTkyVbMSl1oGXPNw7X1ICPTaTiQA=; b=epvlKJtsQ5JKinDMFxDKo2KXJgfDdFEz/eugMbZfPjP1mnoVF04CrFanIbw0QrxyCd84IT +KDS4z9Svk8cxy27DwNSm3YZ+KYp7RFcPftqICUExelAQchr/fTil/2ju7RLzrkHV62FZS f5I07p/n1WZ2vM8ykqvxGh9XZyeng42fWACHGoL/Wd8+ofkucFsD0chEhrWMYlguv4cB35 2zBFF33+Gl1UTfl64DFfPjOU8nLHDXXi3SvOUL8wnlgBP57CKX72cKal2NOdMxCuvysTmE 8Vf5XNqs3bjbiR+XzN783LVfIBpBF8paIjnZi1kcDh5RovSU9XZ8ORjwowrdaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hprN5OkE; dkim=fail ("headers rsa verify failed") header.d=qq.com header.s=s201512 header.b=Sr8nTNWY; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734974077; a=rsa-sha256; cv=none; b=pHemS2iBm8VSV+nXiNg8OfHc5MaF5ShGn5V6EgNRX27OPvIQLAW4+KS+XT17VY8Xmj1KAy XA+FHQLbvEBf4ig2jaseqTQm2ARSAakdQCbXdkZmjs2OblozQbgrMJiCn/MtMYD9gPlLB9 aVGkJ3hgI3kJaTyIaWcpHFM8v34dSpXeMZG9PWgodxGBoBu+izfJEQBCaRDsZBxTySZjA7 Ks/C7N4HSy9iKcRsiGj7dNcDksGzj4O0uT5UfZC7QgtU5zMyT+bXCJb7D+h0lz7ToryEEX CQpBiFDwXVmxH4NRI+YxSNSkWOqbjJfjhMZ0mYnWSk5cmEIydVwcGMe4A68v4A== 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 83DEC8929A for ; Mon, 23 Dec 2024 18:14:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPm0O-00005X-5j; Mon, 23 Dec 2024 12:14:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPm0L-0008VA-Bj for guix-patches@gnu.org; Mon, 23 Dec 2024 12:14:05 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPm0L-0001Sf-2n; Mon, 23 Dec 2024 12:14:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=p76qjktoazycFjstTkyVbMSl1oGXPNw7X1ICPTaTiQA=; b=hprN5OkEiEWGIhHJd3IbvHhfACzwrBb8lzkmhiLAVswWrRZh5bXCX2oTQvs4jnqO4TSp1IuejblXSNcSmkNJdOjL8AM48TKJhbOHJlDy/kjAtMF3P5878mYSt3YxHWCx2uyhWA7gcwv++soN3+4VIkaNOdrtwRQGwhqrRCANWOsxkVMCFYwnk2pl4ljqRtkdBn9VKJGPgBq67baZo2dL7HkVbM8V0wdw6NRLknLW4a+nQzT2CWBpF+qRXbu3DL8S63S1bk62BOZLmO4y1JkEalRU4m9ungdJbfMfX/jK+/vs1jMPiQqOtSTmB0eNAQLSophvn+W49KRE1rf7hGFoeg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPm0K-00082O-AA; Mon, 23 Dec 2024 12:14:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75051] [PATCH 12/14] gnu: isl: Fix cross-compiling to loongarch64. Resent-From: Zheng Junjie <873216071@qq.com> Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, janneke@gnu.org, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:14:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75051 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75051@debbugs.gnu.org Cc: Andreas Enge , Janneke Nieuwenhuizen , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Andreas Enge , Janneke Nieuwenhuizen , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 75051-submit@debbugs.gnu.org id=B75051.173497403830839 (code B ref 75051); Mon, 23 Dec 2024 17:14:04 +0000 Received: (at 75051) by debbugs.gnu.org; 23 Dec 2024 17:13:58 +0000 Received: from localhost ([127.0.0.1]:55896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPm0D-00081K-TX for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:58 -0500 Received: from out162-62-57-252.mail.qq.com ([162.62.57.252]:56229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <873216071@qq.com>) id 1tPm0A-000814-S3 for 75051@debbugs.gnu.org; Mon, 23 Dec 2024 12:13:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1734974027; bh=p76qjktoazycFjstTkyVbMSl1oGXPNw7X1ICPTaTiQA=; h=From:To:Subject:Date:In-Reply-To:References; b=Sr8nTNWYLomDDBuetvJ7/gsDIZpCHCE8kJA2jYgqeM5wgEXeKK6X8UwpwPFn8LYtY 1FNdaqRSazfsC1UDhkBjOANNIQj9IdyF+G5d2pXYYEZkeA36xD8Otr6M2NlfcRxyHX Wy9ZWVAZWWntceU1mylt+vOfAST5ykDhHNAcgysM= Received: from m.tailaa68d.ts.net ([240e:391:ebb:8120:ac72:f386:b183:419a]) by newxmesmtplogicsvrszc16-0.qq.com (NewEsmtp) with SMTP id 36E39C13; Tue, 24 Dec 2024 01:13:46 +0800 X-QQ-mid: xmsmtpt1734974026ts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: MSVp+SPm3vtS1Vd6Y4Mggwc= Date: Tue, 24 Dec 2024 01:13:46 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: 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: , Reply-to: Zheng Junjie <873216071@qq.com> X-ACL-Warn: , Zheng Junjie via Guix-patches From: Zheng Junjie via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -3.21 X-Spam-Score: -3.21 X-Migadu-Queue-Id: 83DEC8929A X-TUID: eesGwg8M4UMH * gnu/packages/gcc.scm (isl)[arguments]: When cross-compiling to loongarch64, Add update-config-scripts phase. [native-inputs]: When cross-compiling to loongarch64, Add config. Change-Id: If60b28f64dd3285f5b89000c42e714be07876400 --- gnu/packages/gcc.scm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 6247919fec4..37c002f7fd7 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -37,6 +37,7 @@ (define-module (gnu packages gcc) #:use-module ((guix licenses) #:select (gpl3+ gpl2+ lgpl2.1+ lgpl2.0+ fdl1.3+)) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bootstrap) #:use-module (gnu packages compression) #:use-module (gnu packages multiprecision) @@ -1416,7 +1417,7 @@ (define-public isl (build-system gnu-build-system) (outputs '("out" "static")) (arguments - '(#:phases (modify-phases %standard-phases + `(#:phases (modify-phases %standard-phases (add-after 'install 'move-static-library (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -1431,7 +1432,23 @@ (define-public isl ;; libtool looks for it in the usual locations. (substitute* (string-append out "/lib/libisl.la") (("^old_library=.*") - "old_library=''\n")))))))) + "old_library=''\n"))))) + ,@(if (and (target-loongarch64?) + (%current-target-system)) + `((add-after 'unpack 'update-config-scripts + (lambda* (#:key inputs native-inputs #:allow-other-keys) + ;; Replace outdated config.guess and config.sub. + (for-each (lambda (file) + (install-file + (search-input-file + (or native-inputs inputs) + (string-append "/bin/" file)) ".")) + '("config.guess" "config.sub"))))) + '())))) + (native-inputs (if (and (target-loongarch64?) + (%current-target-system)) + (list config) + '())) (inputs (list gmp)) (home-page "https://libisl.sourceforge.io/") ;https://repo.or.cz/w/isl.git (properties `((release-monitoring-url . ,home-page))) -- 2.46.0