From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id C762B385840B for ; Tue, 9 Apr 2024 13:53:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C762B385840B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C762B385840B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::434 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712670813; cv=none; b=QTfM8RzFJ+x5EizVcRtQZrtBqypzAjYDtK/QqJPicyHz4+c+E45byyjclDqdI1Bd3M/q4YWXnUGqlrkgH0RUf10uQ/xfqht3sgllL7FUKfUzK6atY7vyfAcb3dz2uQfvRlch3jtJ7S20jnePGvImswy+uFn1X1BSXfU6s+mtM2E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712670813; c=relaxed/simple; bh=t4jnqk3Do81q5Lb5Tot20QKDWEgp4oj2EbaE+58Mdac=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=NTim53M+DEtyv4w6fjv/ZjSbDZmxIj9iX+DZhGq5xsaVZJ3UGFdzGQ9CLpwjebc/wsTIcCj+DEt+1M54aCXbZE3cLuDcN611/jNrZFm+nL8Do5xlq7V0HTgzSSVq2KvXKUU4Cz8kPmuEEZJCBsHW4bDBTHO83cnvgCaZN9JSp+o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-3454fbdd88aso2788102f8f.3 for ; Tue, 09 Apr 2024 06:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1712670808; x=1713275608; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=y2GmIlVAOVXBqTGC0z3J4NUIfR7SQQWGW4dy/hZIaLk=; b=HI3AcshZHd+t72Lok1A638qfHIrYR7/h0OWcP3tFM3nerCCE00KrFMkFjY4w8689I3 QSQ2TJtiBGxRoIOur85ifBNjELtJSjIoJ5vYv058gB4JnCBPxoJTKFl2KvE/BpKLq1CC L/Ne1PaXUU5gpgTi33Rfa1WqjHNvA9bP/kdBRzUTZfKneEbQmonoX6solZ+9gHaY7pQb DC5Q+2Kk0S632wEHtN4IQ9nN02aOe8Vxg6GGDZsJkZaCgrPv+WNnuFXeLPew9Eh58xTR 1Z96raIGO01PCfewOxem/ttGSKW9mvVsrgCYrZIFT/8UyvWPKXYU8Kn97ClhA7TYFW9X A5Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712670808; x=1713275608; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=y2GmIlVAOVXBqTGC0z3J4NUIfR7SQQWGW4dy/hZIaLk=; b=q51c0q2R3QDkELBc7jfUtH0MfkANuh6oD2yLvetl5jmGmLMev2B4lvBVhM6qOldACN JVhspFdhODmCADhYywX9pSczSCXo+LhMBGuzlRttSVjv2wdlwk7J/G++GyUraUDyN5Dj H73HJumpvT4IzOkWf83zh/50j9EekY5vCFDqtfVvnMPcC8Tzo5nRpl4uJnzZHvYJEVVf D9EHm14O6gepC7Tx27FD0UCHpdIp1QIGEjQBLzaqd0qzOstSsqixYPkD48AlqBDvdYA1 Rf7qmFndo/pdq2ApWMgTdoHna1dzKfT6lG20qRiqHkmd7B4DfCyBvK7yeWCw+kGn1+8x 7KIw== X-Forwarded-Encrypted: i=1; AJvYcCUfuFCpTHLoiwvCUiRTeBvMf+qeN14ADeyduyw0O31zpIyCQVYAPh/7/X28oj9wr7SV5kkQ5dz7HloafJuKat1+ZYvIeA== X-Gm-Message-State: AOJu0Yz/RR5YbeQJ1dgwnv7YQknx8gMWPqFIqaAduqKV+NrdkzuTGdgh xE2uOeVY84Mi2AQForN/wLkcuoXrXOU+1anFNdaikoluUeWWX1KhveKv7qZr9g== X-Google-Smtp-Source: AGHT+IEC3cdd8sdpqVzHN/xMOYxazM8ny27PQqQ4/QQ7TanZ3Luj5fmcKtkmiSfcgkMRckmkZqxfJQ== X-Received: by 2002:a5d:6848:0:b0:343:8e86:f2f0 with SMTP id o8-20020a5d6848000000b003438e86f2f0mr9689108wrw.62.1712670808172; Tue, 09 Apr 2024 06:53:28 -0700 (PDT) Received: from ?IPV6:2a04:cec2:22:4ec2:c376:fd4c:b395:f0a4? ([2a04:cec2:22:4ec2:c376:fd4c:b395:f0a4]) by smtp.gmail.com with ESMTPSA id r12-20020a5d498c000000b00343e8968917sm11111496wrq.1.2024.04.09.06.53.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 06:53:27 -0700 (PDT) Message-ID: <2746644b-54d7-43ac-932b-dfc49d7bbaed@embecosm.com> Date: Tue, 9 Apr 2024 15:53:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] build: Check for cargo when building rust language Content-Language: en-US To: Iain Sandoe Cc: John Paul Adrian Glaubitz , Pierre-Emmanuel Patry , GCC Patches , gcc-rust@gcc.gnu.org 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> <10C938E8-1018-405B-8044-77C1C4444FFE@googlemail.com> From: Arthur Cohen In-Reply-To: <10C938E8-1018-405B-8044-77C1C4444FFE@googlemail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: On 4/9/24 12:09, Iain Sandoe wrote: > Hi Arthur, > >> On 9 Apr 2024, at 13:01, Arthur Cohen wrote: >> > >> 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 >>>> >>>> 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’t suppose there’s some way to make a “download prerequisites” action for this? >> >> 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’s what I’ve [I guess all of us] have done for D … 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. Ah, that's fair. I guess it will require some modifications to the script though, as I would not want to impose Rust on anyone not looking to compile gccrs. I'll add this to the list of things to work on before 14.1 :) Thanks! > >> 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’m sorry to say this - but what’s 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 > >> >>> (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 >> >> Best, >> >> Arthur >