Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2773397rwa; Mon, 22 Aug 2022 13:33:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6y17JWwxbGHnt3t/i+Z33I0yYkgCtFtEjqroVCqzBBxLWJG/2o1yZO/EDusB3ADdYRR3mh X-Received: by 2002:a17:902:e84c:b0:172:ebff:6107 with SMTP id t12-20020a170902e84c00b00172ebff6107mr4387649plg.40.1661200427592; Mon, 22 Aug 2022 13:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661200427; cv=none; d=google.com; s=arc-20160816; b=TJTzQvvzpczukMxeV3VV2HwmEXPFYbekaN8/XcYvZNBdKHjueRz2JEVBWnA1DJyDuU nzuIZSAGqMUcLisYObAAXUZU5rNAY1mGBnm+SaJ2+lxjBO+8v+lADsd4P8LX2PDe+4Nr qN4eXJPDsCc2eGkDz0O6NxoNgwpZADtF86RxO1XyxUY4iasBBcX+gL/EvXL5kfYpFsO9 fkbrQzKncsoO/vZYLgjp6ksgNUSvGFVRKlcvOI5C9vakMKFjQqN7FWPunhK15kRCV7xZ JF2iU4WUjSE0VwVcDz+lIF5t3fMgF/chLXuRMmYX9rXQwj+iPptXYb/ewQEuHZgUfUPv TF3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rNzR9QGqS5j6oh3cxSooKBs5Da2aEIBjVibuQ7PJyY4=; b=XcUgTWfUDtzFxGgCZMhPMUfCGgs7KfoQo3MHT46U13fTJUROobRl5kH6/ubf1Sa9gQ CFyLjWmaylwxKHuMeWREj8wmWwZ004MFEeNeqjlx/lwxXDK/rf9YYvD7GXTa4Xfeval/ VoS5jljajH3KIXICIUtWvw/yF7n7u+blkeIhg+biJN1NTdDzI9cfmaITVVVGUTXKX9Vn DVy5edgVN0bc/Q7wtv721LmJtYdqcVEe+mX6t1e3mX3HSTpmfvz9FvCSX5LaUbP1twjc A4hhh6JSlmrukT1lQh5fx4t6tzcdIWxingWro1tLN5OhnzMPfbMJZ+NPnrJA7fOxNlN7 2Iqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="G/6rnW2W"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a1709027e4300b001709c82ca08si12869692pln.297.2022.08.22.13.33.35; Mon, 22 Aug 2022 13:33:47 -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=@google.com header.s=20210112 header.b="G/6rnW2W"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232343AbiHVUJW (ORCPT + 99 others); Mon, 22 Aug 2022 16:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232278AbiHVUJQ (ORCPT ); Mon, 22 Aug 2022 16:09:16 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C4E52DF8 for ; Mon, 22 Aug 2022 13:09:14 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id l23so613935lji.1 for ; Mon, 22 Aug 2022 13:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=rNzR9QGqS5j6oh3cxSooKBs5Da2aEIBjVibuQ7PJyY4=; b=G/6rnW2WngFu3z8GJAnZAfCOkh68V/JUVcL67bXj8QU16wKXhMja1mBmCXbTmoik81 fdRO9yziSI1qyn3ZnU+Tk/b2sF7XsdQ1NnwKRVBovYFK8jKlmTE25Tnqpl1OShRVgFuO 55GLEFueyqTzyirsTbo9dhWM7XcEyTrXvQVeN7iSuin+N1GEYFmw/DH+NkSO6W3GV6HO R/542Kyg5z5z+fF28YqBPucnTKR8rFd39QVkbJ7+94RLIRv3/IdPNOPUYxR2rtFLJJo/ akYDrVLMQ3gXaiXiwyvOoGY3I0ZKHhZmxqg1es9/wRFbkicvNSHP3X7Q6cUSaREYuQyd HxqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=rNzR9QGqS5j6oh3cxSooKBs5Da2aEIBjVibuQ7PJyY4=; b=qH307/arB0yXWddSp1h/TPrkVAaDGKkEvn1zCYV1Lz/nEYwksLIPgnb+FZnKy/B/qL TkbXk4ArPptAv3pMlbSdLAkTtO+j3WQTvJN0I/V15ovjXhUR6EIo+hebAiXhasCzSESC A1qutRH/L8DgSi1gVIdQoYdOz/Ntrz8xwtqi4tpL5yIQzArt9fJSNxj3VP6twYRgkB7l 3r7MynXcFSHfQO841MQ3SeaU9aExmXnLg0BNZTechxbKpi5zRf1K5rzFYi7qrSM2aVeI cKRfN7OYzj0lKzUlTaMS1aYE8F3wpjTkBUdI7g97znJEY0kzt9IpSUAHnJaCKqbYaSNU SsDA== X-Gm-Message-State: ACgBeo1NDblA1GoWvo4bLMvt+XjNwc9P36jbu8mdauj8+tC7KYupsuo7 a4XQIJPREr6StCeEtz46vuyssch1/NqIPKZr/iI2Dw== X-Received: by 2002:a05:651c:4d4:b0:261:cbe7:e62f with SMTP id e20-20020a05651c04d400b00261cbe7e62fmr2347049lji.295.1661198952956; Mon, 22 Aug 2022 13:09:12 -0700 (PDT) MIME-Version: 1.0 References: <20220805154231.31257-1-ojeda@kernel.org> <20220805154231.31257-21-ojeda@kernel.org> In-Reply-To: <20220805154231.31257-21-ojeda@kernel.org> From: Nick Desaulniers Date: Mon, 22 Aug 2022 13:09:00 -0700 Message-ID: Subject: Re: [PATCH v9 20/27] scripts: add `rust_is_available.sh` To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Wedson Almeida Filho , Finn Behrens , Miguel Cano , Tiago Lam , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Fri, Aug 5, 2022 at 8:46 AM Miguel Ojeda wrote: > > This script tests whether the Rust toolchain requirements are in place > to enable Rust support. With this, I get: $ make LLVM=1 rustavailable *** *** libclang (used by the Rust bindings generator 'bindgen') *** version does not match Clang's. This may be a problem. *** libclang version: 15.0.0 *** Clang version: 16.0.0 *** Rust is available! because I'm using clang built from source from ToT. Is this supposed to mean that I can't use clang-16, clang-14, clang-13, clang-12, or clang-11 (in the kernel we support clang-11+) in order to use rust? I'm guessing that's going to hinder adoption. Is there a way to specify which libclang version bindgen should be using? I have libclang built in my clang sources, llvm-project/llvm/build/lib/libclang.so. I also tried: $ CLANG_PATH=/android0/llvm-project/llvm/build/lib/libclang.so.15 make LLVM=1 -j72 rustavailable $ CLANG_PATH=/android0/llvm-project/llvm/build/lib/libclang.so make LLVM=1 -j72 rustavailable -- Thanks, ~Nick Desaulniers