From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id E083E385840B for ; Tue, 9 Apr 2024 10:01:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E083E385840B 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 E083E385840B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712656869; cv=none; b=lBK9o7PQzex8wZHoq6omJwLXRSv4Z7ApGGjftxqUwxaSg9gC3xpeYNWai7Jqfln7nJGLPiXYeGHkiXMbAW4WXmnjnV8l+GHyb0Oe1aXlqPq9IkXqGxsX+ixgIEZyo/AjlhU4c3rukg+4aZxnS/FLKfox1ZAl1cM6Bz7NCd+iVFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712656869; c=relaxed/simple; bh=pUvtGcSTj+zfTlAoP81R1/eJDCKoi4rXy1SdN9DwSj8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Mw4gXCltrHsMPljOyCN01dG2nCuEZegb8tde+R+nBwOsgr3D+Ur0wVvSgqD43+Ou9FjFzBDe+wizo+MGzWn1IuHQJc7XCncuGGdddkbL83OZA76MBnkDvuSbH0f3GeW62MOwIm5j8MAFnlyyOgPxV6XOcejNPveBeZmjN6XCWfA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-343b7c015a8so3360035f8f.1 for ; Tue, 09 Apr 2024 03:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1712656865; x=1713261665; 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=VrwXtu1nayaP+OsKXWHro7SdDGbgPF5qU5RbmITgdvs=; b=EgXbI4PlZbUVqUvds+Qq+X3qDX5hH8CWImxkm+vLxV13gnh6NBqjNqzbYpDhPNEPMy PcTRCpeqpXSQE+V/GiZkfYXJaw42cBi/fkmPfLAq2vu3m8KxOYC+xEFRZPfJWH0Z1ifC 9ZN26CpldyYI0+WEAuCT2aHHC/Mrk04XrOkQU+EyjTXc4T6wcFZgD5uFKKDMBoR23dvQ 2H4V/XJDMfJ8+GTBTYoqaIsxhmnUKCtr7/zRJGR85EFctoRaRuLvEdyZbzrJn1bDujEj os+db2D3hCo6RTrhjyNlKiO1GsLXdIXFkfvwpGmnFExy1s+eRBdvuMM758RVr6+ZAQDo 2PyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712656865; x=1713261665; 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=VrwXtu1nayaP+OsKXWHro7SdDGbgPF5qU5RbmITgdvs=; b=NRWCr0dRtUNMBmRnna/uOobg0PSimxaRUZelGkzpSAmT2baB7Qobowcq5C+fpf+Bwn jqDXlwNiH3HSVFn5klG499j+Q5Gc3hP3YBHSllQQp3BFDmBzG20+abfocjLsa2gyUHQ2 HVxpmoZFL2/IqF/QQoWyhgYSXZvbD/9M9gCtq/eWbD7j5aHWvgH14uRqUrmNYeQht8c0 HXwcD1ZQUqK8XqauHqutzyQcXGHmTnT9lk0KiVm0CB96GfPyz3BvL/2YdCsqID4k78uu 51BIQseBzU+BV2JpDmQWCTDwsLVSfhZKA3NC8yMDjFn3mTIbnRVXR6ydiTvLcLUZimPe krtg== X-Forwarded-Encrypted: i=1; AJvYcCXjwytdO99eYvGmn8DdR0NNKXvYtWSsxGO31klNRbu73EShhxSZfaiF/+ydKmSy9SFc+UfIhR6A58v03fAkNMoGb/rVCg== X-Gm-Message-State: AOJu0YxVhE9GE9nKD8OdIlVGe43IwtxIFo6ldeUSemdEDLt0ZFU0XiFf q6RVWZhvb8zLLYter9zZC5taoAZpqwTM3c0NuIIU9LyuDcZ/fNDeyFXGm5EsFQ== X-Google-Smtp-Source: AGHT+IHf7fSTU3q+17Zy627/LPp+gwau01r9UVgrgqOHHxHsexOExu7yKJrxX/3M3HPxw1GN7loeuA== X-Received: by 2002:a5d:5850:0:b0:346:1a86:72e9 with SMTP id i16-20020a5d5850000000b003461a8672e9mr1382995wrf.21.1712656865337; Tue, 09 Apr 2024 03:01:05 -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 d11-20020adff84b000000b0033e7a102cfesm11066436wrq.64.2024.04.09.03.01.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 03:01:05 -0700 (PDT) Message-ID: <4840931e-1b05-4a95-a06f-662667e34d42@embecosm.com> Date: Tue, 9 Apr 2024 14:01:02 +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> From: Arthur Cohen In-Reply-To: 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: Hi Iain! 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. 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. > > (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