[Buildroot] [git commit] package/python-ujson: fix microblaze build

Yann E. MORIN yann.morin.1998 at free.fr
Sat Oct 16 07:39:17 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=9b2d4a4211b8c8d9ece45b472c4f7cdbbb1ee526
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the follownig build failure on microblaze since bump to version
4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354 and
https://github.com/ultrajson/ultrajson/commit/eb7d894f225bb89d269188ba6ec559b914a71b8a:

In file included from ./deps/double-conversion/double-conversion/bignum-dtoa.h:31,
                 from ./deps/double-conversion/double-conversion/bignum-dtoa.cc:30:
./deps/double-conversion/double-conversion/utils.h:92:2: error: #error Target architecture was not detected as supported by Double-Conversion.
   92 | #error Target architecture was not detected as supported by Double-Conversion.
      |  ^~~~~

Fixes:
 - http://autobuild.buildroot.org/results/3cf5f266e0101a6c43f97801157fb6b2edce1ed0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 .../0003-Add-support-for-microblaze.patch          | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/package/python-ujson/0003-Add-support-for-microblaze.patch b/package/python-ujson/0003-Add-support-for-microblaze.patch
new file mode 100644
index 0000000000..14fd52eb98
--- /dev/null
+++ b/package/python-ujson/0003-Add-support-for-microblaze.patch
@@ -0,0 +1,27 @@
+From 5cc233e98b74c5c370de888198a2b35200d55468 Mon Sep 17 00:00:00 2001
+From: Florian Loitsch <florian at toitware.com>
+Date: Sat, 12 Oct 2019 14:35:52 +0200
+Subject: [PATCH] Add support for microblaze.
+
+Really fixes #73.
+[Retrieved (and backported) from:
+https://github.com/google/double-conversion/commit/5cc233e98b74c5c370de888198a2b35200d55468]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+---
+ Changelog                 | 4 ++++
+ double-conversion/utils.h | 1 +
+ 2 files changed, 5 insertions(+)
+
+diff --git a/deps/idouble-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h
+index 1a71df0..221467f 100644
+--- a/deps/doyble-conversion/double-conversion/utils.h
++++ b/deps/double-conversion/double-conversion/utils.h
+@@ -102,6 +102,7 @@ int main(int argc, char** argv) {
+     defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
+     defined(__riscv) || \
+-    defined(__or1k__) || defined(__arc__)
++    defined(__or1k__) || defined(__arc__) || \
++    defined(__microblaze__)
+ #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
+ #elif defined(__mc68000__)
+ #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS


More information about the buildroot mailing list