Source: quickfix
Version: 1.15.1+dfsg-4.1
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the quickfix failed for loong64 in the Debian Package
Auto-Building environment.
The error log is as follows,
```
In file included from ./double-conversion/diy-fp.h:31,
from double-conversion/diy-fp.cc:29,
from FieldConvertors.cpp:37:
./double-conversion/utils.h:84:2: error: #error Target architecture was
not detected as supported by Double-Conversion.
84 | #error Target architecture was not detected as supported by
Double-Conversion.
| ^~~~~
......
```
The Full log can be found at
https://buildd.debian.org/status/logs.php?pkg=quickfix&ver=1.15.1%2Bdfsg-4.1&arch=loong64.
I have added support for loongarch in quickfix package and built
successfully on my local ENV.
Please consider the patch I attached.
Your opinions are welcome.
Thanks,
Dandan Zhang
Description: Add support for loongarch64
Last-Update: 2024-04-26
--- quickfix-1.15.1+dfsg.orig/src/C++/double-conversion/utils.h
+++ quickfix-1.15.1+dfsg/src/C++/double-conversion/utils.h
@@ -69,7 +69,7 @@
defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
defined(__SH4__) || defined(__alpha__) || \
defined(_MIPS_ARCH_MIPS32R2) || \
- defined(__AARCH64EL__) || defined(__aarch64__)
+ defined(__AARCH64EL__) || defined(__aarch64__) || defined(__loongarch64)
#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
#elif defined(__mc68000__)
#undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS