X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. Resent-From: Jean-Pierre De Jesus DIAZ <jean@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Wed, 27 Dec 2023 12:11:01 +0000 Resent-Message-ID: <handler.68058.B.170367901727998 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68058 <at> debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ <jean@HIDDEN> X-Debbugs-Original-To: guix-patches@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.170367901727998 (code B ref -1); Wed, 27 Dec 2023 12:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2023 12:10:17 +0000 Received: from localhost ([127.0.0.1]:35448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rISjp-0007HV-68 for submit <at> debbugs.gnu.org; Wed, 27 Dec 2023 07:10:17 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jean@HIDDEN>) id 1rISjm-0007H6-I8 for submit <at> debbugs.gnu.org; Wed, 27 Dec 2023 07:10:15 -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 <jean@HIDDEN>) id 1rISjc-0002Zc-Gv for guix-patches@HIDDEN; Wed, 27 Dec 2023 07:10:05 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <jean@HIDDEN>) id 1rISjW-0006lO-02 for guix-patches@HIDDEN; Wed, 27 Dec 2023 07:10:01 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40d5f402571so3743885e9.0 for <guix-patches@HIDDEN>; Wed, 27 Dec 2023 04:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1703678990; x=1704283790; darn=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=OYbIimEWHhR3jSAwes0fARBaxA50+6TJr/6iqgkmcg0=; b=UulLeJNaOvalL6CpbzefyQK2yXfyp9ucQ+iOF5ClenhL5P1hWMJu0RBoSCjhl/rSWp ZmB5W/aJqf5Na8MdidiRJe0t7QH8XXXmYOi+HYdq0Lt62KpEMUUKcFxbxcgh1CrtI8eD 0y5060rN7U5uFx1hRrGWydZORZEfMMxLKZsyj9N5EkoT3Xm9rqI19IjspKXNHhYJOUZb EtreYHLbftuNfdd9BerG7W2YUgHiPTXWsgYymY2eONgWeeKU2J0XQp98xYVtfONB+onI jxBM+0vbHb5bIe5RcfLGO12/DlLKHTsWR2bMmILQTFJpBdeEH04/vCR8qeq4Z59RTJyX a7Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703678990; x=1704283790; 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=OYbIimEWHhR3jSAwes0fARBaxA50+6TJr/6iqgkmcg0=; b=IDkaBAD0OAIApvFxcuRx44SCilJcWzc8RmkHUOw+2YbEcquqLKBfvU3kFP/iMXhrR1 sJ/fpguEyzLcSiazGszXItpM1H2YT0fBA6z02Z0/ME902YwTgyUL+W7PY6GpTZsStB01 67aEaFS9h26Gn1tDC3iInjY5Oskdc6OY6hyi04/AT2XktbmAcQOxCEW621oa4Mk6N1qm vnO07Nj8FoeSXh5E661vkpNp5mt5bcSk7TEYHb79jUE3IHCVtYxzEUEoXmOSGZOEFy6Q iu4FYZYFcVBGiWyhka4dOSmuuInfRI3P8+iDDRcEw3wM71Q6T7WvOkvLEFandAeSttCV PKJQ== X-Gm-Message-State: AOJu0Yxg6ZXv77Mo3HRfS4HxM2HNPphaXT9iRUwYm+weqrUyw7pjmSqG gDUulaL1MizpZOB5QOX6vQl6naCuZKTKvthVULz6j2Bmt0Ax+Q== X-Google-Smtp-Source: AGHT+IGDwaH6rtdHg7jHP2xg4tk/GN2CPobz6XWdE6bQlF8aJquh5OBGxZuuLvky237ZpeO+IAEUOA== X-Received: by 2002:a05:600c:1615:b0:40c:6e31:9248 with SMTP id m21-20020a05600c161500b0040c6e319248mr4234222wmn.4.1703678990394; Wed, 27 Dec 2023 04:09:50 -0800 (PST) Received: from jeandudey.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id r10-20020adfce8a000000b00336781490dcsm14674259wrn.69.2023.12.27.04.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 04:09:50 -0800 (PST) From: Jean-Pierre De Jesus DIAZ <jean@HIDDEN> Date: Wed, 27 Dec 2023 13:09:45 +0100 Message-ID: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=jean@HIDDEN; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) * 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)" target)) base-commit: 756ba0429e84ee0f8ce30484439b78c00c61d286 -- 2.41.0
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Jean-Pierre De Jesus DIAZ <jean@HIDDEN> Subject: bug#68058: Acknowledgement ([PATCH] gnu: cross-gcc-toolchain: Add native-search-paths.) Message-ID: <handler.68058.B.170367901727998.ack <at> debbugs.gnu.org> References: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> X-Gnu-PR-Message: ack 68058 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 68058 <at> debbugs.gnu.org Date: Wed, 27 Dec 2023 12:11:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): guix-patches@HIDDEN If you wish to submit further information on this problem, please send it to 68058 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 68058: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68058 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. Resent-From: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Tue, 09 Apr 2024 22:52:03 +0000 Resent-Message-ID: <handler.68058.B.17127031011377 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68058 <at> debbugs.gnu.org Cc: jean@HIDDEN X-Debbugs-Original-To: Jean-Pierre De Jesus DIAZ via Guix-patches via <guix-patches@HIDDEN> X-Debbugs-Original-Cc: 68058 <at> debbugs.gnu.org, Jean-Pierre De Jesus DIAZ <jean@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17127031011377 (code B ref -1); Tue, 09 Apr 2024 22:52:03 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2024 22:51:41 +0000 Received: from localhost ([127.0.0.1]:51709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruKJY-0000M2-Je for submit <at> debbugs.gnu.org; Tue, 09 Apr 2024 18:51:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:58732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <thiago.bauermann@HIDDEN>) id 1ruKD0-0008Hw-2D for submit <at> debbugs.gnu.org; Tue, 09 Apr 2024 18:44:54 -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 <thiago.bauermann@HIDDEN>) id 1ruKCm-0001zS-27 for guix-patches@HIDDEN; Tue, 09 Apr 2024 18:44:40 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <thiago.bauermann@HIDDEN>) id 1ruKCk-00011v-7y for guix-patches@HIDDEN; Tue, 09 Apr 2024 18:44:39 -0400 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6ecf8ebff50so3784167b3a.1 for <guix-patches@HIDDEN>; Tue, 09 Apr 2024 15:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712702676; x=1713307476; darn=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=Dsq9ZYuwY9XMMP5JniT40/vUNPE1T4FlP7+aXwMbkiDDQkE9tb82s1LLjomGLkwM8j 7EjQ20v+stIxg6Ex1yKTiA4O5GQjr3Pr08ZviO51cwuAn5DnpeHZ2An5bU15wHu1v5c+ 5wOYAIYY9y719DwlW/6cCZb/ZiGdRsm42OmMQwsn4VfEiw0dE03pYEa6IxaTeysEnsfH e8Cw6eF3C8Psje62bkiejNalJ5eHeVE2BMkRD4UIdU1Jg2PJzK1eoKa+luws55aQ3Os0 Gphkonl2YbW0oxjk14mIZWuvQImpo13+skjkr82BfjkR/aCc3PqSRw0Epg2MK6gbvy9F ZN/w== 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=cxIEAMcohQy8OnhD7V+WY46LMXLhfOk2/9T5hzoQjDZCpCSIazGc/wQqEgzhwHeb7U W1fOmdIlj0P34M1ig6vZgQUyg4aZ5D2hR/pVE0dfHpE3op+erZsoHz/U6mXUGVRpKk35 l5OTwOU+MR/u9sDg9mD1Aday16beJghr+HDWQWMAnMDozR6K3pa1rxuRO8l0uhVdUD/t LPxlE03v13exGyYX/ur00m4Xvm48AEcEHZrzWA5RfPMPUHdiRS7V4mFGOn7K+V4eoTTq alLCA9qXPvbNrremWbWJzPeumqMZw0HarZLsDnpk0Dc5O3SwkE60g3WccNjNnT0AH/HA LA/w== X-Gm-Message-State: AOJu0YzaD5x5ZqICCL/Ku36FmI69u1ueKeP2SgmJfDrbgKHv6wXw3kFp OAKSHmEfUXfsETTivr+3x5g/dBo6D9SYNOoj01uy70eBpxgpDoIAbm4ilqpsv9aUEaDMZ75Z976 i 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 <thiago.bauermann@HIDDEN> In-Reply-To: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> (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@HIDDEN> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 09 Apr 2024 19:44:33 -0300 Message-ID: <87jzl688by.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=thiago.bauermann@HIDDEN; helo=mail-pf1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Tue, 09 Apr 2024 18:51:35 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) 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 <guix-patches@HIDDEN> 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?
X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. Resent-From: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Tue, 09 Apr 2024 22:52:04 +0000 Resent-Message-ID: <handler.68058.B68058.17127031001369 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68058 <at> debbugs.gnu.org Cc: jean@HIDDEN X-Debbugs-Original-To: Jean-Pierre De Jesus DIAZ via Guix-patches via <guix-patches@HIDDEN> X-Debbugs-Original-Cc: 68058 <at> debbugs.gnu.org, Jean-Pierre De Jesus DIAZ <jean@HIDDEN> Received: via spool by 68058-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruKJX-0000Ll-30 for submit <at> 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 <thiago.bauermann@HIDDEN>) id 1ruKCw-0008Hs-Iw for 68058 <at> 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 <at> 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 <thiago.bauermann@HIDDEN> In-Reply-To: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> (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@HIDDEN> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Tue, 09 Apr 2024 19:44:33 -0300 Message-ID: <87jzl688by.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 09 Apr 2024 18:51:35 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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 <guix-patches@HIDDEN> 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?
X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. Resent-From: Jean-Pierre De Jesus Diaz <jean@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Wed, 10 Apr 2024 09:47:03 +0000 Resent-Message-ID: <handler.68058.B68058.17127424135844 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> Cc: 68058 <at> debbugs.gnu.org, jean@HIDDEN X-Debbugs-Original-Cc: 68058 <at> debbugs.gnu.org, Jean-Pierre De Jesus DIAZ <jean@HIDDEN>, Jean-Pierre De Jesus DIAZ via Guix-patches via <guix-patches@HIDDEN> Received: via spool by 68058-submit <at> debbugs.gnu.org id=B68058.17127424135844 (code B ref 68058); Wed, 10 Apr 2024 09:47:03 +0000 Received: (at 68058) by debbugs.gnu.org; 10 Apr 2024 09:46:53 +0000 Received: from localhost ([127.0.0.1]:52167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruUXc-0001WC-WD for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 05:46:53 -0400 Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]:42061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jean@HIDDEN>) id 1ruUXZ-0001VA-7A for 68058 <at> debbugs.gnu.org; Wed, 10 Apr 2024 05:46:51 -0400 Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-479ccc89792so3864039137.0 for <68058 <at> debbugs.gnu.org>; Wed, 10 Apr 2024 02:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1712742395; x=1713347195; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yAlebnQTDVr8B2I3nS+Nm7obU6r/bsm9QvR8ZnB4UeA=; b=A3B4eq9b35fGnlulDfi/L05VzSXxi+5WTtrW3RHsPktyYGyEQ8YMr0TonkT8H97SCK Rf49Pf9X79vOjdrpb6Hfx+wBUoxBSDl8x18nJSg5+LFYGc8IPfrrMm7iz1TwsT2ty0n9 uCLLwB8qKTIwC3RR0vni3EMov0gMUyCaGmn08Ge+Q0kXY/QhQkf1cW4LleKICwN77fEI tek+uKOwhBqIY73o1NXIljceXuoZaVG2Z1W0DgrQ1MObuNQj49682QD8ybNy270j4iLm pzdabe868btSi/QSFMF/8J2ZBdhx1WOVC3kQVbL3E4Nc8JS9GiJr5wZ+dN9uVOOICavx pD0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712742395; x=1713347195; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yAlebnQTDVr8B2I3nS+Nm7obU6r/bsm9QvR8ZnB4UeA=; b=SAxnzsTt5Ox8+nDz3+y+4XxYPolOIbzzDyiTwq0MeWHxMrhCorU5XWXcLquyODG71U egkfwXoB5WSwZcTEGOueOaBNfj1oajkdOJDFso5dhNOLdEL6Jq84ZoISv5cHNiS5l5We cZUz3OQYImXu1m6rN2K6KR1jtKZTRZPn5Y36k6sxbQ5wgMXhFc/2UirWfEzZHC5I/Q0o hR1bNXkKFgKELvg7kLywNozB0z+vAou2yBKdq9hrCUp8U4kyj77cR96AVPu7KRCtY6f/ +L/+UG40OIi/o69qHXu+sAxOidQBp+gUBk+DuAWP2+FvE5pdxGOIat2LQB4bIz2tF3dy 3c0Q== X-Forwarded-Encrypted: i=1; AJvYcCVExh64BwcLCUasSuPXqQ3WI9hxBoxRUc1DNUz8HpC4ZYcoQOi3TeAeJ/y+Zt7+/OopRmMwrZUNrIjVhhxEEOQC8V5HTlQ= X-Gm-Message-State: AOJu0Yx6gEtts+3F4DxnAqMN4m5lxqVDVIYHTxgBYSX4SW3XW8hf2OTg hqpejWz0yNveWlolYYAbEg/xi0VcmvCxSKt0/z0xi+77ssgcdrpP6RBPuq5y9hq+CcXgaWaXoSf mO9CBDAEODAZdnnZxmPXVz1AfJABujKzovjpnGg== X-Google-Smtp-Source: AGHT+IGYS6FrC0P/ElpvZqJkjRZAV6c5nkZ6br2ABqf8b2DqEElcGDce50qg0wrFZEUvQcHe0gpBSi2QNCzBMAZsjH4= X-Received: by 2002:a05:6102:50a2:b0:47a:2a10:fb73 with SMTP id bl34-20020a05610250a200b0047a2a10fb73mr249743vsb.4.1712742394959; Wed, 10 Apr 2024 02:46:34 -0700 (PDT) MIME-Version: 1.0 References: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> <87jzl688by.fsf@HIDDEN> In-Reply-To: <87jzl688by.fsf@HIDDEN> From: Jean-Pierre De Jesus Diaz <jean@HIDDEN> Date: Wed, 10 Apr 2024 09:46:24 +0000 Message-ID: <CAG1gdUojt3-ci+Mf8D8Ni-DWqY3RQmq8tMVwiV3M2Gi+fywV-w@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Thiago, >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. = :-) And >=C2=B9 Except for bare-metal cross toolchains, which IIUC don't have this > problem because they don't use crt*.o files? It's only a problem with the platforms that provide a C standard library so bare-metal ones are unaffected. However some of the bare-metal targets provide a C standard library like `avr' or `arm-none-eabi' which I'm still working on, they both provide AVR Libc and Newlib respectively and suffer from the same problem. That said there's no downside on the patch other than the bad user experience IMO, but the bad UX is already there anyway but I think also this should be merged so that we can start making progress towards having more functional cross toolchain packages. On Tue, Apr 9, 2024 at 10:44=E2=80=AFPM Thiago Jung Bauermann <thiago.bauermann@HIDDEN> wrote: > > > 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 <guix-patches@HIDDEN> wri= tes: > > > * 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)" t= arget)) > > > > 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?
X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. Resent-From: Jean-Pierre De Jesus Diaz <jean@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Wed, 10 Apr 2024 09:47:04 +0000 Resent-Message-ID: <handler.68058.B.17127424235967 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann <thiago.bauermann@HIDDEN> Cc: 68058 <at> debbugs.gnu.org, jean@HIDDEN X-Debbugs-Original-Cc: 68058 <at> debbugs.gnu.org, Jean-Pierre De Jesus DIAZ <jean@HIDDEN>, Jean-Pierre De Jesus DIAZ via Guix-patches via <guix-patches@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.17127424235967 (code B ref -1); Wed, 10 Apr 2024 09:47:04 +0000 Received: (at submit) by debbugs.gnu.org; 10 Apr 2024 09:47:03 +0000 Received: from localhost ([127.0.0.1]:52169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ruUXk-0001Xi-HD for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 05:47:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jean@HIDDEN>) id 1ruUXc-0001VD-Dj for submit <at> debbugs.gnu.org; Wed, 10 Apr 2024 05:46: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 <jean@HIDDEN>) id 1ruUXN-0003oM-Vd for guix-patches@HIDDEN; Wed, 10 Apr 2024 05:46:38 -0400 Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <jean@HIDDEN>) id 1ruUXM-0002fB-72 for guix-patches@HIDDEN; Wed, 10 Apr 2024 05:46:37 -0400 Received: by mail-vs1-xe32.google.com with SMTP id ada2fe7eead31-479d6ab7585so2117354137.1 for <guix-patches@HIDDEN>; Wed, 10 Apr 2024 02:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundation.xyz; s=google; t=1712742395; x=1713347195; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yAlebnQTDVr8B2I3nS+Nm7obU6r/bsm9QvR8ZnB4UeA=; b=J+6r4f1aafafjEV4oKYiaLyhdlCjPIeZg7/0Kb889jUaMAMBvqrCE2nWkhkJRupg4Z 39imTFnyaA5UMb1KKijglSURV0ZB6q2/p6h7J892iM9V04kFZOad5lM2fUisKpzdF/pb XBodm6etgaXdrTuaFdDtj35A3Tv+6tAY9qY51MOQT74foPJ71+NSGOh7RIjsz4gVa38h 7e7NCEbrcnZANaDyIgvwzbQTw0kmX/vYJGTfFv51vfvdPAp3HUDB0cmxefcmqw2BXElH E6MCP7OuJYbOSjMg4t6e1r3W0QO9yadb7uupsC0+i14yfwUyKI1SPQ7p+qmwxALzwZSQ awzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712742395; x=1713347195; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yAlebnQTDVr8B2I3nS+Nm7obU6r/bsm9QvR8ZnB4UeA=; b=dCVlN0SzPe7rea7hjzuyhKr/+vvEONE6OCdzaINzcwN4NuG/Nxar27oXQuKqudzkpd LrQAox8D+xhTZ44rHiS4mz3eac5zzyv4m6rHXL9hf3F+8/7PfnRhfJVUzo2wOxBM7MP9 rJrsDmcdbuXFEc3y7G9jsaEZ1qlVsvsSR62Z7dgrdoxmlginlg+MSQ/zVBtRfHiZiFNb 1QZOFD6UHC21v9xEYDhobZhaiRcmRcPPiulPalXcIelXm4CDa/AGX8iv1ccnv7GwNEhG TjmlHJRB4A99FoFO1Af4vAj3FCGzstLIVNAVihSOtu3RFUKyQjv+/P42BZWmjZOxtYmu 220w== X-Gm-Message-State: AOJu0YzVgXbfuEhbLr+Am0TvNwn8sBw27ER93HTrj3Fou0vWK7DW0wbh Hip656aj2j2HCw/6pomHfiz6UVzBhVnCK79MN5qbaCKf9nrz/tk0nw4fIBgU8kKfQKxKIVcn/FO UTQUp4g9uXuTulNx02E3vO8iCfkZCfuylX1FKeg== X-Google-Smtp-Source: AGHT+IGYS6FrC0P/ElpvZqJkjRZAV6c5nkZ6br2ABqf8b2DqEElcGDce50qg0wrFZEUvQcHe0gpBSi2QNCzBMAZsjH4= X-Received: by 2002:a05:6102:50a2:b0:47a:2a10:fb73 with SMTP id bl34-20020a05610250a200b0047a2a10fb73mr249743vsb.4.1712742394959; Wed, 10 Apr 2024 02:46:34 -0700 (PDT) MIME-Version: 1.0 References: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> <87jzl688by.fsf@HIDDEN> In-Reply-To: <87jzl688by.fsf@HIDDEN> From: Jean-Pierre De Jesus Diaz <jean@HIDDEN> Date: Wed, 10 Apr 2024 09:46:24 +0000 Message-ID: <CAG1gdUojt3-ci+Mf8D8Ni-DWqY3RQmq8tMVwiV3M2Gi+fywV-w@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=jean@HIDDEN; helo=mail-vs1-xe32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) Hi Thiago, >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. = :-) And >=C2=B9 Except for bare-metal cross toolchains, which IIUC don't have this > problem because they don't use crt*.o files? It's only a problem with the platforms that provide a C standard library so bare-metal ones are unaffected. However some of the bare-metal targets provide a C standard library like `avr' or `arm-none-eabi' which I'm still working on, they both provide AVR Libc and Newlib respectively and suffer from the same problem. That said there's no downside on the patch other than the bad user experience IMO, but the bad UX is already there anyway but I think also this should be merged so that we can start making progress towards having more functional cross toolchain packages. On Tue, Apr 9, 2024 at 10:44=E2=80=AFPM Thiago Jung Bauermann <thiago.bauermann@HIDDEN> wrote: > > > 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 <guix-patches@HIDDEN> wri= tes: > > > * 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)" t= arget)) > > > > 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?
X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] References: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> In-Reply-To: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> Resent-From: "Christoph B." <buck.christoph@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Thu, 16 May 2024 18:41:02 +0000 Resent-Message-ID: <handler.68058.B68058.17158848348450 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68058 <at> debbugs.gnu.org Received: via spool by 68058-submit <at> debbugs.gnu.org id=B68058.17158848348450 (code B ref 68058); Thu, 16 May 2024 18:41:02 +0000 Received: (at 68058) by debbugs.gnu.org; 16 May 2024 18:40:34 +0000 Received: from localhost ([127.0.0.1]:50306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1s7g1p-0002CE-Nv for submit <at> debbugs.gnu.org; Thu, 16 May 2024 14:40:34 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:49359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <buck.christoph@HIDDEN>) id 1s7bp7-00075t-MI for 68058 <at> debbugs.gnu.org; Thu, 16 May 2024 10:11:13 -0400 Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-350513d2c6aso4831811f8f.2 for <68058 <at> debbugs.gnu.org>; Thu, 16 May 2024 07:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1715868601; x=1716473401; darn=debbugs.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Ms95yeQ+4mWqm/6/Tem4+8RBCwQZRpfW9PEYJF5xFS4=; b=kUbYv0IBzS/oy3E9aqn+zApVf2LsAbfNvzjW6KnurRtUz6jsNNCAaUzNAyUuA9ne08 6GKFH9+JbBDyx4R+tDaklsRRsIuhw9KeGzmHK8J0dJ42ju7niDSwuMdJ10LtspZmhqik 2RQ5jaS0ps8PfQVvyfnUQe0nmUBRCdh7rR9xjY2oED0W8GY9/ygaPHZu9Hpp2xKK6OCv Y4VCO377ZMBdKfRd/qCUcuJgBG4eH8yT0PsDo5l2iHJ647/nvRoMUb/UwKRocR7x5aJk oi5GshZIQ2tRdslDBDux32jBMQDlC6tm4QldXyOvG0YUC4HkRMv9Yn/iDNVGTvIjAf+T xl6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715868601; x=1716473401; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ms95yeQ+4mWqm/6/Tem4+8RBCwQZRpfW9PEYJF5xFS4=; b=Sq/8maywdiSWPR72opkCT8ZTFfeSHo/jPnq3sLOLQwuH1jMoDjqxjEhj0idBTEPl5l iSVeZhRXDQF+IvNyJ6feOFm9OWGEjtDPoNGCKPQ8lxHzwV5UWaEQNiqR/OF2+ceGbWuR 9W/fm/NfB/4+Q+YucNa1iqMF4pzG+67QnTH8tXU5CRb69YWenAAVdOUgBKgIShakTps7 q+lv40+Gnxnuod2IH4lPbvq74CeWGVzqNu4dZbWh/uNgP1jo7Ea4hvjm+YaPdfQSqBOU LGMQL8IQCkcMwyeHm23rt8nf63MoNKjdl36kfufQjn1GekEbHYcruOF3IwuiXZNwBZb9 auJw== X-Gm-Message-State: AOJu0YzAmUQr2CiRjYM8pNJWPPKp8bal8CjLwGd15TswpjjjLb3sTclM QeIeCteg7kAncr0HB4M2P8CuguJXfIlWXnFXZ2e2oHj1f/xnunbA4DX8gbAKIKKCC4GNTOT5XXa 2Gdy364F5gTox0rKoqS/jmS2TDUotwHqs X-Google-Smtp-Source: AGHT+IFOi+pVkxxIQQ01m6AbV7H/L3nx7Ct0T2BfHpvcqhDJELBgl26bF2RcLR/PcjoZcWTgDR9xqL0Aco4w33zMW9A= X-Received: by 2002:a5d:4402:0:b0:34e:bdf9:3301 with SMTP id ffacd0b85a97d-3504a61c6f4mr13866851f8f.8.1715868601394; Thu, 16 May 2024 07:10:01 -0700 (PDT) MIME-Version: 1.0 From: "Christoph B." <buck.christoph@HIDDEN> Date: Thu, 16 May 2024 16:09:50 +0200 Message-ID: <CAK518pwHJms_axxY8b4gML49jKXt+FXmd16KoFqV2JDmo_XsfQ@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000077b0cf061892ca26" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi! I ran into the same problem as Thiago Jung Bauerman. Also with an aarch64-linux-gnu toolchain. Therefore i am also in favor to merge this patch. Thanks for the work. Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (buck.christoph[at]googlemail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.46 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.46 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty X-Mailman-Approved-At: Thu, 16 May 2024 14:40:32 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) --00000000000077b0cf061892ca26 Content-Type: text/plain; charset="UTF-8" Hi! I ran into the same problem as Thiago Jung Bauerman. Also with an aarch64-linux-gnu toolchain. Therefore i am also in favor to merge this patch. Thanks for the work. Best regards Christoph --00000000000077b0cf061892ca26 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi!</div><div><br></div><div>I ran into the same prob= lem as=20 <span class=3D"gmail-address">Thiago Jung Bauerman. Also with an aarch64-li= nux-gnu</span></div><div><span class=3D"gmail-address">toolchain. Therefore= i am also in favor to merge this patch.</span></div><div><span class=3D"gm= ail-address"><br></span></div><div><span class=3D"gmail-address">Thanks for= the work.</span></div><div><span class=3D"gmail-address"><br></span></div>= <div><span class=3D"gmail-address">Best regards</span></div><div><span clas= s=3D"gmail-address"><br></span></div><div><span class=3D"gmail-address">Chr= istoph<br></span>=20 </div></div> --00000000000077b0cf061892ca26--
X-Loop: help-debbugs@HIDDEN Subject: [bug#68058] [PATCH] gnu: cross-gcc-toolchain: Add native-search-paths. References: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> In-Reply-To: <806b88813c0d8ef1265c43b49324d4ae4338fb0d.1703678931.git.jean@HIDDEN> Resent-From: Rutherther <rutherther@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: guix-patches@HIDDEN Resent-Date: Fri, 06 Sep 2024 21:13:01 +0000 Resent-Message-ID: <handler.68058.B68058.172565714932206 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 68058 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68058 <at> debbugs.gnu.org Cc: "Christoph B." <buck.christoph@HIDDEN>, Thiago Jung Bauermann <thiago.bauermann@HIDDEN>, Jean-Pierre De Jesus DIAZ <jean@HIDDEN>, Jean-Pierre De Jesus Diaz <jean@HIDDEN> Received: via spool by 68058-submit <at> debbugs.gnu.org id=B68058.172565714932206 (code B ref 68058); Fri, 06 Sep 2024 21:13:01 +0000 Received: (at 68058) by debbugs.gnu.org; 6 Sep 2024 21:12:29 +0000 Received: from localhost ([127.0.0.1]:54261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1smgFp-0008NO-8m for submit <at> debbugs.gnu.org; Fri, 06 Sep 2024 17:12:29 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:61723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rutherther@HIDDEN>) id 1smgFn-0008N1-9j for 68058 <at> debbugs.gnu.org; Fri, 06 Sep 2024 17:12:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725657140; x=1725916340; bh=ZB5jUUs62Utzytel6jukrdNrXnlop9yKZK3as7KZJLE=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=VLVFG+oGGoN2Fmk/jga7uKlm0qP3x1W4HWiWKYaqfyMP/05Y5X50Vt3VLGrR21UNr 9CBfilcF/TEmmVSbf9PiR1Cl6FLDjsHnPCclAvtTctedMHknAl4VeZXkYGwkOIyRAD Bn5voU238EbcBx1TeNWmPo3BrKSphRIJQjD1fZcw5aKBBURfTXFDB8CFw7iz9weBPp Uz5WllZ4xkt6YmPyanmumCoKycGnmD4IB4zX8/SykByB7HQcTZXraJE+w/XnLhXMDQ 2ctWRyKCp8EG5m0Zd7yCqCKqXBzpsWZEy3s/OWRwF1/ZQoxz+uEkC9Q6hqW9V1ySW4 CsXKBLCDof8TA== Date: Fri, 06 Sep 2024 21:12:15 +0000 From: Rutherther <rutherther@HIDDEN> Message-ID: <87frqco5au.fsf@HIDDEN> Feedback-ID: 8107604:user:proton X-Pm-Message-ID: a52944673ffee4f1b9c69294262b05b89d5ee3cc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello everyone, I am currently trying to do some stuff around the arm-none-eabi toolchain, namely also adding the 12.3 gcc toolchain. I am facing a problem with this. Currently the `search-paths` of xgcc also include "include", "include/c++", "lib" and "lib64" instead of just the ones under "$target/include", ... Because of this, and mainly because they come first, newlib doesn't build as it picks up wrong included file. This is easily fixed by not adding the top-level include and lib, but only the ones under the target. Do you happen to know why the search-paths contain these for the cross builds? And even if that is sensible, is this really the way to go even for native-search-paths, shouldn't the top ones be removed, or at least moved after the ones under target? Regards, Rutherther
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.