From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 6E87A3858CDB; Tue, 9 Apr 2024 10:09:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E87A3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=googlemail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6E87A3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712657355; cv=none; b=Gc1B7iQFUY5UN3GWFCYyNTeUqTkqoww/qYtKxrXkRl242sQW8S+TJRIa3Y0f4iYdRxwMMqX2WyMGil5ERpCcudPrw4FknaSC8K6itWFiSRq0PVADuHEVgYgUC3EwQ+KTadPtYpBLY7zarZPRpyT3kmj5s3g2U8wAJi6MPbgZsg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712657355; c=relaxed/simple; bh=1E363ml5ggL/JEmNJKx4iXG/U7bLQlLjwkF2rkXAiTQ=; h=DKIM-Signature:Mime-Version:Subject:From:Date:Message-Id:To; b=rNpiK4Us0BexT0iNmsvXH/aTQwoANmnyFfRz8cF0SuoEOIYi5Dk7DcSHjNTWiVPH5yDCunEgLc1X82HKiqpBJG5bzrMrxQebC6ZkDSigSEVk8e99y09xfai5irS5/QcxHLqB4fFbiGfH1Fh8kSOwdYF975tgA+N0dtNhb80M+Uo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-343e096965bso2781436f8f.3; Tue, 09 Apr 2024 03:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1712657352; x=1713262152; darn=gcc.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1E363ml5ggL/JEmNJKx4iXG/U7bLQlLjwkF2rkXAiTQ=; b=UFHupUR/W189Vd/DqQSkV9Pj8tbIGjKb5+ufKc3y1bFy7PIWelM0kUF6j2nepMWH25 TUFtWlDrlqKufOHI1nocE3GwKIDuNzIeFxy9qhN1I7b8qmVrA6dyeHTuFoIkDH+235Mt 3SkeLskH7F+PaDQEPctxGS+DO6XRh5faONJsoR0wf5Dx0ztpMRY4oKrOIv6HRHi37UIO xRO8S/uedE22iEC174HJGn9JGBSEqJnCO2W3GHQqo9mSQsNRxye5+BJ7WGqnKlwIoiqL /cbP2lJG1r1n7uzQ3jGJ2cJH53lcNn2rTO7gqHq8F/x5EQm1XCdE3JDV6TEOTcXDrX1x n3dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712657352; x=1713262152; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1E363ml5ggL/JEmNJKx4iXG/U7bLQlLjwkF2rkXAiTQ=; b=V//Zgqy+bcAvYVc+sktogsrpFBXRF6Mc/2BxaFibnUpCaAcWo/Hnif4zE4QAT/SDdB WjgTQRzE2TSdH9XIC/f/aAF52EyJCsqt+LFQOPF2080CA64/H78uQ/gp3QOkioBShhoC uDZlOn1bE8u8YxzBKnXjaTMer5YihZoUOxFeBxKp4K6I1foqw9oGiFSChy65OO2mNG+J BcUKHrWfcoEPSQu61JR5vDjELDLhrS1t/AuTRa3LEdJnTTeUeQfawqJNOHwV6AKYINLd Sq62W4eaS0xkN0nnvUXcjUg0niR0vbfKMBBqmZeuvKuAtkM+MKy+uK6oG34ZeaIo9YLT kGMw== X-Forwarded-Encrypted: i=1; AJvYcCWPXOHsG2qoK88ooon0nyM+65RtwDqvMAZJoYJY+xDGfzYDWby/OOIBvSWIeNDzmNfuXhrQNdG92TvoC6z0wzx0db8eD3DwfovxsnPIHbtUjP20MPcWEvVHN4fHwgw= X-Gm-Message-State: AOJu0YyExRFf42HapmXPQRQMqyYwS+bc/YsT5YJdEm9vKBaEHMGseNkW yfNxNmhtz/QEsEtYtxNHBOMyFAKNuVgwkTbcKDdz48rAq+YuqSANcyWbfFmwag0= X-Google-Smtp-Source: AGHT+IHgaRLLpbhJbSUonQ0o7ehfoVF+VccmUSnPFrsa6HX4CGG/sl8r6mZc7b4ar97qt4an6Ypdyw== X-Received: by 2002:adf:fe0d:0:b0:343:9a35:ffb2 with SMTP id n13-20020adffe0d000000b003439a35ffb2mr8791727wrr.27.1712657351822; Tue, 09 Apr 2024 03:09:11 -0700 (PDT) Received: from smtpclient.apple (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.googlemail.com with ESMTPSA id y14-20020a5d4ace000000b00341dbb4a3a7sm11113074wrs.86.2024.04.09.03.09.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2024 03:09:11 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: [PATCH] build: Check for cargo when building rust language From: Iain Sandoe In-Reply-To: <4840931e-1b05-4a95-a06f-662667e34d42@embecosm.com> Date: Tue, 9 Apr 2024 11:09:09 +0100 Cc: John Paul Adrian Glaubitz , Pierre-Emmanuel Patry , GCC Patches , gcc-rust@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: <10C938E8-1018-405B-8044-77C1C4444FFE@googlemail.com> References: <20240408163337.303317-2-pierre-emmanuel.patry@embecosm.com> <15b4a90fd6b729f1e67dda6bfbca6ddcdc079d79.camel@physik.fu-berlin.de> <98875b4e-dd6d-44a1-8edb-c295581664f7@embecosm.com> <4840931e-1b05-4a95-a06f-662667e34d42@embecosm.com> To: Arthur Cohen X-Mailer: Apple Mail (2.3696.120.41.1.8) X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Arthur, > On 9 Apr 2024, at 13:01, Arthur Cohen = wrote: >=20 > On 4/9/24 10:55, Iain Sandoe wrote: >> Hi Arthur, >>> On 9 Apr 2024, at 11:40, Arthur Cohen = wrote: >>> On 4/9/24 09:47, John Paul Adrian Glaubitz wrote: >>>> Hello, >>>> On Mon, 2024-04-08 at 18:33 +0200, = pierre-emmanuel.patry@embecosm.com wrote: >>>>> The rust frontend requires cargo to build some of it's components, >>>>> it's presence was not checked during configuration. >>>> Isn't this creating a hen-and-egg problem? How am I supposed to = build a Rust >>>> compiler for a target which is not supported by rustc (yet) when = gccrs is >>>> supposed to build-depend on cargo which requires rustc? >>>> Adrian >>>=20 >>> Quick reminder in case you haven't seen our Request for Comments on = the main ML that this is only a temporary solution. Once gccrs can = compile its dependencies, we'll go through a more "classical" = bootstrapping chain. >> I don=E2=80=99t suppose there=E2=80=99s some way to make a = =E2=80=9Cdownload prerequisites=E2=80=9D action for this? >=20 > Do you mean downloading cargo/Rust as a prerequisite? I don't believe = this is being done for GNAT/GDC, but I might be wrong. No, you are quite correct, but the critical difference is that Ada and D = both make use of earlier versions of GCC - so that (if one wished to be = particular) it is possible to start with an earlier version of GCC and = work forwards (in fact that=E2=80=99s what I=E2=80=99ve [I guess all of = us] have done for D =E2=80=A6 and did a looong time ago for Ada). The difference here is that we need to install an executable from = somewhere else - and making that as simple and trustworthy as possible = seems like a good move to encourage folks to build & test rust. > If you mean the dependencies for our Rust components, those are = currently being vendored so that we're able to build them offline. I'll = push the commits soon. OK.. I=E2=80=99m sorry to say this - but what=E2=80=99s actually needed = is still a little fuzzy to me - but I am happy to wait to read the = documentation patch and comment then. thanks Iain >=20 >> (I realise that the prerequisite might not be available for a given = platform - but then the configure will then just fail to detect them and = carry on). >> At the least the build documentation requested should (ideally) try = to lower the barrier to finding the deps and give reliable sources for = them. >>> rustc_codegen_gcc can probably already be used for building these = dependencies however, if you'd like to have a look at that. >> Detailing the verious options would also be a helpful part of the = build doc. >> thanks >> Iain >=20 > Best, >=20 > Arthur