* [Buildroot] [PATCH 1/1] package/madplay: force arm mode instead of Thumb mode
@ 2024-01-09 17:30 Fabrice Fontaine
2024-01-10 10:36 ` Yann E. MORIN
2024-01-13 13:59 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-01-09 17:30 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following build failure raised because madplay uses mad_f_mul
which is defined in usr/include/mad.h (installed by libmad which has
been fixed by a similar workaround in commit
0aaadd525f2df02911349ffe1518814fa095bf96, unfortunately the fix works
for compiled code, not mad_f_mul define):
/tmp/cc5SGGoU.s:102: Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
Fixes:
- http://autobuild.buildroot.org/results/0c0955d4f6726b50cad721f4d3437dabde316e70
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/madplay/madplay.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/madplay/madplay.mk b/package/madplay/madplay.mk
index e1a78bd7d7..91ee44ab5f 100644
--- a/package/madplay/madplay.mk
+++ b/package/madplay/madplay.mk
@@ -15,6 +15,14 @@ MADPLAY_DEPENDENCIES = host-pkgconf libmad libid3tag $(TARGET_NLS_DEPENDENCIES)
# Also 0003-configure-ac-use-pkg-config-to-find-id3tag.patch
MADPLAY_AUTORECONF = YES
+# madplay uses libmad which has some assembly function that is not present in
+# Thumb mode:
+# Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
+# so, we desactivate Thumb mode
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
+MADPLAY_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
# Check if ALSA is built, then we should configure after alsa-lib so
# ./configure can find alsa-lib.
ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/madplay: force arm mode instead of Thumb mode
2024-01-09 17:30 [Buildroot] [PATCH 1/1] package/madplay: force arm mode instead of Thumb mode Fabrice Fontaine
@ 2024-01-10 10:36 ` Yann E. MORIN
2024-01-13 13:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2024-01-10 10:36 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
Fabrice, All,
On 2024-01-09 18:30 +0100, Fabrice Fontaine spake thusly:
> Fix the following build failure raised because madplay uses mad_f_mul
> which is defined in usr/include/mad.h (installed by libmad which has
> been fixed by a similar workaround in commit
> 0aaadd525f2df02911349ffe1518814fa095bf96, unfortunately the fix works
> for compiled code, not mad_f_mul define):
>
> /tmp/cc5SGGoU.s:102: Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
>
> Fixes:
> - http://autobuild.buildroot.org/results/0c0955d4f6726b50cad721f4d3437dabde316e70
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> package/madplay/madplay.mk | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/package/madplay/madplay.mk b/package/madplay/madplay.mk
> index e1a78bd7d7..91ee44ab5f 100644
> --- a/package/madplay/madplay.mk
> +++ b/package/madplay/madplay.mk
> @@ -15,6 +15,14 @@ MADPLAY_DEPENDENCIES = host-pkgconf libmad libid3tag $(TARGET_NLS_DEPENDENCIES)
> # Also 0003-configure-ac-use-pkg-config-to-find-id3tag.patch
> MADPLAY_AUTORECONF = YES
>
> +# madplay uses libmad which has some assembly function that is not present in
> +# Thumb mode:
> +# Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
> +# so, we desactivate Thumb mode
> +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
> +MADPLAY_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
> +endif
> +
> # Check if ALSA is built, then we should configure after alsa-lib so
> # ./configure can find alsa-lib.
> ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/madplay: force arm mode instead of Thumb mode
2024-01-09 17:30 [Buildroot] [PATCH 1/1] package/madplay: force arm mode instead of Thumb mode Fabrice Fontaine
2024-01-10 10:36 ` Yann E. MORIN
@ 2024-01-13 13:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-01-13 13:59 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure raised because madplay uses mad_f_mul
> which is defined in usr/include/mad.h (installed by libmad which has
> been fixed by a similar workaround in commit
> 0aaadd525f2df02911349ffe1518814fa095bf96, unfortunately the fix works
> for compiled code, not mad_f_mul define):
> /tmp/cc5SGGoU.s:102: Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
> Fixes:
> - http://autobuild.buildroot.org/results/0c0955d4f6726b50cad721f4d3437dabde316e70
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.02.x and 2023.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-13 13:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09 17:30 [Buildroot] [PATCH 1/1] package/madplay: force arm mode instead of Thumb mode Fabrice Fontaine
2024-01-10 10:36 ` Yann E. MORIN
2024-01-13 13:59 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox