Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode
@ 2024-03-14 21:32 Fabrice Fontaine
  2024-03-15 17:09 ` André Zwing
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2024-03-14 21:32 UTC (permalink / raw)
  To: buildroot; +Cc: André Zwing, Fabrice Fontaine

Fix the following build failure in Thumb mode:

/tmp/ccdzbA2E.s:845: Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode

Fixes:
 - http://autobuild.buildroot.org/results/08be1fa0fee0f05818cd78d4718caa3476c570ae

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libkrb5/libkrb5.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/libkrb5/libkrb5.mk b/package/libkrb5/libkrb5.mk
index 62a34b2379..c58763eddd 100644
--- a/package/libkrb5/libkrb5.mk
+++ b/package/libkrb5/libkrb5.mk
@@ -33,6 +33,13 @@ LIBKRB5_CONF_OPTS = \
 	--without-tcl \
 	--disable-rpath
 
+# libkrb5 has some assembly function that is not present in Thumb mode:
+# Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode
+# so, we desactivate Thumb mode
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
+LIBKRB5_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
 # Enabling static and shared at the same time is not supported
 ifeq ($(BR2_SHARED_STATIC_LIBS),y)
 LIBKRB5_CONF_OPTS += --disable-static
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode
  2024-03-14 21:32 [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode Fabrice Fontaine
@ 2024-03-15 17:09 ` André Zwing
  2024-03-15 19:21 ` Arnout Vandecappelle via buildroot
  2024-03-21 20:47 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: André Zwing @ 2024-03-15 17:09 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot

Am 14.03.24 um 22:32 schrieb Fabrice Fontaine:
> Fix the following build failure in Thumb mode:
> 
> /tmp/ccdzbA2E.s:845: Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/08be1fa0fee0f05818cd78d4718caa3476c570ae
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>   package/libkrb5/libkrb5.mk | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/package/libkrb5/libkrb5.mk b/package/libkrb5/libkrb5.mk
> index 62a34b2379..c58763eddd 100644
> --- a/package/libkrb5/libkrb5.mk
> +++ b/package/libkrb5/libkrb5.mk
> @@ -33,6 +33,13 @@ LIBKRB5_CONF_OPTS = \
>   	--without-tcl \
>   	--disable-rpath
>   
> +# libkrb5 has some assembly function that is not present in Thumb mode:
> +# Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode
> +# so, we desactivate Thumb mode
> +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
> +LIBKRB5_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
> +endif
> +
>   # Enabling static and shared at the same time is not supported
>   ifeq ($(BR2_SHARED_STATIC_LIBS),y)
>   LIBKRB5_CONF_OPTS += --disable-static



Reviewed-by: André Zwing <nerv@dawncrow.de>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode
  2024-03-14 21:32 [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode Fabrice Fontaine
  2024-03-15 17:09 ` André Zwing
@ 2024-03-15 19:21 ` Arnout Vandecappelle via buildroot
  2024-03-21 20:47 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2024-03-15 19:21 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: André Zwing



On 14/03/2024 22:32, Fabrice Fontaine wrote:
> Fix the following build failure in Thumb mode:
> 
> /tmp/ccdzbA2E.s:845: Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/08be1fa0fee0f05818cd78d4718caa3476c570ae
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   package/libkrb5/libkrb5.mk | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/package/libkrb5/libkrb5.mk b/package/libkrb5/libkrb5.mk
> index 62a34b2379..c58763eddd 100644
> --- a/package/libkrb5/libkrb5.mk
> +++ b/package/libkrb5/libkrb5.mk
> @@ -33,6 +33,13 @@ LIBKRB5_CONF_OPTS = \
>   	--without-tcl \
>   	--disable-rpath
>   
> +# libkrb5 has some assembly function that is not present in Thumb mode:
> +# Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode
> +# so, we desactivate Thumb mode
> +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
> +LIBKRB5_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
> +endif
> +
>   # Enabling static and shared at the same time is not supported
>   ifeq ($(BR2_SHARED_STATIC_LIBS),y)
>   LIBKRB5_CONF_OPTS += --disable-static
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode
  2024-03-14 21:32 [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode Fabrice Fontaine
  2024-03-15 17:09 ` André Zwing
  2024-03-15 19:21 ` Arnout Vandecappelle via buildroot
@ 2024-03-21 20:47 ` Peter Korsgaard
  2024-03-21 20:48   ` Peter Korsgaard
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2024-03-21 20:47 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: André Zwing, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fix the following build failure in Thumb mode:
 > /tmp/ccdzbA2E.s:845: Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode

 > Fixes:
 >  - http://autobuild.buildroot.org/results/08be1fa0fee0f05818cd78d4718caa3476c570ae

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2024.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode
  2024-03-21 20:47 ` Peter Korsgaard
@ 2024-03-21 20:48   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2024-03-21 20:48 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: André Zwing, buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
 >> Fix the following build failure in Thumb mode:
 >> /tmp/ccdzbA2E.s:845: Error: selected processor does not support `mcr p15,0,r2,c7,c10,5' in Thumb mode

 >> Fixes:
 >> - http://autobuild.buildroot.org/results/08be1fa0fee0f05818cd78d4718caa3476c570ae

 >> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 > Committed to 2024.02.x, thanks.

Ehh, and 2023.02.x and 2023.11.x.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-21 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-14 21:32 [Buildroot] [PATCH 1/1] package/libkrb5: force arm mode instead of Thumb mode Fabrice Fontaine
2024-03-15 17:09 ` André Zwing
2024-03-15 19:21 ` Arnout Vandecappelle via buildroot
2024-03-21 20:47 ` Peter Korsgaard
2024-03-21 20:48   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox