From nobody Mon Apr 6 18:06:12 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBBBFC433FE for ; Tue, 4 Oct 2022 18:47:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbiJDSrU (ORCPT ); Tue, 4 Oct 2022 14:47:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiJDSrP (ORCPT ); Tue, 4 Oct 2022 14:47:15 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 436FE69F5D for ; Tue, 4 Oct 2022 11:47:14 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id q99-20020a17090a1b6c00b0020ac0368d64so4533149pjq.3 for ; Tue, 04 Oct 2022 11:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=Ap8NhLNkwkZ+9pHFPmaGjqaY7m/PuDxtp7ygfQ7rZXw=; b=5K8mItni9qvUB2aqre19DEnY9+XvPIkjIEYDtlukAgPD9dOPrre1rRQE0IOUgqMTkB GyEgN5+WCj20HOiOXQBz0AnPdyfNeId1yaRDh6tDDIk3KweErmbC/0AeNGUCHICu4IJ2 UQy9e5I3NEyyRrMUk8n9NwEdj5ImXSLpywITtZlWxFb6MJPKY9CTxptVHKX/j+Yrbczl xJgtA/hsDQpURWf3ucSwcda6imLALfm4o8/NcOvZLOtil8ueXLNbWpdKsWmApVwlGpWM BScXrO8OI8LSaXa/VJ3YTI+TmrzfDaDosRMG/ok9ozzGUKtl3kpFkc4aV0dnYLE0Kygn nL4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=Ap8NhLNkwkZ+9pHFPmaGjqaY7m/PuDxtp7ygfQ7rZXw=; b=fejR0MnK4iJA7dCrT3HQTrNcQ+bAJq3QwbytE5FYks1hxJu4i0bT7FODvB6jscqzjg 2YROcNj+sXkJtbeWw00Z2lXmkXdoVInz0D7r3cV9QtWIl0Qu72g1YaCZIQo0J51dj68A 1OqZIBRRJBdCarf1bt0ZWK8NjnJgKXsVyqa5j03ZV7OxFFowSkOL5Ls4rOOJi6lteOFx YdfpS+bJ/DIM8iDfwTGe1sQO2UH1OND4mLCmc2kyOL4Tlf0DzD536ik9bTDZBqIjvmCG /3QQpqHo6zxixzDAZgJIeU1IAkFhCphKn3LdNQ02zI7XkWi8GAiKMTRXX+aHxc7ZZdqI qTFQ== X-Gm-Message-State: ACrzQf0F2YvZ5deD0pKJGOjrTT6KvpbhpomSYQmamLHB1PPqhUtJdSIO RRFctBpxGQujBatjC56hmWtoPg== X-Google-Smtp-Source: AMsMyM7zZPOc0Gd/jTJWjrhpQHKa6A0rL6sTeCsOuq9mkt8dCKVI0Pf1J1Hqo0WpZ9F/ShyJJiuYnQ== X-Received: by 2002:a17:902:8643:b0:17a:3e74:d2a6 with SMTP id y3-20020a170902864300b0017a3e74d2a6mr28862328plt.120.1664909233682; Tue, 04 Oct 2022 11:47:13 -0700 (PDT) Received: from chonkvm.olof-johansson.gmail.com.beta.tailscale.net. (99-152-116-91.lightspeed.sntcca.sbcglobal.net. [99.152.116.91]) by smtp.gmail.com with ESMTPSA id y10-20020aa79e0a000000b00561bc0aa529sm1997797pfq.131.2022.10.04.11.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 11:47:12 -0700 (PDT) From: Olof Johansson To: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Olof Johansson Subject: [PATCH] scripts: rust_is_available.sh: Provide hints on how to fix missing pieces Date: Tue, 4 Oct 2022 11:46:25 -0700 Message-Id: <20221004184625.10076-1-olof@lixom.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This might be a bit bikesheddy, but it saves a few roundtrips to the documentation when getting the `make LLVM=3D1 rustavailable` run to pass. Stick to the rustup options to avoid too much verbosity. Signed-off-by: Olof Johansson Reviewed-by: Geert Stappers --- scripts/rust_is_available.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/rust_is_available.sh b/scripts/rust_is_available.sh index aebbf1913970..94e6a1ce1df3 100755 --- a/scripts/rust_is_available.sh +++ b/scripts/rust_is_available.sh @@ -59,6 +59,9 @@ if [ "$rust_compiler_cversion" -lt "$rust_compiler_min_cv= ersion" ]; then echo >&2 "*** Your version: $rust_compiler_version" echo >&2 "*** Minimum version: $rust_compiler_min_version" echo >&2 "***" + echo >&2 "*** To update to the expected version:" + echo >&2 "*** \$ rustup override set \$(scripts/min-tool-version.sh ru= stc)" + echo >&2 "***" fi exit 1 fi @@ -68,6 +71,9 @@ if [ "$1" =3D -v ] && [ "$rust_compiler_cversion" -gt "$r= ust_compiler_min_cversion echo >&2 "*** Your version: $rust_compiler_version" echo >&2 "*** Expected version: $rust_compiler_min_version" echo >&2 "***" + echo >&2 "*** To update to the expected version:" + echo >&2 "*** \$ rustup override set \$(scripts/min-tool-version.sh rus= tc)" + echo >&2 "***" fi =20 # Check that the Rust bindings generator is suitable. @@ -155,6 +161,9 @@ if [ ! -e "$rustc_src_core" ]; then echo >&2 "*** Source code for the 'core' standard library could not be f= ound" echo >&2 "*** at '$rustc_src_core'." echo >&2 "***" + echo >&2 "*** To install sources:" + echo >&2 "*** \$ rustup component add rust-src" + echo >&2 "***" fi exit 1 fi --=20 2.30.2