Package: wlcs
Version: 1.6.0-1
Severity: normal
Tags: patch ftbfs
User: [email protected]
Usertags: loongarch64

Dear maintainers,

When compiling the package wlcs for loong64 in the Debian Package Auto-Building environment [1], The error message is as follows:
......Omit
/usr/bin/ld: cannot find -lubsan: No such file or directory
/usr/bin/ld: cannot find -lubsan: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/wlcs.ubsan.dir/build.make:1038: wlcs.ubsan] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-loongarch64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:226: CMakeFiles/wlcs.ubsan.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-loongarch64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-loongarch64-linux-gnu'
dh_auto_build: error: cd obj-loongarch64-linux-gnu && make -j16 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
......Omit

The full build log can be found at:
https://buildd.debian.org/status/fetch.php?pkg=wlcs&arch=loong64&ver=1.6.0-1&stamp=1693579470&raw=0

Referring to other architectures and loong64 compilation errors, it is necessary to set -DWLCS_BUILD_ASAN=OFF for LoongArch.
Please consider the patch (modify debian/rules) I have attached.
If you have any questions, you can contact me at any time.


[1]:https://buildd.debian.org/status/package.php?p=wlcs&suite=sid

thanks,
Dandan Zhang

diff -Nru wlcs-1.6.0/debian/changelog wlcs-1.6.0/debian/changelog
--- wlcs-1.6.0/debian/changelog 2023-08-10 21:35:06.000000000 +0000
+++ wlcs-1.6.0/debian/changelog 2023-09-13 07:19:55.000000000 +0000
@@ -1,3 +1,10 @@
+wlcs (1.6.0-1+loong64) unreleased; urgency=medium
+
+  * debian/rules:
+    + Set -DWLCS_BUILD_ASAN=OFF for LoongArch architecture.
+
+ -- Dandan Zhang <[email protected]>  Wed, 13 Sep 2023 15:19:55 +0800
+
 wlcs (1.6.0-1) unstable; urgency=medium
 
   * New upstream version 1.6.0
diff -Nru wlcs-1.6.0/debian/rules wlcs-1.6.0/debian/rules
--- wlcs-1.6.0/debian/rules     2023-08-10 20:58:51.000000000 +0000
+++ wlcs-1.6.0/debian/rules     2023-09-13 07:17:57.000000000 +0000
@@ -20,15 +20,15 @@
   endif
 endif
 
-ifneq ($(filter armel armhf i386 mipsel mips64el s390x alpha hppa ia64 m68k 
powerpc riscv64 sh4 sparc64 x32, $(DEB_HOST_ARCH)),)
+ifneq ($(filter armel armhf i386 mipsel mips64el s390x alpha hppa ia64 loong64 
m68k powerpc riscv64 sh4 sparc64 x32, $(DEB_HOST_ARCH)),)
   WITH_TSAN = -DWLCS_BUILD_TSAN=OFF
 endif
 
-ifneq ($(filter mipsel mips64el alpha hppa ia64 m68k powerpc riscv64 sh4, 
$(DEB_HOST_ARCH)),)
+ifneq ($(filter mipsel mips64el alpha hppa ia64 loong64 m68k powerpc riscv64 
sh4, $(DEB_HOST_ARCH)),)
   WITH_UBSAN = -DWLCS_BUILD_UBSAN=OFF
 endif
 
-ifneq ($(filter mipsel mips64el s390x alpha hppa ia64 m68k riscv64 sh4 
sparc64, $(DEB_HOST_ARCH)),)
+ifneq ($(filter mipsel mips64el s390x alpha hppa loong64 ia64 m68k riscv64 sh4 
sparc64, $(DEB_HOST_ARCH)),)
   WITH_ASAN = -DWLCS_BUILD_ASAN=OFF
 endif
 

Reply via email to