Source: ucx
Version: 1.19.0+ds-1
Severity: normal
Tags: FTBFS patch
User: [email protected]
Usertags: loong64

Dear maintainers,

Compiling the ucx failed for loong64 in the Debian Package Auto-Building environment.
The error log is as follows,
```
......
sys/iovec.c: In function 'ucs_iov_copy':
sys/iovec.c:47:13: error: too many arguments to function 'ucs_memcpy_relaxed'    47 |             ucs_memcpy_relaxed(iov_buf, UCS_PTR_BYTE_OFFSET(buf, copied), len,
      |             ^~~~~~~~~~~~~~~~~~
.......
```
The full build log can be found at https://buildd.debian.org/status/fetch.php?pkg=ucx&arch=loong64&ver=1.19.0%2Bds-1&stamp=1758999626&raw=0.

Please consider the patch I attached.
According to the function calling in ./src/ucs/sys/iovec.c file, I need to update the parameters of function ucs_memcpy_relaxed(); Based on attached patch, I have built ucx (1.19.1+ds-1+loong64) successfully on locally.

Your opinions are welcome.

Best regards,
Dandan Zhang

Description: Modify arguments of ucs_memcpy_relaxed(); function.
 .
 ucx (1.19.0+ds-1+loong64) unstable; urgency=medium
 .
   * Modify arguments of ucs_memcpy_relaxed(); function.
Author: Dandan Zhang <[email protected]>

--- ucx-1.19.0+ds.orig/src/ucs/arch/loongarch64/cpu.h
+++ ucx-1.19.0+ds/src/ucs/arch/loongarch64/cpu.h
@@ -96,7 +96,9 @@ static inline void ucs_arch_clear_cache(
 }
 #endif
 
-static inline void *ucs_memcpy_relaxed(void *dst, const void *src, size_t len)
+static inline void *ucs_memcpy_relaxed(void *dst, const void *src, size_t len,
+                                       ucs_arch_memcpy_hint_t hint,
+                                       size_t total_len)
 {
     return memcpy(dst, src, len);
 }

Reply via email to