[Buildroot] [PATCH 1/4] package/python-ujson: fix or1k build

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


Fabrice, All,

On 2021-10-15 21:38 +0200, Fabrice Fontaine spake thusly:
> Fix the follownig build failure on or1k 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/a82f794f130b0c8d5d626c507bae2e22d15f801b
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

Series of 4 patches applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...for-aarch64_be-or1k-and-microblazebe.patch | 30 +++++++++++++++++++
>  1 file changed, 30 insertions(+)
>  create mode 100644 package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch
> 
> diff --git a/package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch b/package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch
> new file mode 100644
> index 0000000000..b43eb54dcd
> --- /dev/null
> +++ b/package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch
> @@ -0,0 +1,30 @@
> +From 768a445f0c28311bf88685bf0bb990505c12fd4c Mon Sep 17 00:00:00 2001
> +From: Florian Loitsch <florian at loitsch.com>
> +Date: Sat, 8 Sep 2018 18:18:15 +0200
> +Subject: [PATCH] Add support for aarch64_be, or1k and microblazebe.
> +
> +Fixes #73.
> +
> +[Retrieved from:
> +https://github.com/google/double-conversion/commit/768a445f0c28311bf88685bf0bb990505c12fd4c]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> +---
> + double-conversion/utils.h | 5 +++--
> + 1 file changed, 3 insertions(+), 2 deletions(-)
> +
> +diff --git a/deps/double-conversion/ouble-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h
> +index 98a2a11..492bc97 100644
> +--- a/deps/double-conversion/double-conversion/utils.h
> ++++ b/deps/double-conversion/double-conversion/utils.h
> +@@ -76,8 +76,9 @@ inline void abort_noreturn() { abort(); }
> +     defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
> +     defined(__SH4__) || defined(__alpha__) || \
> +     defined(_MIPS_ARCH_MIPS32R2) || \
> +-    defined(__AARCH64EL__) || defined(__aarch64__) || \
> +-    defined(__riscv)
> ++    defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
> ++    defined(__riscv) || \
> ++    defined(__or1k__)
> + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
> + #elif defined(__mc68000__) || \
> +     defined(__pnacl__) || defined(__native_client__)
> -- 
> 2.33.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at 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.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list