Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp434201rdb; Thu, 18 Jan 2024 07:51:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFoDoRaG3XQCmrXXOshdI2cNwB2/I1lpmyqxv/+TbjBgyTv9lPt2HEO7fDGcLJEEogudDAK X-Received: by 2002:a05:6a20:a103:b0:19a:c05d:bdb2 with SMTP id q3-20020a056a20a10300b0019ac05dbdb2mr1254346pzk.32.1705593080426; Thu, 18 Jan 2024 07:51:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705593080; cv=pass; d=google.com; s=arc-20160816; b=moDviKg18M8s+pZracKf9IIkFwtim5pnoJ/HfP00ErGbdSiZOLgGYPPK+jcVGK0SFb y8EirXImx67rrki6YnCk8kKzF97sZhCPnlH+7dHF7p3Mxit7uvq1+9pSpMYEuzZ3suTK uxvlTStGDdbx+tpjUqJtNpYupC2mnKzOArLBm7RAgb2zB6fKUbLXLItZcGjdBa6NPF/S O1Runa5q5GCGc3z+QzX5xVPC62sVT3ovEJkYzEGSuhbUEqJKfMAQbsAiKww0n60154uS 2ooBYevD2+2HLvKD42ifm4hMLFAM/6Gt7BQPqTOJOe21LrKJ5GFs5IS+IkF0gc9CU4eU MpZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nJVOqOIFQLFIG1XFDqf8IhmlkhMFmW/3etJVOY+0M+A=; fh=fPjR/7hchu8hSi6nXj0nBI+wWeJn4Ln/AM1YTRtvS44=; b=1CL8UwEsFoO1fuRhJWGIzpkTvL2/s9jSN+rCwp1ERV4OogdnshxVyAFK+Cy2YlWe7m qiSYQ+V8vcKrmeE1GpNuayoVKq3vxlRGgTpgpiZ12N7sXLycBeu0dKc8xCjM6//jNsiA Xeu1HQF/PaQ612ZyGBI8bS/WJdfV7hqHhQXaEZud5sH7BC/hj6WVIjXgZ7p9mxb/iFpK bsdyoUF60T3qOmuNi6Ia1hPItsP5soCpT2P9uI5xsLuhCA+7dh03MIadNmg06ge/q/ZV LI8dZvY1bNzc/pn+ICxNGVe/nlJ/7/pbBY04nY3IT5bcHc+QeKREN3WvMxgxW710/j5W fV4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpYiSM7L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k186-20020a6324c3000000b005ceea21214bsi1579260pgk.757.2024.01.18.07.51.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 07:51:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpYiSM7L; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-30299-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30299-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DA184B21EDC for ; Thu, 18 Jan 2024 15:49:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2224728DA6; Thu, 18 Jan 2024 15:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OpYiSM7L" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37DFD2554A; Thu, 18 Jan 2024 15:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705592968; cv=none; b=SsCfAYVWNfvVTcOtIZRHSMc31CW9c63So+Z9TRbuy1p5snGdy/aCUWFMOF96SrCO8DXd/n/W16ScZnPqU/biWTY0JNqE2dDom82euX3uoJ6Fd4q0AgsDH0Wt9vpe4XUYi35pn3Vjkm+Y5dmnMvSz3vNmcmlI1CX9wMcPODQ0ZiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705592968; c=relaxed/simple; bh=nJVOqOIFQLFIG1XFDqf8IhmlkhMFmW/3etJVOY+0M+A=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=kK4wPg49hUSHlZg9zlv9vfrsEmSOZQ6XIr7tpc0TMog1s+2jwUerR5DpcpaSmcJ4rINDgVxF14bdHwCNggHk5v3s1u4QTW0OJbb1VEvIANG2o0a+0EQb7cu9zPkToQ5zXcm8ULrvWHvlen6rLZzaJlOXXS9ncx+fvBI1ItntC/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OpYiSM7L; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0B6BC433C7; Thu, 18 Jan 2024 15:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705592967; bh=nJVOqOIFQLFIG1XFDqf8IhmlkhMFmW/3etJVOY+0M+A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OpYiSM7LnbMKYZ/xM2ne4yN+OEp8lDymBAwogZ7ixHmybIOElFhzSpUX5lhLUvR/E NLbrsils21ig9zfMqUG9ywCY5AQwzGfql41mIgM+VSOOC2E4LRsTWdNVgJwK1SRu5+ h+vfxeq6WSYafLE5mkl7x4dyemtD6oEQ8jT6ik3VQ/9IQ75i2M+O2Z7ppIkmSZq4rN EgOqabg0RbdDbfJlfDUVc3UWdbv29UJvLiJtvVIwHaXGLDdocM8VvvVLxKy3RCfE0Y tiO/NrwnDsCDsLRE7yLXR03aUetujexIMJUP/4b7tL4YbY/APwCsTrewHNLQ4rR5f+ M2t7k0VaQfW1Q== Date: Thu, 18 Jan 2024 15:49:21 +0000 From: Conor Dooley To: Miguel Ojeda Cc: Conor Dooley , linux-riscv@lists.infradead.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Tom Rix , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v1 0/2] RISC-V: enable rust Message-ID: <20240118-implode-delirium-eefdd86e170e@spud> References: <20230307102441.94417-1-conor.dooley@microchip.com> <20230608-dispatch-sneer-aa09bd7b2eb8@wendy> <20230608-spiritism-gonad-5f5aff4c3a24@wendy> <20240117-swiftly-parasail-618d62972d6e@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1HW3FZOlVDIsEuAs" Content-Disposition: inline In-Reply-To: --1HW3FZOlVDIsEuAs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 17, 2024 at 07:23:17PM +0100, Miguel Ojeda wrote: > On Wed, Jan 17, 2024 at 12:31=E2=80=AFPM Conor Dooley = wrote: > > > > 6.6 came and went, and I have been busy dealing with the other > > responsibilities I mentioned and have not had a chance to look here. > > I rebased this today and things still work as they did when I submitted > > this version, but things have gotten muddier on the LLVM side of things, > > as more recent versions have added yet more extension support. >=20 > Sounds fun :) >=20 > > My inclination at this point is to engage in a bit of LARPing as an > > ostrich, and sorta ignore these concerns initially. Specifically, I'd > > like to drop the idea of having the gcc support, and restrict to LLVM= =3D1. >=20 > Yeah, if `LLVM=3D1` works, then I would suggest going ahead with that. >=20 > (Now that `rustc_codegen_gcc` is here, we will move to that and forget > about mixed compiler builds, but we still have to handle `bindgen` > flags until we have an alternative for that) The bit that worries me most is bindgen, and in particular detecting the version of libclang used. I mentioned to Nathan or Nick about needing a buildtime test for the version of LIBCLANG being used. I'm less worried about this for LLVM=3D1 builds, since while I think it is possible to provide a LIBCLANG path to the build system, I suspect that for LLVM=3D1 builds it's almost always going to match the LLVM toolchain in use. > > When it comes to asymmetrical extension support between the C and Rust > > toolchains, I'm think we deal with that as we do for the C toolchains, > > sort issues out as-and-when they arrive rather than punt this again. >=20 > Sounds good, thanks a lot! I'll do another rebase and resend after the merge window closes I suppose :) --1HW3FZOlVDIsEuAs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZalIgQAKCRB4tDGHoIJi 0h8eAQDfKI2cOYM7xH8dDl7IUQsHvHxvlTx+Fc/ul6I5u85oZwEA3NdLO8SEdOI/ 0oVhy3L0n3OWLZBkAkoN6rTjPQhddgQ= =atSn -----END PGP SIGNATURE----- --1HW3FZOlVDIsEuAs--