Source: axc
Version: 0.3.7-2
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the axc failed for loong64 and many other architectures since 0.3.7-2 in the Debian Package Auto-Building environment.
The error log is as follows,
```
......
dh_auto_test -- -j1
    make -j16 test -j1
make[2]: Entering directory '/<<PKGBUILDDIR>>'
loongarch64-linux-gnu-gcc -I/usr/include/glib-2.0 -I/usr/lib/loongarch64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread    -I/usr/include/signal  -g -O0 --coverage -Wall -Wextra -Wpedantic -Wstrict-overflow -fstack-protector-strong -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -o test/test_store.o test/test_store.c src/axc_crypto.c -lcmocka -Wl,-z,relro -Wl,-z,now -pthread -ldl -lglib-2.0  -lsqlite3  -lgcrypt -lsignal-protocol-c -lprotobuf-c  -lm
cc1: error: ‘-fcf-protection=full’ is not supported for this target
cc1: error: ‘-fcf-protection=full’ is not supported for this target
make[2]: *** [Makefile:146: test_store] Error 1
......
```
The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=axc&arch=loong64.

Please consider the patch I attached.
Based on attached patch, I have built axc (0.3.7-2+loong64) successfully on locally.
```
......
   dh_builddeb
dpkg-deb: building package 'libaxc0' in '../libaxc0_0.3.7-2+loong64_loong64.deb'. dpkg-deb: building package 'libaxc0-dbgsym' in '../libaxc0-dbgsym_0.3.7-2+loong64_loong64.deb'. dpkg-deb: building package 'libaxc-dev' in '../libaxc-dev_0.3.7-2+loong64_loong64.deb'.
 dpkg-genbuildinfo -O../axc_0.3.7-2+loong64_loong64.buildinfo
 dpkg-genchanges -O../axc_0.3.7-2+loong64_loong64.changes
```

Your opinions are welcome.

Best regards,
Dandan Zhang

Description: ‘-fcf-protection=full’ is not supported for loong64 
 .
 axc (0.3.7-2+loong64) unstable; urgency=medium
 .
   * Remove fcf-protection TESTFLAGS on loong64.
Author: Dandan Zhang <zhangdan...@loongson.cn>

---
Last-Update: 2025-03-27

--- axc-0.3.7.orig/Makefile
+++ axc-0.3.7/Makefile
@@ -64,7 +64,7 @@ CPPFLAGS += -D_XOPEN_SOURCE=700 -D_BSD_S
 CFLAGS += $(PKGCFG_C) -std=c11 -g -Wall -Wextra -Wpedantic \
 	  -Wstrict-overflow -fno-strict-aliasing -funsigned-char \
 	  -fno-builtin-memset -fstack-protector-strong -Wformat -Werror=format-security
-TESTFLAGS=$(PKGCFG_C) -g -O0 --coverage -Wall -Wextra -Wpedantic -Wstrict-overflow -fstack-protector-strong -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection
+TESTFLAGS=$(PKGCFG_C) -g -O0 --coverage -Wall -Wextra -Wpedantic -Wstrict-overflow -fstack-protector-strong -Wformat -Werror=format-security -fstack-clash-protection
 LDFLAGS += -pthread -ldl $(PKGCFG_L) -lm
 LDFLAGS_T= -lcmocka $(LDFLAGS)
 PICFLAGS=-fPIC $(CFLAGS)

Reply via email to