From patchwork Tue Nov 28 11:34:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 56897 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F37E527BBE2; Tue, 28 Nov 2023 11:37:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CA7BF27BBEA for ; Tue, 28 Nov 2023 11:37:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7wOi-0006wh-MZ; Tue, 28 Nov 2023 06:37:00 -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 1r7wOg-0006uL-1X for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:58 -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 1r7wOf-0008BO-OA for guix-patches@gnu.org; Tue, 28 Nov 2023 06:36:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7wOm-0003OK-I7 for guix-patches@gnu.org; Tue, 28 Nov 2023 06:37:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH v1 13/22] gnu: cross-gcc: Only C and C++ for AVR. References: <20230929091333.7623-1-jean@foundationdevices.com> In-Reply-To: <20230929091333.7623-1-jean@foundationdevices.com> Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Nov 2023 11:37:04 +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: moreinfo patch To: 66263@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.170117139212850 (code B ref 66263); Tue, 28 Nov 2023 11:37:04 +0000 Received: (at 66263) by debbugs.gnu.org; 28 Nov 2023 11:36:32 +0000 Received: from localhost ([127.0.0.1]:45628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wOG-0003LA-BZ for submit@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:32 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:60684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7wO5-0003Jg-Qi for 66263@debbugs.gnu.org; Tue, 28 Nov 2023 06:36:22 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40b31232bf0so43253555e9.1 for <66263@debbugs.gnu.org>; Tue, 28 Nov 2023 03:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1701171369; x=1701776169; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ffafbptjgBEnz9CM78WD/HTpqBOgVdEX0sYuLgtNjj4=; b=P5AJRZvvLxh/lGEQyy2GeZ/z5PPyQEYc95t3W77lbqkXtfDl1RaonZOmQfh3TEFidf Nmy0wlAr+8SEA4yXj7oHcXJcjzzSBJ1vp/kAzMWTf+K7paL2/6xhiqclI8lOo3772JGO y7S+7kCUh3H+L2+5bd7AK9ihA7RLD1Prbz0/sNJn0UqWPf49L1cpJL/TPUQ8iu6gJNk9 4VA31kf0nOmtZ3wjQYEiYBdtFb8ZH8hnfnILVDkwVqC/BobcfGjaV+Gfp/9xlSCErosL n1BECqDYwV4uiO/yp8mwwmnK6+mFczIhDKRXx7mdr3iTIcQxeU8xTw/Ymt1XyuU8wxJJ 8/WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701171369; x=1701776169; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ffafbptjgBEnz9CM78WD/HTpqBOgVdEX0sYuLgtNjj4=; b=L88K2X47n5u3TpP0qLI7ogY3axHEgsd1J0Fa42XwKhK+1cm51sj8MZmEd3DDTVHpYs mySZJmzeIvgRw44bP2cilU1rA42WV3UxKLE1SIV6B+22TOA+n73O9JzIJDdURBv5OeiF x6Gv8nv6sxdTvWcarenmgodh/sZmSDJX/El7ZcxpjfT4Oj69apvLg2cxTVCwqQYQZGBf NbE0yw3A535210xKnqMJNCVdwI9rwZlEMQOkNutU5kayC8cMj2FPrLHsnabodFgCw5VZ IAs6okfPKMpa4ocm6JCcoD6c4NpV3SVFFsjyTa/rLHWSChYY/bEeacKrGYfOoK96ykbD QlqQ== X-Gm-Message-State: AOJu0Yz5ItfxeLViDMDzAfrTBrq+dj0F05LY5r9vRC9u+/E9Ast1l6Vz LQnbktH+0htGHkbcSZ/SDVP1oi7C+7kIvFhn6lU= X-Google-Smtp-Source: AGHT+IFZtDGlhWQKqqYfN32A+5gTZoCq1Gp+ivZu/QGyqYqBwq96jYldsFRVbtoXgcOS5IlIA00Duw== X-Received: by 2002:a05:600c:548f:b0:40b:4aef:deb1 with SMTP id iv15-20020a05600c548f00b0040b4aefdeb1mr1445306wmb.23.1701171368920; Tue, 28 Nov 2023 03:36:08 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id f7-20020a05600c154700b0040b4cb14d40sm1848769wmg.19.2023.11.28.03.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 03:36:08 -0800 (PST) Date: Tue, 28 Nov 2023 12:34:56 +0100 Message-ID: <20231128113510.11214-13-jean@foundationdevices.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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 X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cross-base.scm (cross-gcc-arguments) [target-avr?]: Add --enable-languages=c,c++. Change-Id: I1d63bb1b0a3074b9ff8650c5afb93777183c0ea4 --- gnu/packages/cross-base.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index 58c37e43c1..72f786dc35 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -200,13 +200,18 @@ (define (cross-gcc-arguments target xgcc libc) "/" #$target "/lib")) #~()) + #$@(if (target-avr? target) #~("--enable-multilib") #~()) #$@(if (and libc (target-avr? target)) - #~((string-append "--with-native-system-header-dir=" + #~(;; By default GCC will attemp to compile + ;; some libraries for other languages (objc, + ;; fortran) but compilation fails for AVR. + "--enable-languages=c,c++" + (string-append "--with-native-system-header-dir=" #$libc "/" #$target "/include")) #~()))