Bug#911284: erlang-jiffy: FTBFS on riscv64
Package: erlang-jiffy
Version: 0.14.11+dfsg-3
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-riscv@lists.debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64
Dear Maintainer,
The version of the package currently FBTFS on the riscv64 port:
https://buildd.debian.org/status/fetch.php?pkg=erlang-jiffy&arch=riscv64&ver=0.14.11%2Bdfsg-3&stamp=1527655002&raw=0
-----
Compiling c_src/decoder.c
Compiling c_src/encoder.c
Compiling c_src/jiffy.c
Compiling c_src/utf8.c
Compiling c_src/util.c
Compiling c_src/doubles.cc
In file included from c_src/double-conversion/double-conversion.h:31:0,
from c_src/doubles.cc:1:
c_src/double-conversion/utils.h:77:2: error: #error Target
architecture was not detected as supported by Double-Conversion.
#error Target architecture was not detected as supported by Double-Conversion.
^~~~~
ERROR: Command [compile] failed!
make[1]: *** [/usr/share/dh-rebar/make/dh-rebar.Makefile:126:
rebar_compile] Error 1
dh_auto_build: make --no-print-directory -f
/usr/share/dh-rebar/make/dh-rebar.Makefile build returned exit code 2
make: *** [debian/rules:9: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned
exit status 2
--------------------------------------------------------------------------------
Build finished at 2018-05-30T04:36:15Z
-----
I created a patch which revice this problem.
Could you check patch and apply?
Best regards,
Nobuhiro
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org}
GPG ID: 40AD1FA6
--- a/c_src/double-conversion/utils.h 2018-10-18 15:47:52.208592219 +0900
+++ b/c_src/double-conversion/utils.h 2018-10-18 15:48:30.492774884 +0900
@@ -62,7 +62,8 @@
defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
defined(__SH4__) || defined(__alpha__) || \
defined(_MIPS_ARCH_MIPS32R2) || \
- defined(__AARCH64EL__) || defined(__aarch64__)
+ defined(__AARCH64EL__) || defined(__aarch64__) || \
+ defined(__riscv)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__)
#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS
Reply to: