From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 489103858C39; Tue, 9 Apr 2024 08:55:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 489103858C39 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 489103858C39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712652934; cv=none; b=GFteUoXLUWN0W7l51jZ1k0ju32JXEZb+cGberSzyw/TZGsVvSAH1Bl3835iNwy61QIz5OiNyiKBIm+mHgFYFuODdTTBRW+T9sl+qt5B5XyKwHvTt+M8YJMzaez0YaKYvPuRSM2aOgmvYrK7as95LcB6ujCkjCUp1CBeQ5W6P3fI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712652934; c=relaxed/simple; bh=06bg7smcsUHAisHofAv0q5+S9RUl0Np+S64WX59KcE0=; h=DKIM-Signature:Mime-Version:Subject:From:Date:Message-Id:To; b=uSffatymuTkRPjCWrBa/F4fvBarFmDWxBl81Ovinz0QRkB85Tmzp9iGDLUBBqN7RmOVuUqPnPpk4OgMZ8TyzoSk0iHptOD0BCXyN8Fzpmbodb/b6wROeJNdJNozcoX3SB7x2wBBJ2fg3C6Xgk/3tWrOyEqe29cQx9OrA9sjTojs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-516dd07d373so1980514e87.3; Tue, 09 Apr 2024 01:55:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1712652931; x=1713257731; 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=06bg7smcsUHAisHofAv0q5+S9RUl0Np+S64WX59KcE0=; b=dyi2uIrBv1np7Y6UIa3ylD+IvIp5PGSWZuaUI5VMeFiT8Ko063PHl7DXj/EpvR8fZe 4rPfAFDqrlKBBreFi0ztR2vsjifLUxSjILYvHYpKVtMz0cU8jHH2AeupQGaGAE/n+sPZ moEPGeXBAX3QYdVu24ynqGtfXLKeu/5mVAoXUcblvfnweeAfjjxHYc1SY6Bma/6k+Qfd PJTqZrg/zpFBEvMUiPF79FQyHpEwmWvxpBZsgOuFrHDOdeRrac9pcwRvlzC88jsK+/IW ylJx2iIDhJQDwEMomCPg6AS2k5hnWneLRz8ybKdsdjLGVEBhS1b6iLvFahILZOfHlgHU BI3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712652931; x=1713257731; 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=06bg7smcsUHAisHofAv0q5+S9RUl0Np+S64WX59KcE0=; b=vRb3zLq+jONJRm18pNywut8ObBLmOzQlgpBvo+f72PxL663z4rl5cX/ymO4lnZuycL mmLFzvkm1GKYoKz4kbygrxwGSJOsgeU/uIR4wJW0Ih+gGxY2pmHsONQ7maPpQwzpM1nP YmAuBFrZULCBHtm4AbAT0I9uIkXasPzl3yXpbq2FcKgmV6zp32N9WOWfvWo5JYIcyHKC nCe/c7prTcUtRl8/ZQTgJ0mu2ddhR+5eccwKLar4eLUWRcx1t805Jr3YionUxnis3KXi sNYP3GGRcFPfCh16bAbHM2Q/b4Co3yZKEmPs9gTMPvyNzrInkT4qBMUhLpjrhdms9C1s dtNA== X-Forwarded-Encrypted: i=1; AJvYcCXhsJgPBqSyioJZGujtLhLBHOr7Gx5Q5UdvD8RdWValI7rUFMMhGw7vzmA2wuFI+OhfelImKmgM1JsGnswAsuCjXaRnReugj0XJfVSF5u6R7QNpXfJXeYjeZB1X3bg= X-Gm-Message-State: AOJu0Yy5aIIWHlmJFBqEcP8fr8WjgGedejwNvll5of/lOxggA38p9uDP AjHTMBnq7WioXErweZlp3JULv+R074o0QCeEVBkhJZ5S/aQ0X5BC X-Google-Smtp-Source: AGHT+IGNjAW4RNpJgnWlzitLi+vzoG/gWKqA15b5V46Py2PaCbMw8YWlXek6M17yCtLBaM6BcV7b0w== X-Received: by 2002:ac2:494b:0:b0:516:d6db:cc22 with SMTP id o11-20020ac2494b000000b00516d6dbcc22mr5981365lfi.3.1712652930394; Tue, 09 Apr 2024 01:55:30 -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 be9-20020a05600c1e8900b004163ee3922csm11688392wmb.38.2024.04.09.01.55.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2024 01:55:29 -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: <98875b4e-dd6d-44a1-8edb-c295581664f7@embecosm.com> Date: Tue, 9 Apr 2024 09:55:28 +0100 Cc: John Paul Adrian Glaubitz , Pierre-Emmanuel Patry , GCC Patches , gcc-rust@gcc.gnu.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240408163337.303317-2-pierre-emmanuel.patry@embecosm.com> <15b4a90fd6b729f1e67dda6bfbca6ddcdc079d79.camel@physik.fu-berlin.de> <98875b4e-dd6d-44a1-8edb-c295581664f7@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 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=9Cdownlo= ad prerequisites=E2=80=9D action for this? (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