From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 0CsKJ5/GFWawwgAA62LTzQ:P1 (envelope-from ) for ; Wed, 10 Apr 2024 00:52:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0CsKJ5/GFWawwgAA62LTzQ (envelope-from ) for ; Wed, 10 Apr 2024 00:52:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=linaro.org header.s=google header.b="w9/EqjDz"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=linaro.org (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712703135; a=rsa-sha256; cv=none; b=O8jloF0jHh5KVTjqYTo8sGiMR8AaU8t2sxF1EkBIh0jsRYZKcGIoF5M6u08Ii50iJMkdOp eWCIZ/JTJqcDUvg+KJ+YGHPLPFC7sWhvMAJJCPyxKGFHHkecRqhyXvMZj/KctXwrsuxAnB 5/27cvyuLFkdahR37nugXgzmzANHOPhSoUQ53iSXmOVqDHesBnTG3gvkTwNfZb885W4DUC JrWwZQHc+F6CCvOAZ+gLLuTebYnsJC/hlQvpxgSBiwvvA9cA0f1qoXKvAWqHN8p6udI74U DEto/K9d0X199TIEnD/RcyZhJHYarDre8Tz4rOi0wefAiVh1fFYPRmEfHvsiqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=linaro.org header.s=google header.b="w9/EqjDz"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=linaro.org (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712703135; 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: 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=o9hj4HXR35lHnZxXyZsi5Djas3IRCwIQ1LarSsMVbB0=; b=rXxQNovxwoMc/2aRVD5cmzO95MqGHBhpaV79tDGxtU2AfPpQDYtVjFfg8IIdoDh5l6W1Wz pp6MhavWeWckFCfx2zsLG46UCSxrTlk04bv4NSjB+ciLF/AqtAZr0mN4uxm4sxllpS7QUM UCiBJdGTxPBtlVrogxCcKUOrTRU7hOe+ZBD9vfSXFTvQICgmPEGpXXjmaSrIwXYtiZ/uIs +K1XxLMjsiVIqoWBaCx9lMEvimDfdG+/PZNHv5wcKOGO1RhMdJeIpwFs88/gUmp2ywTXFv +mPgCk9gYfqyfnDl1iUGvgDhl+8prbog601WijgGcViayLaYHQtkvp2+RUuK/A== 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 11DBF682BF for ; Wed, 10 Apr 2024 00:52:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruKJp-0003HK-5U; Tue, 09 Apr 2024 18:51:57 -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 1ruKJo-0003Gw-Ai for guix-patches@gnu.org; Tue, 09 Apr 2024 18:51:56 -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 1ruKJo-00029g-2e for guix-patches@gnu.org; Tue, 09 Apr 2024 18:51:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruKJw-0000O1-9Q for guix-patches@gnu.org; Tue, 09 Apr 2024 18:52:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Apr 2024 22:52:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68058@debbugs.gnu.org Cc: jean@foundationdevices.com X-Debbugs-Original-To: Jean-Pierre De Jesus DIAZ via Guix-patches via X-Debbugs-Original-Cc: 68058@debbugs.gnu.org, Jean-Pierre De Jesus DIAZ Received: via spool by 68058-submit@debbugs.gnu.org id=B68058.17127031001369 (code B ref 68058); Tue, 09 Apr 2024 22:52:04 +0000 Received: (at 68058) by debbugs.gnu.org; 9 Apr 2024 22:51:40 +0000 Received: from localhost ([127.0.0.1]:51707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruKJX-0000Ll-30 for submit@debbugs.gnu.org; Tue, 09 Apr 2024 18:51:40 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:43140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruKCw-0008Hs-Iw for 68058@debbugs.gnu.org; Tue, 09 Apr 2024 18:44:51 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6e6b22af648so5018443b3a.0 for <68058@debbugs.gnu.org>; Tue, 09 Apr 2024 15:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712702676; x=1713307476; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o9hj4HXR35lHnZxXyZsi5Djas3IRCwIQ1LarSsMVbB0=; b=w9/EqjDzDp1ppWDBu+Kocr1xtsq0Y9LoBhby5b7huABvq8ip/9EBMim9KlQ2pkSYDB huIJ724JrnXsEoi1i1bwmdP6hCejm5ShzgJQP5RmMzAvoLC1jsqudNOGanNdJM76biVP KXwlX+Bfgl+wTfNuzlX6JqpXiRduH8K4ZFXyH2k0ooAKGsG8/NWrUHw50QwGKjCjq2al 1U7qKIa92aempcJC2stHiePosDSeIP0Mrkc7/MVTU/IHY3DfomfRJZbOV1BomMgMxNIV Q8CvRTOxCS1hxvzY85lwUaP0J9lsvGxw4gojttN0QW2GoaqbVmbQG4UBzLpTgsYvB1FF 0nxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712702676; x=1713307476; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=o9hj4HXR35lHnZxXyZsi5Djas3IRCwIQ1LarSsMVbB0=; b=j4XD+fU19JTRYUSGC9e6LYsck8fI3tp1V+p8hnqwWfnlsSjnfkBFoedwyZWty3UIQK 8cQJrl8Kab6c7IheRFhRQRmFOTHCfrejYxe0D5vxGS1Qx9eLqoZKqPa76GQqk4kWnvYG PJ8xQAhDt965lHgJwaxvSrFp9w43qjD04mHWGt5hUVKnw20aYATiGLhG8XqKxoENcRQg 01RQHeoXP5o3HxZub3jxckrfP/roaZBi7pGMYzMFDLgLE27A+6KUUNw9DPHyyYvM07jL lT2i2Agdx/74agzRhUp5zZAE+d0V/4MbZ0oNqwffUYD7Y7Lltdw7bgdFZwrTkKQatN8b qIXw== X-Gm-Message-State: AOJu0YzB6d76JLvYoDe1UQYQAgprWaFIDlPDuhdlDjPFceDIP6ylybEo WNMTGE3qGb2kGUTFBllkQLdHSJSDG9BjKiynE6fV9+ShsgfIJoGdA4PJh9cf3U/zCYi3nrrtwdo 9 X-Google-Smtp-Source: AGHT+IFG7RXYsGOoaQ6ObDH1veLAb03G9ydVaW5XEfcr403Pdn921/8sa22wC7cu+0YkoxDey2x6zg== X-Received: by 2002:a05:6a21:3405:b0:1a7:a422:7394 with SMTP id yn5-20020a056a21340500b001a7a4227394mr1262768pzb.17.1712702676257; Tue, 09 Apr 2024 15:44:36 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:40d9:8292:7448:72f1]) by smtp.gmail.com with ESMTPSA id y41-20020a056a00182900b006eb058b2703sm8809007pfa.187.2024.04.09.15.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 15:44:35 -0700 (PDT) From: Thiago Jung Bauermann In-Reply-To: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@foundationdevices.com> (Jean-Pierre De Jesus DIAZ via Guix-patches via's message of "Wed, 27 Dec 2023 13:09:45 +0100") References: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@foundationdevices.com> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 09 Apr 2024 19:44:33 -0300 Message-ID: <87jzl688by.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Tue, 09 Apr 2024 18:51:35 -0400 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.27 X-Migadu-Queue-Id: 11DBF682BF X-Migadu-Spam-Score: -5.27 X-Migadu-Scanner: mx10.migadu.com X-TUID: o8jo1wTPVQq5 Hello, [ What I'm saying here is a duplicate of what I just sent in issue #69394, but I think it's useful to have these comments together with the patch, to facilitate discussion about it. ] Jean-Pierre De Jesus DIAZ via Guix-patches via write= s: > * gnu/packages/cross-base.scm (cross-gcc-toolchain): Add > native-search-paths. > > Change-Id: Ib4cc510fde71b8d3140e1001c3931f74300da8a0 > --- > gnu/packages/cross-base.scm | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm > index 6ee7b315d8..dc6f7922d6 100644 > --- a/gnu/packages/cross-base.scm > +++ b/gnu/packages/cross-base.scm > @@ -760,6 +760,7 @@ (define* (cross-gcc-toolchain/implementation target > (((names . directory) ...) > (union-build #$output directory)))))) > (inputs `(,xbinutils ,xgcc ,@(if libc (list libc) '()))) > + (native-search-paths (package-search-paths xgcc)) > (home-page (package-home-page xgcc)) > (synopsis > (format #f "Complete GCC tool chain for C/C++ development (~a)" tar= get)) > > base-commit: 756ba0429e84ee0f8ce30484439b78c00c61d286 Today I ran into the problem described in issue 69394 with a custom aarch64-linux-gnu cross toolchain: $ aarch64-linux-gnu-gcc -o ~/tmp/hello -g ~/tmp/hello.c aarch64-linux-gnu-ld: cannot find crt1.o: No such file or directory aarch64-linux-gnu-ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status And I was able to fix it by locally applying the patch above. Thank you! IMHO this patch should be applied. In issue 69394 you wrote that this solution doesn't work when there are multiple cross toolchains installed on the same profile (the CROSS_ environment variables would have all the cross toolchains), but I think that moving from allowing zero cross toolchain installed in the profile=C2=B9 to one cross toolchain installed is already an improvement. := -) -- Thiago =C2=B9 Except for bare-metal cross toolchains, which IIUC don't have this problem because they don't use crt*.o files?