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 6DwbLpDRHmVoDQAAG6o9tA:P1 (envelope-from ) for ; Thu, 05 Oct 2023 17:09:05 +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 6DwbLpDRHmVoDQAAG6o9tA (envelope-from ) for ; Thu, 05 Oct 2023 17:09:04 +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 A73115F05D for ; Thu, 5 Oct 2023 17:09:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=aQTrZTlC; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696518544; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=t3N2CnQ9vxWLXhIdGb0zqW0JaIZUrNlBlMgB1T6JHaU=; b=XPRrqU1/LvFrj1kqwurj2lhwEzSAg3Fm9uc0MzdO5K6KcFbDy33Yz/1IIIyIx0EYVYwwIY 78tsg4ZTG1MLGGiLOw+oYourFnpn2NUMlZff11xGIr9NPbVT5/xXTbltB/p/++zGLE0Lbv 9Qg2sNzx3z1iA0NNWbO7CUbv8Ni5qGDSwKWRABtAixLBGFG2lW0IJOeWNZ8N5fHvYpRoJB FOABplzT+ZSCNZkL/7gzrlgZA1XMf4XNdm1rC41NyDGw++M3FlrMDCN/m4my0fHtA/56Wp DKwvlC8R4ehGvE1KkN5w4bxlpDSi0dhifEmn50/XOnxMEviy0I+XcAmxPn5OsQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696518544; a=rsa-sha256; cv=none; b=k8X/kk1WlErqvURBrfkNG0ypiEi+j+Y8JdEbyz6pLyeVWomHP/0ymFMfHezlqxrrZDObp6 pmKZTPrii5Wf7u99a27Sl4sOukHkYq/CYtlZb4MARdHrFuG+Q6a+PAAFPsxtrM9kInxRN9 ovSm/JHUsaiZYcbyo0EiFexWcMy2ukUviraVaJDU0skJtGD8m23Goz/S1u1tCSOkgjf3CA riREqeGSi+VbEeVN355oaQshW5kbe4qcNFlWnl5PoD/hCb09MKntnFrRoCGoV39DytWSYg ggkA/+gl7v39pU2aJaA9SRX87vnC2aLthq3tIZ2Ivb0FKrH2jOn/xXVwaHMKTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=aQTrZTlC; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoPy9-0007i8-PI; Thu, 05 Oct 2023 11:08:53 -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 1qoPy3-0007gv-Rf for guix-patches@gnu.org; Thu, 05 Oct 2023 11:08:49 -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 1qoPxz-0008G0-Fv for guix-patches@gnu.org; Thu, 05 Oct 2023 11:08:44 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoPyH-00018K-Ny for guix-patches@gnu.org; Thu, 05 Oct 2023 11:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66263] [PATCH 16/23] gnu: cross-gcc-search-paths: Handle AVR target. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Oct 2023 15:09:01 +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: Jean-Pierre De Jesus DIAZ Cc: 66263@debbugs.gnu.org, vagrant@debian.org, efraim@flashner.co.il Received: via spool by 66263-submit@debbugs.gnu.org id=B66263.16965185144318 (code B ref 66263); Thu, 05 Oct 2023 15:09:01 +0000 Received: (at 66263) by debbugs.gnu.org; 5 Oct 2023 15:08:34 +0000 Received: from localhost ([127.0.0.1]:48177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoPxq-00017Z-1o for submit@debbugs.gnu.org; Thu, 05 Oct 2023 11:08:34 -0400 Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]:60598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoPxn-00017H-Tp for 66263@debbugs.gnu.org; Thu, 05 Oct 2023 11:08:32 -0400 Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-65d5a6230fcso5640236d6.0 for <66263@debbugs.gnu.org>; Thu, 05 Oct 2023 08:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696518487; x=1697123287; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=t3N2CnQ9vxWLXhIdGb0zqW0JaIZUrNlBlMgB1T6JHaU=; b=aQTrZTlCln/TUzN2ULtQZCCZ4TBXsQ+E2OQeWQAusf+X4VPMa5yFD+C3fQau8QbiXc HyX+gxY4gA5jniDuB8+8pbXlfBt/zZkwGd2GxM5KDJ0If00QW12XUanpaZuEPEEsZDhb y8uIPn6YQ3Mb8PugjhRPms/u/jcXLxkpsHn5TOthQUKLzzzMqJR+6qSb+5fCk45lJoVb eGSHAbjlBX8WCYY4X416j7BQsI94+2ZEv+T2L03vY7k+9gYwU+EKojpfpD9u9IHf/FVE KvkdklmF0HjjDOKCtTnhKFaZEewLkf50U9oPa5ur/7xY7vyVFJRzfHZ38U9eKjXl8lys 0j5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696518487; x=1697123287; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t3N2CnQ9vxWLXhIdGb0zqW0JaIZUrNlBlMgB1T6JHaU=; b=QAd5vZ77fIXpzcBidyYqZqp41VdS+x+5Ks6PgWwMrSc5TUyavzFCqyQaM+y73FYWVw lzP6lNNMvRU+VzJekzjHeQsgk5QSJCF3SdJK4+3pq/tit6dUGRF87eKEjS5805EWatfB L28iMoJx0aK/d77LpUaPtoZXoXsKSOQJUIeQ6F3odt8yW0755/LHkET5BH11HCnziY5X x8LflLQWPgR0baUS+CjE1a7BQekzfIMI+63x3o3CuW4YCNVyPOO47NZeVbe95P4Ru3fa /lZJhnWVGrWvozp/Q/0pI3PRVwBrMAK9HLCLqrjkx8FFSGq9ePmctThTtRkUnCGrbben AS4g== X-Gm-Message-State: AOJu0Yy5Yph25c7uJunleK3zT25qpsrGMVVvoSJQnt/YFVbgXlPKUJoS K6P8PeBT7aOCbtTzQI47PME= X-Google-Smtp-Source: AGHT+IH0mYCKU0hNLhpU4YTs5Jjr19BZO1I4h7UDOFdgiz+8iRi5BzThG35RJNtXxThYdEep0AmLdg== X-Received: by 2002:ad4:4c52:0:b0:65b:239f:351b with SMTP id cs18-20020ad44c52000000b0065b239f351bmr5933125qvb.42.1696518487661; Thu, 05 Oct 2023 08:08:07 -0700 (PDT) Received: from hurd (dsl-151-116.b2b2c.ca. [66.158.151.116]) by smtp.gmail.com with ESMTPSA id g20-20020a0ce4d4000000b00641899958efsm554351qvm.130.2023.10.05.08.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 08:08:07 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <20230929091627.7820-16-jean@foundationdevices.com> (Jean-Pierre De Jesus DIAZ's message of "Fri, 29 Sep 2023 11:16:20 +0200") References: <20230929091627.7820-1-jean@foundationdevices.com> <20230929091627.7820-16-jean@foundationdevices.com> Date: Thu, 05 Oct 2023 11:08:06 -0400 Message-ID: <87fs2pqf8p.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 2.76 X-Migadu-Spam-Score: 2.76 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: A73115F05D X-TUID: 9BlWjqIUzl0C Hi, Jean-Pierre De Jesus DIAZ writes: > * gnu/packages/cross-base.scm (cross-gcc-search-paths): Handle AVR > target case. > --- > gnu/packages/cross-base.scm | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm > index 10d912b755..ee90424076 100644 > --- a/gnu/packages/cross-base.scm > +++ b/gnu/packages/cross-base.scm > @@ -267,6 +267,31 @@ (define (cross-gcc-snippet target) > "-DTOOLDIR_BASE_PREFIX=\\\"../../../../\\\"")) > #t)) > > +(define (cross-gcc-search-paths target) > + "Return GCC search paths needed for TARGET." > + (cons (search-path-specification > + (variable "CROSS_LIBRARY_PATH") > + (files `("lib" "lib64" > + ,@(list (string-append target "/lib") > + (string-append target "/lib64"))))) > + > + (map (lambda (variable) > + (search-path-specification > + (variable variable) > + > + ;; Add 'include/c++' here so that 's > + ;; "#include_next " finds GCC's > + ;; , not libc's. > + (files (match variable > + ("CROSS_CPLUS_INCLUDE_PATH" > + `("include/c++" "include" > + ,@(list (string-append target "/include/c++") > + (string-append target "/include")))) > + (_ > + `("include" > + ,@(string-append target "/include"))))))) > + %gcc-cross-include-paths))) That was a bit hard to parse, but LGTM. -- Thanks, Maxim