* [PATCH v1] RISC-V: disallow gcc + rust builds
@ 2024-10-01 11:28 Conor Dooley
2024-10-01 15:12 ` Miguel Ojeda
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Conor Dooley @ 2024-10-01 11:28 UTC (permalink / raw)
To: linux-riscv
Cc: conor, Conor Dooley, Jason Montleon, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
From: Conor Dooley <conor.dooley@microchip.com>
During the discussion before supporting rust on riscv, it was decided
not to support gcc yet, due to differences in extension handling
compared to llvm (only the version of libclang matching the c compiler
is supported). Recently Jason Montleon reported [1] that building with
gcc caused build issues, due to unsupported arguments being passed to
libclang. After some discussion between myself and Miguel, it is better
to disable gcc + rust builds to match the original intent, and
subsequently support it when an appropriate set of extensions can be
deduced from the version of libclang.
Closes: https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/ [1]
Link: https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/ [2]
Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with rust support")
Reported-by: Jason Montleon <jmontleo@redhat.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
---
Palmer, this is yours to take.
CC: jmontleo@redhat.com
CC: ojeda@kernel.org
CC: alex.gaynor@gmail.com
CC: boqun.feng@gmail.com
CC: gary@garyguo.net
CC: bjorn3_gh@protonmail.com
CC: benno.lossin@proton.me
CC: a.hindborg@kernel.org
CC: aliceryhl@google.com
CC: paul.walmsley@sifive.com
CC: palmer@dabbelt.com
CC: nathan@kernel.org
CC: ndesaulniers@google.com
CC: morbo@google.com
CC: justinstitt@google.com
CC: rust-for-linux@vger.kernel.org
CC: linux-riscv@lists.infradead.org
CC: llvm@lists.linux.dev
---
Documentation/rust/arch-support.rst | 2 +-
arch/riscv/Kconfig | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst
index 750ff371570a0..54be7ddf3e57a 100644
--- a/Documentation/rust/arch-support.rst
+++ b/Documentation/rust/arch-support.rst
@@ -17,7 +17,7 @@ Architecture Level of support Constraints
============= ================ ==============================================
``arm64`` Maintained Little Endian only.
``loongarch`` Maintained \-
-``riscv`` Maintained ``riscv64`` only.
+``riscv`` Maintained ``riscv64`` and LLVM/Clang only.
``um`` Maintained \-
``x86`` Maintained ``x86_64`` only.
============= ================ ==============================================
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 22dc5ea4196ce..76843584960c2 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -177,7 +177,7 @@ config RISCV
select HAVE_REGS_AND_STACK_ACCESS_API
select HAVE_RETHOOK if !XIP_KERNEL
select HAVE_RSEQ
- select HAVE_RUST if RUSTC_SUPPORTS_RISCV
+ select HAVE_RUST if RUSTC_SUPPORTS_RISCV && CC_IS_CLANG
select HAVE_SAMPLE_FTRACE_DIRECT
select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
select HAVE_STACKPROTECTOR
--
2.45.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-01 11:28 [PATCH v1] RISC-V: disallow gcc + rust builds Conor Dooley
@ 2024-10-01 15:12 ` Miguel Ojeda
2024-10-01 18:55 ` Nathan Chancellor
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Miguel Ojeda @ 2024-10-01 15:12 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-riscv, Conor Dooley, Jason Montleon, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
On Tue, Oct 1, 2024 at 1:28 PM Conor Dooley <conor@kernel.org> wrote:
>
> diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst
> index 750ff371570a0..54be7ddf3e57a 100644
> --- a/Documentation/rust/arch-support.rst
> +++ b/Documentation/rust/arch-support.rst
> @@ -17,7 +17,7 @@ Architecture Level of support Constraints
> ============= ================ ==============================================
> ``arm64`` Maintained Little Endian only.
> ``loongarch`` Maintained \-
> -``riscv`` Maintained ``riscv64`` only.
> +``riscv`` Maintained ``riscv64`` and LLVM/Clang only.
> ``um`` Maintained \-
> ``x86`` Maintained ``x86_64`` only.
> ============= ================ ==============================================
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 22dc5ea4196ce..76843584960c2 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -177,7 +177,7 @@ config RISCV
> select HAVE_REGS_AND_STACK_ACCESS_API
> select HAVE_RETHOOK if !XIP_KERNEL
> select HAVE_RSEQ
> - select HAVE_RUST if RUSTC_SUPPORTS_RISCV
> + select HAVE_RUST if RUSTC_SUPPORTS_RISCV && CC_IS_CLANG
> select HAVE_SAMPLE_FTRACE_DIRECT
> select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
> select HAVE_STACKPROTECTOR
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-01 11:28 [PATCH v1] RISC-V: disallow gcc + rust builds Conor Dooley
2024-10-01 15:12 ` Miguel Ojeda
@ 2024-10-01 18:55 ` Nathan Chancellor
2024-10-01 19:27 ` Conor Dooley
2024-10-09 7:46 ` Alexandre Ghiti
2024-10-17 16:30 ` patchwork-bot+linux-riscv
3 siblings, 1 reply; 10+ messages in thread
From: Nathan Chancellor @ 2024-10-01 18:55 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-riscv, Conor Dooley, Jason Montleon, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
On Tue, Oct 01, 2024 at 12:28:13PM +0100, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> During the discussion before supporting rust on riscv, it was decided
> not to support gcc yet, due to differences in extension handling
> compared to llvm (only the version of libclang matching the c compiler
> is supported). Recently Jason Montleon reported [1] that building with
> gcc caused build issues, due to unsupported arguments being passed to
> libclang. After some discussion between myself and Miguel, it is better
> to disable gcc + rust builds to match the original intent, and
> subsequently support it when an appropriate set of extensions can be
> deduced from the version of libclang.
>
> Closes: https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/ [1]
> Link: https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/ [2]
> Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with rust support")
> Reported-by: Jason Montleon <jmontleo@redhat.com>
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Seems like a reasonable restriction to me.
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
I assume the difficulty is not in getting the libclang version itself
but actually mapping extensions to the versions and then deciding how to
make that available to the build system? Or is it more that a solution
is somewhat known but someone has to actually implement it? Sorry if
this has been talked about before.
> ---
>
> Palmer, this is yours to take.
>
> CC: jmontleo@redhat.com
> CC: ojeda@kernel.org
> CC: alex.gaynor@gmail.com
> CC: boqun.feng@gmail.com
> CC: gary@garyguo.net
> CC: bjorn3_gh@protonmail.com
> CC: benno.lossin@proton.me
> CC: a.hindborg@kernel.org
> CC: aliceryhl@google.com
> CC: paul.walmsley@sifive.com
> CC: palmer@dabbelt.com
> CC: nathan@kernel.org
> CC: ndesaulniers@google.com
> CC: morbo@google.com
> CC: justinstitt@google.com
> CC: rust-for-linux@vger.kernel.org
> CC: linux-riscv@lists.infradead.org
> CC: llvm@lists.linux.dev
> ---
> Documentation/rust/arch-support.rst | 2 +-
> arch/riscv/Kconfig | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst
> index 750ff371570a0..54be7ddf3e57a 100644
> --- a/Documentation/rust/arch-support.rst
> +++ b/Documentation/rust/arch-support.rst
> @@ -17,7 +17,7 @@ Architecture Level of support Constraints
> ============= ================ ==============================================
> ``arm64`` Maintained Little Endian only.
> ``loongarch`` Maintained \-
> -``riscv`` Maintained ``riscv64`` only.
> +``riscv`` Maintained ``riscv64`` and LLVM/Clang only.
> ``um`` Maintained \-
> ``x86`` Maintained ``x86_64`` only.
> ============= ================ ==============================================
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 22dc5ea4196ce..76843584960c2 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -177,7 +177,7 @@ config RISCV
> select HAVE_REGS_AND_STACK_ACCESS_API
> select HAVE_RETHOOK if !XIP_KERNEL
> select HAVE_RSEQ
> - select HAVE_RUST if RUSTC_SUPPORTS_RISCV
> + select HAVE_RUST if RUSTC_SUPPORTS_RISCV && CC_IS_CLANG
> select HAVE_SAMPLE_FTRACE_DIRECT
> select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
> select HAVE_STACKPROTECTOR
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-01 18:55 ` Nathan Chancellor
@ 2024-10-01 19:27 ` Conor Dooley
0 siblings, 0 replies; 10+ messages in thread
From: Conor Dooley @ 2024-10-01 19:27 UTC (permalink / raw)
To: Nathan Chancellor
Cc: linux-riscv, Conor Dooley, Jason Montleon, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
[-- Attachment #1: Type: text/plain, Size: 2094 bytes --]
On Tue, Oct 01, 2024 at 11:55:25AM -0700, Nathan Chancellor wrote:
> On Tue, Oct 01, 2024 at 12:28:13PM +0100, Conor Dooley wrote:
> > From: Conor Dooley <conor.dooley@microchip.com>
> >
> > During the discussion before supporting rust on riscv, it was decided
> > not to support gcc yet, due to differences in extension handling
> > compared to llvm (only the version of libclang matching the c compiler
> > is supported). Recently Jason Montleon reported [1] that building with
> > gcc caused build issues, due to unsupported arguments being passed to
> > libclang. After some discussion between myself and Miguel, it is better
> > to disable gcc + rust builds to match the original intent, and
> > subsequently support it when an appropriate set of extensions can be
> > deduced from the version of libclang.
> >
> > Closes: https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/ [1]
> > Link: https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/ [2]
> > Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with rust support")
> > Reported-by: Jason Montleon <jmontleo@redhat.com>
> > Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>
> Seems like a reasonable restriction to me.
>
> Reviewed-by: Nathan Chancellor <nathan@kernel.org>
>
> I assume the difficulty is not in getting the libclang version itself
> but actually mapping extensions to the versions and then deciding how to
> make that available to the build system? Or is it more that a solution
> is somewhat known but someone has to actually implement it? Sorry if
> this has been talked about before.
It's mostly that someone has to take the time to go and do it. Miguel
and I discussed getting the libclang version a bit in [2] and mapping
the versions to extensions is no different (AFAIU) to mapping the
versions to extensions for Clang, so the work in figuring that out is
mostly done. It's a matter of going off and doing it, and testing the
various mixed tool configurations and versions to make sure it works
correctly.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-01 11:28 [PATCH v1] RISC-V: disallow gcc + rust builds Conor Dooley
2024-10-01 15:12 ` Miguel Ojeda
2024-10-01 18:55 ` Nathan Chancellor
@ 2024-10-09 7:46 ` Alexandre Ghiti
2024-10-09 8:10 ` Alexandre Ghiti
2024-10-17 16:30 ` patchwork-bot+linux-riscv
3 siblings, 1 reply; 10+ messages in thread
From: Alexandre Ghiti @ 2024-10-09 7:46 UTC (permalink / raw)
To: Conor Dooley, linux-riscv
Cc: Conor Dooley, Jason Montleon, ojeda, alex.gaynor, boqun.feng,
gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
Hi Conor,
On 01/10/2024 13:28, Conor Dooley wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> During the discussion before supporting rust on riscv, it was decided
> not to support gcc yet, due to differences in extension handling
> compared to llvm (only the version of libclang matching the c compiler
> is supported). Recently Jason Montleon reported [1] that building with
> gcc caused build issues, due to unsupported arguments being passed to
> libclang. After some discussion between myself and Miguel
I have just added "[2]" here as it seemed to be missing.
Thanks,
Alex
> , it is better
> to disable gcc + rust builds to match the original intent, and
> subsequently support it when an appropriate set of extensions can be
> deduced from the version of libclang.
>
> Closes: https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/ [1]
> Link: https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/ [2]
> Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with rust support")
> Reported-by: Jason Montleon <jmontleo@redhat.com>
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> ---
>
> Palmer, this is yours to take.
>
> CC: jmontleo@redhat.com
> CC: ojeda@kernel.org
> CC: alex.gaynor@gmail.com
> CC: boqun.feng@gmail.com
> CC: gary@garyguo.net
> CC: bjorn3_gh@protonmail.com
> CC: benno.lossin@proton.me
> CC: a.hindborg@kernel.org
> CC: aliceryhl@google.com
> CC: paul.walmsley@sifive.com
> CC: palmer@dabbelt.com
> CC: nathan@kernel.org
> CC: ndesaulniers@google.com
> CC: morbo@google.com
> CC: justinstitt@google.com
> CC: rust-for-linux@vger.kernel.org
> CC: linux-riscv@lists.infradead.org
> CC: llvm@lists.linux.dev
> ---
> Documentation/rust/arch-support.rst | 2 +-
> arch/riscv/Kconfig | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arch-support.rst
> index 750ff371570a0..54be7ddf3e57a 100644
> --- a/Documentation/rust/arch-support.rst
> +++ b/Documentation/rust/arch-support.rst
> @@ -17,7 +17,7 @@ Architecture Level of support Constraints
> ============= ================ ==============================================
> ``arm64`` Maintained Little Endian only.
> ``loongarch`` Maintained \-
> -``riscv`` Maintained ``riscv64`` only.
> +``riscv`` Maintained ``riscv64`` and LLVM/Clang only.
> ``um`` Maintained \-
> ``x86`` Maintained ``x86_64`` only.
> ============= ================ ==============================================
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 22dc5ea4196ce..76843584960c2 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -177,7 +177,7 @@ config RISCV
> select HAVE_REGS_AND_STACK_ACCESS_API
> select HAVE_RETHOOK if !XIP_KERNEL
> select HAVE_RSEQ
> - select HAVE_RUST if RUSTC_SUPPORTS_RISCV
> + select HAVE_RUST if RUSTC_SUPPORTS_RISCV && CC_IS_CLANG
> select HAVE_SAMPLE_FTRACE_DIRECT
> select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
> select HAVE_STACKPROTECTOR
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-09 7:46 ` Alexandre Ghiti
@ 2024-10-09 8:10 ` Alexandre Ghiti
2024-10-09 8:23 ` Conor Dooley
0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Ghiti @ 2024-10-09 8:10 UTC (permalink / raw)
To: Conor Dooley, linux-riscv
Cc: Conor Dooley, Jason Montleon, ojeda, alex.gaynor, boqun.feng,
gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
On 09/10/2024 09:46, Alexandre Ghiti wrote:
> Hi Conor,
>
> On 01/10/2024 13:28, Conor Dooley wrote:
>> From: Conor Dooley <conor.dooley@microchip.com>
>>
>> During the discussion before supporting rust on riscv, it was decided
>> not to support gcc yet, due to differences in extension handling
>> compared to llvm (only the version of libclang matching the c compiler
>> is supported). Recently Jason Montleon reported [1] that building with
>> gcc caused build issues, due to unsupported arguments being passed to
>> libclang. After some discussion between myself and Miguel
>
>
> I have just added "[2]" here as it seemed to be missing.
>
> Thanks,
>
> Alex
>
>
>> , it is better
>> to disable gcc + rust builds to match the original intent, and
>> subsequently support it when an appropriate set of extensions can be
>> deduced from the version of libclang.
>>
>> Closes:
>> https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/
>> [1]
>> Link:
>> https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/
>> [2]
>> Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with
>> rust support")
I also fixed the Fixes tag ^, it contains 13 characters instead of 12
and added a cc: stable tag.
>> Reported-by: Jason Montleon <jmontleo@redhat.com>
And I moved this tag above the Closes tag.
Thanks,
Alex
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>> ---
>>
>> Palmer, this is yours to take.
>>
>> CC: jmontleo@redhat.com
>> CC: ojeda@kernel.org
>> CC: alex.gaynor@gmail.com
>> CC: boqun.feng@gmail.com
>> CC: gary@garyguo.net
>> CC: bjorn3_gh@protonmail.com
>> CC: benno.lossin@proton.me
>> CC: a.hindborg@kernel.org
>> CC: aliceryhl@google.com
>> CC: paul.walmsley@sifive.com
>> CC: palmer@dabbelt.com
>> CC: nathan@kernel.org
>> CC: ndesaulniers@google.com
>> CC: morbo@google.com
>> CC: justinstitt@google.com
>> CC: rust-for-linux@vger.kernel.org
>> CC: linux-riscv@lists.infradead.org
>> CC: llvm@lists.linux.dev
>> ---
>> Documentation/rust/arch-support.rst | 2 +-
>> arch/riscv/Kconfig | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/Documentation/rust/arch-support.rst
>> b/Documentation/rust/arch-support.rst
>> index 750ff371570a0..54be7ddf3e57a 100644
>> --- a/Documentation/rust/arch-support.rst
>> +++ b/Documentation/rust/arch-support.rst
>> @@ -17,7 +17,7 @@ Architecture Level of support Constraints
>> ============= ================
>> ==============================================
>> ``arm64`` Maintained Little Endian only.
>> ``loongarch`` Maintained \-
>> -``riscv`` Maintained ``riscv64`` only.
>> +``riscv`` Maintained ``riscv64`` and LLVM/Clang only.
>> ``um`` Maintained \-
>> ``x86`` Maintained ``x86_64`` only.
>> ============= ================
>> ==============================================
>> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
>> index 22dc5ea4196ce..76843584960c2 100644
>> --- a/arch/riscv/Kconfig
>> +++ b/arch/riscv/Kconfig
>> @@ -177,7 +177,7 @@ config RISCV
>> select HAVE_REGS_AND_STACK_ACCESS_API
>> select HAVE_RETHOOK if !XIP_KERNEL
>> select HAVE_RSEQ
>> - select HAVE_RUST if RUSTC_SUPPORTS_RISCV
>> + select HAVE_RUST if RUSTC_SUPPORTS_RISCV && CC_IS_CLANG
>> select HAVE_SAMPLE_FTRACE_DIRECT
>> select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
>> select HAVE_STACKPROTECTOR
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-09 8:10 ` Alexandre Ghiti
@ 2024-10-09 8:23 ` Conor Dooley
2024-10-09 8:34 ` Alexandre Ghiti
0 siblings, 1 reply; 10+ messages in thread
From: Conor Dooley @ 2024-10-09 8:23 UTC (permalink / raw)
To: Alexandre Ghiti
Cc: linux-riscv, Conor Dooley, Jason Montleon, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
[-- Attachment #1: Type: text/plain, Size: 934 bytes --]
On Wed, Oct 09, 2024 at 10:10:14AM +0200, Alexandre Ghiti wrote:
> > > , it is better
> > > to disable gcc + rust builds to match the original intent, and
> > > subsequently support it when an appropriate set of extensions can be
> > > deduced from the version of libclang.
> > >
> > > Closes:
> > > https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/
> > > [1]
> > > Link:
> > > https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/
> > > [2]
> > > Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with
> > > rust support")
>
>
> I also fixed the Fixes tag ^, it contains 13 characters instead of 12 and
> added a cc: stable tag.
FYI, checkpatch is not an arbiter of truth, and I intentionally left the
13th character that git determined it needed to have there. Apparently
the kernel now has enough objects that there can be 12 character
collisions.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-09 8:23 ` Conor Dooley
@ 2024-10-09 8:34 ` Alexandre Ghiti
2024-10-09 12:52 ` Miguel Ojeda
0 siblings, 1 reply; 10+ messages in thread
From: Alexandre Ghiti @ 2024-10-09 8:34 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-riscv, Conor Dooley, Jason Montleon, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
On 09/10/2024 10:23, Conor Dooley wrote:
> On Wed, Oct 09, 2024 at 10:10:14AM +0200, Alexandre Ghiti wrote:
>
>>>> , it is better
>>>> to disable gcc + rust builds to match the original intent, and
>>>> subsequently support it when an appropriate set of extensions can be
>>>> deduced from the version of libclang.
>>>>
>>>> Closes:
>>>> https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/
>>>> [1]
>>>> Link:
>>>> https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/
>>>> [2]
>>>> Fixes: 70a57b247251a ("RISC-V: enable building 64-bit kernels with
>>>> rust support")
>>
>> I also fixed the Fixes tag ^, it contains 13 characters instead of 12 and
>> added a cc: stable tag.
> FYI, checkpatch is not an arbiter of truth, and I intentionally left the
> 13th character that git determined it needed to have there. Apparently
> the kernel now has enough objects that there can be 12 character
> collisions.
Ok, thanks for the explanation: do checkpatch and the documentation need
to be updated then? Is that a known issue?
From https://docs.kernel.org/process/submitting-patches.html:
"If your patch fixes a bug in a specific commit, e.g. you found an issue
using git bisect, please use the ‘Fixes:’ tag with the first 12
characters of the SHA-1 ID, and the one line summary."
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-09 8:34 ` Alexandre Ghiti
@ 2024-10-09 12:52 ` Miguel Ojeda
0 siblings, 0 replies; 10+ messages in thread
From: Miguel Ojeda @ 2024-10-09 12:52 UTC (permalink / raw)
To: Alexandre Ghiti, Geert Uytterhoeven
Cc: Conor Dooley, linux-riscv, Conor Dooley, Jason Montleon, ojeda,
alex.gaynor, boqun.feng, gary, bjorn3_gh, benno.lossin,
a.hindborg, aliceryhl, paul.walmsley, palmer, nathan,
ndesaulniers, morbo, justinstitt, rust-for-linux, llvm
On Wed, Oct 9, 2024 at 10:34 AM Alexandre Ghiti <alex@ghiti.fr> wrote:
>
> Ok, thanks for the explanation: do checkpatch and the documentation need
> to be updated then? Is that a known issue?
>
> From https://docs.kernel.org/process/submitting-patches.html:
>
> "If your patch fixes a bug in a specific commit, e.g. you found an issue
> using git bisect, please use the ‘Fixes:’ tag with the first 12
> characters of the SHA-1 ID, and the one line summary."
I think Geert (Cc'd) wanted to change those docs -- I am not sure if
the idea is to go with 13 or more, though.
In any case, even if there is a conflict, we have the title.
Cheers,
Miguel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v1] RISC-V: disallow gcc + rust builds
2024-10-01 11:28 [PATCH v1] RISC-V: disallow gcc + rust builds Conor Dooley
` (2 preceding siblings ...)
2024-10-09 7:46 ` Alexandre Ghiti
@ 2024-10-17 16:30 ` patchwork-bot+linux-riscv
3 siblings, 0 replies; 10+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-10-17 16:30 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-riscv, conor.dooley, jmontleo, ojeda, alex.gaynor,
boqun.feng, gary, bjorn3_gh, benno.lossin, a.hindborg, aliceryhl,
paul.walmsley, palmer, nathan, ndesaulniers, morbo, justinstitt,
rust-for-linux, llvm
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Tue, 1 Oct 2024 12:28:13 +0100 you wrote:
> From: Conor Dooley <conor.dooley@microchip.com>
>
> During the discussion before supporting rust on riscv, it was decided
> not to support gcc yet, due to differences in extension handling
> compared to llvm (only the version of libclang matching the c compiler
> is supported). Recently Jason Montleon reported [1] that building with
> gcc caused build issues, due to unsupported arguments being passed to
> libclang. After some discussion between myself and Miguel, it is better
> to disable gcc + rust builds to match the original intent, and
> subsequently support it when an appropriate set of extensions can be
> deduced from the version of libclang.
>
> [...]
Here is the summary with links:
- [v1] RISC-V: disallow gcc + rust builds
https://git.kernel.org/riscv/c/e52d5050a0d2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-10-17 16:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 11:28 [PATCH v1] RISC-V: disallow gcc + rust builds Conor Dooley
2024-10-01 15:12 ` Miguel Ojeda
2024-10-01 18:55 ` Nathan Chancellor
2024-10-01 19:27 ` Conor Dooley
2024-10-09 7:46 ` Alexandre Ghiti
2024-10-09 8:10 ` Alexandre Ghiti
2024-10-09 8:23 ` Conor Dooley
2024-10-09 8:34 ` Alexandre Ghiti
2024-10-09 12:52 ` Miguel Ojeda
2024-10-17 16:30 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).