From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sMtTMFSO4GXY8wAAe85BDQ:P1 (envelope-from ) for ; Thu, 29 Feb 2024 15:01:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id sMtTMFSO4GXY8wAAe85BDQ (envelope-from ) for ; Thu, 29 Feb 2024 15:01:56 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=PjrniCUQ; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-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=1709215316; 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-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=r0F62jDSd9WipwN6O93tWlmwzH9EY0xrDoL+UPbvGqk=; b=og7beQhCkmtsPLNhjCPRKdMgXyjY3wKFeGt0N0xUhr+xc6h7VKaBHerSCCKgxUzXXgzd3D qjd5MF1WdOA3FYH9g4DQDiFyFDQZfOugqGD8weIbXdFqNM9/3n/Xj2pppfzdRrelwKznx8 Lh6ETO6MOIPjLEDDXG1tWgkN+aE9wUcZdNsu95+dOWmbIWEUPAi4UZf3VZXVmNoVywZUz8 RVkvlI+y9iGNojaY9S/1O2WVJESon2B1JWmixACkBYuEHKtSXcePHymW5W0LZzYgvjgtNU aRpw2fq3SzP/FlnOHRgaejTWavdN3XWoqMlpzDJ8VbKs8A63VlmnwKqO9wYdHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=foundationdevices.com header.s=google header.b=PjrniCUQ; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709215316; a=rsa-sha256; cv=none; b=nR6INSJSgeTBHgV56c6gWMowF9WQICbVrQaz9uvuoeyf/jwTTKEpHaswRIsVhle3UPCDGG I1FqNSaTlCCImR2vcKWkUZaLOOrxxEjzHHB/rKTcco9Ig5RLN4St6+Qdc6xxsNOHmejLHk gzpv5LulccAkX7YOjr8Nw/byXgfJPocVHrAWAgIrP/bH0exA3R9mYOE0s6WeeSwV8huCkR 0pYBQKQd/qfLukhzUaTUioKlfMlW/CGLftsN8/o1QYhi5NdimDlC8nWI9lnwKyYxnLk9jr 1tykkp0lXi3USIrhc1CIZ79lOE6/PwOnQBXaq2MxpQRL6joLyqy3vFZO7AYJFA== 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 8DAA523409 for ; Thu, 29 Feb 2024 15:01:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfgyg-0002jk-6n; Thu, 29 Feb 2024 09:01:38 -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 1rfgyd-0002jS-Jc for bug-guix@gnu.org; Thu, 29 Feb 2024 09:01:35 -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 1rfgyd-0007aT-BQ for bug-guix@gnu.org; Thu, 29 Feb 2024 09:01:35 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfgz4-0002GG-6g for bug-guix@gnu.org; Thu, 29 Feb 2024 09:02:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#69394: cross-gcc-toolchain for riscv64 doesn't search crt1.o properly References: <35296725-34bd-074f-0582-b066c11b06dc@elenq.tech> In-Reply-To: <35296725-34bd-074f-0582-b066c11b06dc@elenq.tech> Resent-From: Jean-Pierre De Jesus Diaz Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Feb 2024 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69394 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69394@debbugs.gnu.org Cc: ekaitz@elenq.tech Received: via spool by 69394-submit@debbugs.gnu.org id=B69394.17092152808638 (code B ref 69394); Thu, 29 Feb 2024 14:02:02 +0000 Received: (at 69394) by debbugs.gnu.org; 29 Feb 2024 14:01:20 +0000 Received: from localhost ([127.0.0.1]:33921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfgyO-0002FG-HM for submit@debbugs.gnu.org; Thu, 29 Feb 2024 09:01:20 -0500 Received: from mail-vk1-f176.google.com ([209.85.221.176]:42187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfgyM-0002F3-QO for 69394@debbugs.gnu.org; Thu, 29 Feb 2024 09:01:20 -0500 Received: by mail-vk1-f176.google.com with SMTP id 71dfb90a1353d-4cba3807eedso495195e0c.0 for <69394@debbugs.gnu.org>; Thu, 29 Feb 2024 06:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1709215185; x=1709819985; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=r0F62jDSd9WipwN6O93tWlmwzH9EY0xrDoL+UPbvGqk=; b=PjrniCUQCfsH0U77YshfZZtxII39UMrfw1VBxaKhDE8KWEotUhnDYZig1Yc+IGPe2F bf/gkWvbw+JNZFmjPu3LS7KBj/6RS3bsPnPuSLOyvLxJzKSdnwYNsqz1SXsWd+E9C61N DgLpEeViu0hW5bo+rjP2ancCL7Z1/baq3YA/0SYdreM0ng4XytVZrX+ct9pCCbWq7P1r +dUy+FsDTfDhi0KyAYglnFL0ry6kScIrZkpg0zhdkQ2VLZZQzU7MnrSVND6GTCOod95Q miRs/Harr4hBZqpMQBgxaMQBoSD0GzM8mPiXs9N6LvPaMdjAXxqH+2vRwCWZDdJ55Dtt mbyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709215185; x=1709819985; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=r0F62jDSd9WipwN6O93tWlmwzH9EY0xrDoL+UPbvGqk=; b=jvQeSVaOhKIQNPgMO8TJUF0GFnN3txwUfImMwklQyTAlT/p7PQI8HGZOWR+EM/QkV4 LGf0+qggpi+jxrB1a+u2/Gja+rRUdhW+QPscrSrETzSoNMKXI6uqZg3hwCVeEbC5aafF QdALF9nFu+RJXWgNrimeeSGGulXgnZh1IqdGSeaqAx8yQ6VzGaJ3hWcw2Fyc5uwagxTH W73l+zLHxIZjBEhwzo6OwCs4F6oA0xF3E9I47cYMvhmiIZE2q8j7LA2IUkqer02N06VR zvCLzm+Ej8VRwEmrIUFgSzu/3nhI+fcWGTBrkLtMGGZkD0e3uyHJ1VHWgSsQ1fKY4WuX 7lAw== X-Gm-Message-State: AOJu0YxZjt+D9hKfIo2Vv28uBY4CfP02XirmuHe9EhEV/mnaBYa+fyfY mGLImhV83BoiNcO51nsuTuNm60exsYbVjFppJsgOTU/9h/8a/yokrTUMXuUWEeKLhgNnhOJwmfG MF0zcd7/0Q7dXXO/ZxbvqrdACyaZ62Y0A8DxqZ2LKz98I0OQ2f60= X-Google-Smtp-Source: AGHT+IFxS510qpvIwEcO3E854h1Wa73t5Nl7kQPT5O77q/qgfI8+AZBwuE5NpZk/IAolZMpH6agoBZodldgwhDZZrhI= X-Received: by 2002:a05:6122:3809:b0:4d3:3584:a345 with SMTP id em9-20020a056122380900b004d33584a345mr1002733vkb.7.1709215185636; Thu, 29 Feb 2024 05:59:45 -0800 (PST) MIME-Version: 1.0 Date: Thu, 29 Feb 2024 13:59:35 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jean-Pierre De Jesus Diaz From: Jean-Pierre De Jesus Diaz via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.91 X-Spam-Score: -4.91 X-Migadu-Queue-Id: 8DAA523409 X-TUID: JEP+Hep0gchJ Hello Ekaitz, This problem is also present for other targets such as AVR[1] as when I introduced the cross-gcc-toolchain procedure I didn't add the NATIVE-SEARCH-PATHS and SEARCH-PATHS fields for the toolchains as: 1. SEARCH-PATHS doesn't quite work with shells right now, as it is impossible to create a profile with cross packages. E.g. trying to use gcc-cross-avr-toolchain and unity built for AVR. So it is a bit useless, unless the toolchain is used inside of GNU Guix as a NATIVE-INPUT, but STANDARD-CROSS-PACKAGES takes care of this in GNU-BUILD-SYSTEM by adding cross-gcc and cross-libc as inputs. 2. The other solution is to use NATIVE-SEARCH-PATHS but when using mixed toolchains in a single environment all of the cross compilers will share this environment variable. For example: guix shell gcc-cross-avr-toolchain gcc-cross-i686-w64-mingw32-toolchain Would have the same CROSS_* environment variables and could mix things up. Ideally one should have per target cross variables, like, CROSS_AVR_* CROSS_I686_W64_MINGW32_*, but this is not done right now. Another option is to wrap every binary of the toolchain and set the CROSS_* variables so that they can find the C standard library includes and binaries without adding search paths to avoid collisions with other toolchains for the moment and since profiles don't support cross-packages yet I think it is a fair trade-off. I think I could update https://issues.guix.gnu.org/68058 to use the latter method. [1]: https://www.reddit.com/r/GUIX/comments/18rj84f/arduino_avr_compilation_help/ -- Jean-Pierre De Jesus DIAZ Foundation Devices, Inc.