Skip to contentSkip to conversation

package/php: force arm mode instead of Thumb mode

PATCH Applied Bernd Kuhls 3 participants 5 messages Jul 28, 2023 – Aug 30, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/php: force arm mode instead of Thumb mode

Fix the following build failure:
/tmp/ccqcLrVb.s:4053: Error: selected processor does not support umlal r2,r1,r0,r3' in Thumb mode /tmp/ccqcLrVb.s:4076: Error: selected processor does not support umlal r0,r3,r1,r2' in Thumb mode /tmp/ccqcLrVb.s:8644: Error: selected processor does not support `umlal r0,r3,r2,r4' in Thumb mode

Fixes:
http://autobuild.buildroot.net/results/1d09a0a58cbc1712416de746d57d4532df580673/

---
 package/php/php.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/php/php.mk +7 -0
index 6a2a6ae71b..68aeceb33e 100644
@@ -84,6 +84,13 @@ else
 PHP_CONF_ENV += ac_cv_func_dlopen=no ac_cv_lib_dl_dlopen=no
 endif
 
+# php has some assembly function that is not present in Thumb mode:
+# Error: selected processor does not support `umlal r2,r1,r0,r3' in Thumb mode
+# so, we desactivate Thumb mode
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
+PHP_CFLAGS += -marm
+endif
+
 PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_SAPI_CLI),--enable-cli,--disable-cli)
 PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_SAPI_CGI),--enable-cgi,--disable-cgi)
 PHP_CONF_OPTS += $(if $(BR2_PACKAGE_PHP_SAPI_FPM),--enable-fpm,--disable-fpm)
Signature · 6 lines
2.39.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 5 lines · On Fri, 28 Jul 2023 19:20:26 +0200 Bernd Kuhls <[email protected]> wrote:

Fix the following build failure:
/tmp/ccqcLrVb.s:4053: Error: selected processor does not support umlal r2,r1,r0,r3' in Thumb mode /tmp/ccqcLrVb.s:4076: Error: selected processor does not support umlal r0,r3,r1,r2' in Thumb mode /tmp/ccqcLrVb.s:8644: Error: selected processor does not support `umlal r0,r3,r2,r4' in Thumb mode

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/1d09a0a58cbc1712416de746d57d4532df580673/

---
 package/php/php.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Bernd Kuhls
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fix the following build failure:
/tmp/ccqcLrVb.s:4053: Error: selected processor does not support umlal r2,r1,r0,r3' in Thumb mode /tmp/ccqcLrVb.s:4076: Error: selected processor does not support umlal r0,r3,r1,r2' in Thumb mode /tmp/ccqcLrVb.s:8644: Error: selected processor does not support `umlal r0,r3,r2,r4' in Thumb mode

Fixes:
http://autobuild.buildroot.net/results/1d09a0a58cbc1712416de746d57d4532df580673/

Committed to 2023.02.x and 2023.05.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hi Peter,

Quoted 7 lines · Peter Korsgaard
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fix the following build failure:
/tmp/ccqcLrVb.s:4053: Error: selected processor does not support umlal r2,r1,r0,r3' in Thumb mode /tmp/ccqcLrVb.s:4076: Error: selected processor does not support umlal r0,r3,r1,r2' in Thumb mode /tmp/ccqcLrVb.s:8644: Error: selected processor does not support `umlal r0,r3,r2,r4' in Thumb mode

Quoted 6 lines
Quoted 4 lines

Fixes:
http://autobuild.buildroot.net/results/1d09a0a58cbc1712416de746d57d4532df580673/

Committed to 2023.02.x and 2023.05.x, thanks.

Not in the 2023.02.x branch as of commit 34dde405262f.

baruch

Signature · 7 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Hi Peter,

Quoted 7 lines · Peter Korsgaard
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

Fix the following build failure:
/tmp/ccqcLrVb.s:4053: Error: selected processor does not support umlal r2,r1,r0,r3' in Thumb mode /tmp/ccqcLrVb.s:4076: Error: selected processor does not support umlal r0,r3,r1,r2' in Thumb mode /tmp/ccqcLrVb.s:8644: Error: selected processor does not support `umlal r0,r3,r2,r4' in Thumb mode

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Fixes:
http://autobuild.buildroot.net/results/1d09a0a58cbc1712416de746d57d4532df580673/

Committed to 2023.02.x and 2023.05.x, thanks.

Not in the 2023.02.x branch as of commit 34dde405262f.

Argh, I'm clearly trying to do too many different things at once, I'll stop.

Thanks!

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot