Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp879417rwb; Tue, 4 Oct 2022 11:58:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6HiHvhK30oxb7GxXy1WpG2fuMDsHnNw6/weuo4t17EajtgxtLvxnjHmzkkQH/czwSug6cp X-Received: by 2002:a63:42c7:0:b0:438:e0dc:cc09 with SMTP id p190-20020a6342c7000000b00438e0dccc09mr24328154pga.128.1664909939139; Tue, 04 Oct 2022 11:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664909939; cv=none; d=google.com; s=arc-20160816; b=QqB+h9dv5j3Fqv7KPXL0bTXXOIbgeMtmWe9kJrDPQJHcQ/3TckoSW5fTqNAByGauNR jbypQYdCAa6QFebL7e3CamRbqXron1i1UXrxdRfTJCDCdu6gRzBwteSldhay6OdyP++U 1ialnjCL2U1kAmiECbjGFPIwkxgnB5HZeKVJNUf+vTN3n/ZzMDhVVhwfuslKOl6b51qs QglDAg22w95Z346eXxFFztTVLxkiYFc3zC7XJhl5cNs/OcG4rU1CHmerof28Jzs9uQlf vYpMZh46k6fJ2+Fi2aS1avw+SJpZcP/d439B53KamROsWcZIgw6XauOtbY+oxgqQs2TO z/Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ap8NhLNkwkZ+9pHFPmaGjqaY7m/PuDxtp7ygfQ7rZXw=; b=JUXMe8ITr8bU78S5X4v1WAFmh2bGRRQbornnzUc0kPGOEOxkAP7piVpmq9tgKnLzAl HjP08j7oHb1H+uX/BPj+fJ4rZIvDCTH879T+y0eoIB9NAv0+zvmYN7J3e0B19yMBpGQ8 zXC8IiSd6929zhn8Ggx0PgJ1S+Z4v6aPQ00lEURg7rdWdK/9AemVDDgaY6MH6M2BZfeK zYc3gXjGJwjzbImgilil/elhtxUBB4R+S4HiQKEDXyLsMUogCMzuBZFuNqB4eWkZ9G5V gdOgNot1o3g9P/d5IdVdGSJp/tepfSP7Sv+LRCLlAdXI+XuNgT5ABx84IS4LsosbItp7 dq9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20210112.gappssmtp.com header.s=20210112 header.b=5K8mItni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a056a001a1000b00538147a4b3csi14807914pfv.318.2022.10.04.11.58.45; Tue, 04 Oct 2022 11:58:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lixom-net.20210112.gappssmtp.com header.s=20210112 header.b=5K8mItni; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229727AbiJDSrT (ORCPT + 99 others); Tue, 4 Oct 2022 14:47:19 -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-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: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This might be a bit bikesheddy, but it saves a few roundtrips to the documentation when getting the `make LLVM=1 rustavailable` run to pass. Stick to the rustup options to avoid too much verbosity. Signed-off-by: Olof Johansson --- 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_cversion" ]; 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 rustc)" + echo >&2 "***" fi exit 1 fi @@ -68,6 +71,9 @@ if [ "$1" = -v ] && [ "$rust_compiler_cversion" -gt "$rust_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 rustc)" + echo >&2 "***" fi # 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 found" 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 -- 2.30.2