Thanks again Yue Gui!  It's the same problem as for liboprf.  I'll get to it in
a few days.

Bye,

Joost

On Thu, Sep 19, 2024 at 10:52:21AM +0800, Yue Gui wrote:
> Source: libopaque
> Version: 0.99.7-1
> Severity: serious
> Tags: FTBFS, patch
> User: debian-ri...@lists.debian.org
> Usertags: riscv64
> X-Debbugs-Cc: debian-ri...@lists.debian.org
> 
> Dear libopaque Maintainer,
> The package libopaque build failed on architectures other than x86 and
> i386.The crucial buildd log below:
> ```
> 
> make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
> cc -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
> -Werror=format-security -Wall -pedantic -Wl,-z,defs -Wl,-z,relro
> -Wl,-z,noexecstack -Wl,-z,now -fsanitize=signed-integer-overflow
> -fsanitize-undefined-trap-on-error -fcf-protection=full  -Iaux_ -o
> common.o -c common.c
> cc -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
> -Werror=format-security -Wall -pedantic -Wl,-z,defs -Wl,-z,relro
> -Wl,-z,noexecstack -Wl,-z,now -fsanitize=signed-integer-overflow
> -fsanitize-undefined-trap-on-error -fcf-protection=full  -Iaux_
> -I/usr/include/oprf -o opaque.o -c opaque.c
> cc -g -O2 -Werror=implicit-function-declaration
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
> -Werror=format-security -Wall -pedantic -Wl,-z,defs -Wl,-z,relro
> -Wl,-z,noexecstack -Wl,-z,now -fsanitize=signed-integer-overflow
> -fsanitize-undefined-trap-on-error -fcf-protection=full  -Iaux_ -o
> aux_/kdf_hkdf_sha512.o -c aux_/kdf_hkdf_sha512.c
> make -C utils/man
> make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
> make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent
> make rule.
> pandoc -s  -o opaque.1 opaque.md
> cc1: error: ‘-fcf-protection=full’ is not supported for this target
> cc1: error: ‘-fcf-protection=full’ is not supported for this target
> cc1: error: ‘-fcf-protection=full’ is not supported for this target
> make[1]: *** [makefile:145: opaque.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: *** [makefile:148: common.o] Error 1
> make[1]: *** [makefile:148: aux_/kdf_hkdf_sha512.o] Error 1
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/utils/man'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
> dh_auto_build: error: cd src && make -j4 "INSTALL=install
> --strip-program=true" returned exit code 2
> make: *** [debian/rules:11: binary-arch] Error 25
> 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=libopaque&arch=riscv64&ver=0.99.7-1&stamp=1726708574&raw=0
> 
> My solution to this issue:
>  This error is caused by the fact that architectures other than x86 do not
> support -fcf-protection=full. We can add a condition to check if the host
> architecture is x86. If it is not x86, this CFLAG should be disabled.I have
> finished above work ,and i have tested that on local, it works well.The
> debpatch is in the attachment. Please let me know wheather this solution
> can be accepted.
> 
> Gui-Yue
> Best Regards

Reply via email to