<div dir="ltr">Source: axc<br>Version: 0.3.7-2<div>Severity: serious<br>Tags: FTBFS, patch</div><div>User: <a href="mailto:debian-riscv@lists.debian.org" target="_blank">debian-riscv@lists.debian.org</a></div><div>Usertags: riscv64</div><div><br></div><div>Dear axc maintainer,</div><div>The package axc build failed on a lot arch.The crucial buildd log below:</div><div>```</div><div><pre style="color:rgb(0,0,0)">dh_auto_test -- -j1
make -j4 test -j1
make[2]: Entering directory '/build/reproducible-path/axc-0.3.7'
riscv64-linux-gnu-gcc -I/usr/include/glib-2.0 -I/usr/lib/riscv64-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
make[2]: Leaving directory '/build/reproducible-path/axc-0.3.7'
dh_auto_test: error: make -j4 test -j1 returned exit code 2
make[1]: *** [debian/rules:18: override_dh_auto_test] Error 25
make[1]: Leaving directory '/build/reproducible-path/axc-0.3.7'
make: *** [debian/rules:8: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2</pre></div><div>```</div><div>The full buildd log is here:</div><div><a href="https://buildd.debian.org/status/fetch.php?pkg=axc&arch=riscv64&ver=0.3.7-2&stamp=1742544981&raw=0">https://buildd.debian.org/status/fetch.php?pkg=axc&arch=riscv64&ver=0.3.7-2&stamp=1742544981&raw=0</a></div><div>My solution to this issue:</div><div> According to the log analysis, the <code>-fcf-protection</code> option is not supported on specific architectures such as riscv64, resulting in build failure. My solution is to remove the <code>-fcf-protection</code> compilation option on architectures that do not support it.I have tested this solution, and it works well.The debpatch is in the attachment.Please let me know whether this solution can be accepted.<br></div><div>Gui-Yue</div><div>Best Regards</div></div>