Skip to contentSkip to conversation

mariadb: fix building for the ARMv8.3-A and later systems

PATCH New Dmitry Baryshkov 1 participant 1 message Jun 8

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mariadb: fix building for the ARMv8.3-A and later systems

Building mariadb for ARMv8.3-A and later, fails with:

Assembler messages:
{standard input}:169: Error: selected processor does not support retaa' {standard input}:271: Error: selected processor does not support retaa'

It happens because the pmem_cvap() funciton manually inserts the .arch armv8-2.a clause, making GAS believe that retaa instruction (inserted by GCC) is invalid.

Replace compiler dependent version by using the generic sys instruction.

---
 meta-oe/recipes-dbs/mysql/mariadb.inc         |  1 +
 ...b11be28ae9b2432b2a661bf38a197cf9514d.patch | 52 +++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 meta-oe/recipes-dbs/mysql/mariadb/c21bb11be28ae9b2432b2a661bf38a197cf9514d.patch
meta-oe/recipes-dbs/mysql/mariadb.inc +1 -0
index 9470184d3d43..87378e27f170 100644
@@ -25,6 +25,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
            file://riscv32.patch \
            file://0001-support-reproducible-builds.patch \
            file://0001-storage-mroonga-CMakeLists.txt-fix-reproducible-buil.patch \
+           file://c21bb11be28ae9b2432b2a661bf38a197cf9514d.patch \
           "
 SRC_URI[sha256sum] = "14783ddc5edd966ff05aa0efd5ed6d3d369ed5b9e4080a448f00f87a9f0a4a6b"
 
meta-oe/recipes-dbs/mysql/mariadb/c21bb11be28ae9b2432b2a661bf38a197cf9514d.patch new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
2.47.3