Hello,
the same error is noticed for other big endian architectures like
mips and powerpc.
This patch from upstream fixes this issue for me on mips.
https://github.com/stedolan/jq/commit/20e629284f94e0c8a14e8425309c913b6ee5b280
The patch is attached.
Could you please consider including this patch.
Best Regards,
Dejan
diff -uNr jq-1.4.orig/configure.ac jq-1.4/configure.ac
--- jq-1.4.orig/configure.ac 2014-07-18 15:29:28.000000000 +0000
+++ jq-1.4/configure.ac 2014-07-18 14:37:53.000000000 +0000
@@ -96,6 +96,12 @@
fi
AC_MSG_RESULT($have___thread)
+AC_C_BIGENDIAN(
+ AC_DEFINE([IEEE_MC68k], 1, [machine is bigendian]),
+ AC_DEFINE([IEEE_8087], 1, [machine is littleendian]),
+ AC_MSG_ERROR(unknown endianess),
+ AC_MSG_ERROR(universial endianess not supported)
+)
AC_SUBST([BUNDLER], ["$bundle_cmd"])
diff -uNr jq-1.4.orig/jv_dtoa.c jq-1.4/jv_dtoa.c
--- jq-1.4.orig/jv_dtoa.c 2014-06-19 23:31:18.000000000 +0000
+++ jq-1.4/jv_dtoa.c 2014-07-18 14:38:17.000000000 +0000
@@ -187,7 +187,6 @@
* used for input more than STRTOD_DIGLIM digits long (default 40).
*/
-#define IEEE_8087
#define NO_ERRNO
#define NO_HEX_FP
#define No_Hex_NaN