From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 469323858C39 for ; Tue, 9 Apr 2024 08:40:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 469323858C39 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 469323858C39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712652030; cv=none; b=mIh/ZKiYBHq8Bip3Ceuf+pbEvkV+Lsr0IuEYBUQMIWHDKKAm3wKXYz0wSP/uMFh8HdAjSXQzkcHxMOuaKJ7A0VBrTO3Pfk++7ozEjpIpfdDcUIE/T8i8mkrx6y1O7ynBKtgYyjhPpSQCYTWEZr+u2hgH6DRrSRdJVdDJM4DlCXA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712652030; c=relaxed/simple; bh=KKtvBoWqpC1C+s8a+aJOb2yy2LZXrOLZLhafOGo1ZoU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=uQdzmV8bpe63gvOSGkBtywqLL8AtIc/H4hVac0LsmOQaaIhlJNvO0tahm9VFSvMJ/mczEWc4M4EVg5Ou5wO/SUHC79kYmgEduzb8ARKHOH/OOE4+3Gu9CqUT7jYjR0Yuf0PXm+s5fNYlWZeHjXMQRqdCqzBpYaK0GkQCgZatnwQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4169e385760so4809655e9.0 for ; Tue, 09 Apr 2024 01:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1712652027; x=1713256827; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=2cu31AYKtZEfkrgbFNGHFEUsXhyK6goX8smXhlxAmZo=; b=cjH3IXxhCwdL5UPXSqALydzMBrwGQaYHTtWKrDLioU1x3l7gsItUZOipsp6aWIa0eh MSaS2pi5s6fB9Q3s8UJ9unQjYwhD8U6MEATYPfvOHiYgBzV33PXK+/P5iFoeVyOD53L3 F2gbV0jVi4DqZV4az6Hu0Xl4BNytc7cmnaGHBF+8XggNHz27O/Q4/yToAQoy5pzZqcsg ZgXxFKKn0NyE0M+tAOCZ7hlZBexYxh6rJsOi9O4nfWRjpU8ghxpZhjhOT1EreM92Xa4t sh1vB5iBynHrr6YXQB/mhXpzwpseOW6bsjBBoDHORhqUyQadrHvPVlF7qCWcpzWVQKRx y1Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712652027; x=1713256827; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2cu31AYKtZEfkrgbFNGHFEUsXhyK6goX8smXhlxAmZo=; b=dVOOzWSHMGmmRnh0R8dT4hSnPCDZzAsDlvI7c1RnOCpXbaEDZkGtpBnsgkldsP4N2M 4LgPtb8SS+ncwfiFpR5uc4ILOcRLVWcFiGonaeadH/nDxu5X+swD2B1o3hS4toQtvbkY RkhzFewLd+GsKH/LzLo5Vo5X4s6P1T/3gj5SmnxKFjV8pgxr2kbmRULDaNZoIcIDWgo1 nZrNyHyki/KidraYAcAuRcEpbi2hSunapuUxq+NwWRRVVppEv2jU0ITz86qT+IZfquUJ rScre2AfwZwKZWNOtNah13rxB2PWFkixMLCnpS0j7yNnWyH/9XELP0F+Q6yiQPtoUVsK YsyA== X-Gm-Message-State: AOJu0YyXVcUFZ7ogP9pvNgJb/ZplpBYdFsoCbNGrzbVD6ylJVDT0nEUB gVyaIBHMqlQl8/OX/ciMsY/xeP9dCK3yv76k4dGpYXQd7gcMbGBAZIB9IR9mIQ== X-Google-Smtp-Source: AGHT+IH2ZYPngF3YsaKFnzXqOIwEtlX8nFWcqjZ6/43pyF2JbWlaZztm8au0KTDxcWYV3OBIBCsD8A== X-Received: by 2002:a05:600c:458f:b0:414:8fd8:3b44 with SMTP id r15-20020a05600c458f00b004148fd83b44mr8387833wmo.31.1712652026965; Tue, 09 Apr 2024 01:40:26 -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 b6-20020a05600c4e0600b00416468510d6sm10871258wmq.1.2024.04.09.01.40.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 01:40:26 -0700 (PDT) Message-ID: <98875b4e-dd6d-44a1-8edb-c295581664f7@embecosm.com> Date: Tue, 9 Apr 2024 12:40:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] build: Check for cargo when building rust language To: John Paul Adrian Glaubitz , pierre-emmanuel.patry@embecosm.com, gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org References: <20240408163337.303317-2-pierre-emmanuel.patry@embecosm.com> <15b4a90fd6b729f1e67dda6bfbca6ddcdc079d79.camel@physik.fu-berlin.de> Content-Language: en-US From: Arthur Cohen In-Reply-To: <15b4a90fd6b729f1e67dda6bfbca6ddcdc079d79.camel@physik.fu-berlin.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Morning all, 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. rustc_codegen_gcc can probably already be used for building these dependencies however, if you'd like to have a look at that. Kindly, Arthur