Source: axc
Version:  0.3.7-2
Severity: serious
Tags: FTBFS, patch
User: debian-ri...@lists.debian.org
Usertags: riscv64

Dear axc maintainer,
The package axc build failed on a lot arch.The crucial buildd log below:
```

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

```
The full buildd log is here:
https://buildd.debian.org/status/fetch.php?pkg=axc&arch=riscv64&ver=0.3.7-2&stamp=1742544981&raw=0
My solution to this issue:
  According to the log analysis, the -fcf-protection option is not
supported on specific architectures such as riscv64, resulting in build
failure.  My solution is to remove the -fcf-protection 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.
Gui-Yue
Best Regards

Attachment: fix_axc_test_failed.patch
Description: Binary data

Reply via email to