From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CIXyNFKWFmV3BQAAG6o9tA:P1 (envelope-from ) for ; Fri, 29 Sep 2023 11:18:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CIXyNFKWFmV3BQAAG6o9tA (envelope-from ) for ; Fri, 29 Sep 2023 11:18:10 +0200 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 4B6755C165 for ; Fri, 29 Sep 2023 11:18:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b="DOTT/SRo"; 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=1695979090; 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=3Tmr9YlDYp4sxolPKptevR6pMJkVG+GvEjNbzj73Nx0=; b=JwjeuFGIa5L4HPturBenaahqc6sdYbjx5/MzbHfV2MpVCjCyXiOt/m06PF5obgwIGs9z1L Q62E2nuIyN4QZGu/+B38wIvQT53Ha9cvMvpvdQNqM6X3u1QnQTX/1OPpxnIbvC8dWrnYqV +2vq1/jrxYznzUsm3bQSgJ/FwoUD9h6eM2Cdi4ZNjhpmqd5ZKMwu6gCffiN62BucJ+Qs6b 3gm4w2GlQVidgX1jOnSv6HLwVWJ1TBwtNzEb7uuyllqMLvJ8GPxFMu29EpYEoCr5F5Cfap fix5KTCX2FmjPSt74DeZpxsquHZzyExUwTsmBAzzAFa+l0ioJW4TtUUTFM9zUQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695979090; a=rsa-sha256; cv=none; b=qrmxLsy7bBVJulyYUxJRnMQGpuii5ShUJlzB0N0eqlP44qrKLBy71xSEJB3jHWb27fshVN 7i7JB7DqUNS3OC+YXTCy64k1mH4XD8iOBlHt69lZPo+L/c/+Hhv3FrIz08HvF0/iVR04wZ Lu3EAk/m5dwk6vtqxgS5fngR7g5NFtUwaboP5zdf4wjH3PYgbKI2W+gueLuVR/aquFYmTz TgVqym77UJ219GRUup+7eLgLEUYKcW78AOkXbhChcA7QVKC+gXyB9y2S0pi/ikuvNxRPGH Mum06sDUpq+PIe59FPacL0Hn86J49xCBvdYAj9s2rkZygvhbz6qVAnuPYWOjLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b="DOTT/SRo"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qm9dI-0005UZ-TM; Fri, 29 Sep 2023 05:18:02 -0400 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 1qm9d6-0005SU-Qc for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:51 -0400 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 1qm9d6-0003tw-Iq for guix-patches@gnu.org; Fri, 29 Sep 2023 05:17:48 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qm9dL-0004lH-83; Fri, 29 Sep 2023 05:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 05/23] gnu: cross-gcc: Enable multilib for avr. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 29 Sep 2023 09:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ , efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: efraim@flashner.co.il, vagrant@debian.org, maxim.cournoyer@gmail.com Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.169597903518014 (code B ref 66263); Fri, 29 Sep 2023 09:18:03 +0000 Received: (at 66263) by debbugs.gnu.org; 29 Sep 2023 09:17:15 +0000 Received: from localhost ([127.0.0.1]:55181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cY-0004gO-HI for submit@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:14 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:53631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qm9cM-0004dv-Hy for 66263@debbugs.gnu.org; Fri, 29 Sep 2023 05:17:09 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4053c6f0db8so133747335e9.3 for <66263@debbugs.gnu.org>; Fri, 29 Sep 2023 02:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1695979000; x=1696583800; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3Tmr9YlDYp4sxolPKptevR6pMJkVG+GvEjNbzj73Nx0=; b=DOTT/SRobUyKPZXQ8wUcYAA4+LmrE3CQWYVxSwQYO7jKbiQjitbHMVIPH3W2NyOMRB L1O5KN0r//Z5bwfxx/wVvyK+ghwMLa7p4KMHJGSojhzptLXFWBKGicSK3En78Fq2ioNt ViM4JJUuMfmffvkeOQ/lDearxoyLmsGZU4NlSpKdneqjG/OgxZ/hcVKEvoKRWq7nNOFm snB2hUY1FP88pRCS2DecDLPu5CJ3OPt+4+6ofxc7JOjbGJcqVk/Hq1bG8A1K3q+qmq3k ORCzXEilmOgMKCkxZRtqmYVfv4CfqFmwavJhioZXvWqHYZ7jPVe7oiNlp1+ibgiblMya 7liQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695979000; x=1696583800; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Tmr9YlDYp4sxolPKptevR6pMJkVG+GvEjNbzj73Nx0=; b=mI2rIEHaI82y1AS7E/ExjuGOdj7qWTkjhcA7Gym2CgDaPuZvUlGOkM2mfRrDCbdiRj T2uWTwFcWxbK10ha+NFgTr/taBS0ZMXBQvpqVdky/9W+SEK5+pXeuSL6XuyE7YiWFbfC fULAxLCPMzW0ZfWBnW2CaANctSGvFlPsjHmR1ITJNUb+5AJEZUNGt3w0IcF1l99PZH4L AqNrIxl/NMZ5g+LHeHr/+IG0FwygigO3T8vo45lJwufkKe2YrKsiqDj+d/J5v5rphNo/ zy6oP9I10wV6AWLPmi77ESUnP05VMkzTee1y6lRYhzPmssU/mfVwOjC5tgF1nXQCykJg yesQ== X-Gm-Message-State: AOJu0Yx8DdV6k0WpJrW5kxSdOVv/r6T/UUwKkB0RYHUqF+GYdvzXqf9+ Fud5x+ref40O4RbzltUXfv5ryFOqV/0jbWFGGFp3rg== X-Google-Smtp-Source: AGHT+IEXdn7dYhe8SXdIb8+GgrzeDc4cnq0q9K6X7pjjfRBXYKR9nOsFxwUCjCzomprD6T9BWS2AcQ== X-Received: by 2002:a05:600c:2286:b0:3fd:2e89:31bd with SMTP id 6-20020a05600c228600b003fd2e8931bdmr3358502wmf.14.1695978999678; Fri, 29 Sep 2023 02:16:39 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc40f000000b004013797efb6sm1020933wmi.9.2023.09.29.02.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 02:16:39 -0700 (PDT) Date: Fri, 29 Sep 2023 11:16:09 +0200 Message-Id: <20230929091627.7820-5-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230929091627.7820-1-jean@foundationdevices.com> References: <20230929091627.7820-1-jean@foundationdevices.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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches From: Jean-Pierre De Jesus DIAZ 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.76 X-Migadu-Spam-Score: -4.76 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 4B6755C165 X-TUID: WIAU4vbgPQ3p * gnu/packages/cross-base.scm (cross-gcc-arguments) [target-avr?]: Remove --disable-mutlilib and add --enable-multilib. --- gnu/packages/avr.scm | 4 +--- gnu/packages/cross-base.scm | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm index b9bee5e624..e976203b89 100644 --- a/gnu/packages/avr.scm +++ b/gnu/packages/avr.scm @@ -75,9 +75,7 @@ (define avr-gcc ;; several scripts inside this script, each with a #!/bin/sh ;; that needs patching. (substitute* "gcc/genmultilib" - (("#!/bin/sh") (string-append "#!" (which "sh")))))))) - ((#:configure-flags flags) - #~(delete "--disable-multilib" #$flags)))) + (("#!/bin/sh") (string-append "#!" (which "sh")))))))))) (native-search-paths (list (search-path-specification (variable "CROSS_C_INCLUDE_PATH") diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index f55765f1b0..ec7ca2186d 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -197,12 +197,21 @@ (define (cross-gcc-arguments target xgcc libc) #~((string-append "--with-toolexeclibdir=" (assoc-ref %outputs "lib") "/" #$target "/lib")) + #~()) + + #$@(if (target-avr? target) + #~("--enable-multilib") + #~()) + #~())) - #$(if libc - flags - #~(remove (cut string-match "--enable-languages.*" <>) - #$flags)))) + (remove + (lambda (flag) + (or (and (string-match "--enable-languages.*" flag) + #$libc) + (and (string-match "--disable-multilib" flag) + #$(target-avr? target)))) + #$flags))) ((#:make-flags flags) (if libc #~(let ((libc (assoc-ref %build-inputs "libc"))) -- 2.34.1