[Debian-on-mobile-maintainers] Bug#1101424: axc: ‘-fcf-protection=full’ is not supported for many targets

zhangdandan zhangdandan at loongson.cn
Thu Mar 27 09:41:46 GMT 2025


Source: axc
Version: 0.3.7-2
Severity: normal
Tags: patch
User: debian-loongarch at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: axc-remove-fcf-protection-option-for-TESTFLAGS.patch
Type: text/x-patch
Size: 1015 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20250327/4ca333a5/attachment.bin>


More information about the Debian-on-mobile-maintainers mailing list