Source: kafs-client Version: 0.5-4 Severity: important Tags: FTBFS, patch User: debian-ri...@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-ri...@lists.debian.org
Dear kafs-client Maintainer, The kafs-client compile failed on riscv64 caused by "unrecognized command-line option ‘-m64’",the crucial log below: ``` make[1]: Entering directory '/<<PKGBUILDDIR>>' make -C src all make[2]: Entering directory '/<<PKGBUILDDIR>>/src' cc -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION="\"0.5\"" -Iinclude -DETCDIR=\"/etc\" -g -O2 -Wall -Wsign-compare -m64 -m64 -fPIC -o lib_cell_lookup.os -c lib_cell_lookup.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION="\"0.5\"" -Iinclude -DETCDIR=\"/etc\" -g -O2 -Wall -Wsign-compare -m64 -m64 -fPIC -o lib_cellserv.os -c lib_cellserv.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION="\"0.5\"" -Iinclude -DETCDIR=\"/etc\" -g -O2 -Wall -Wsign-compare -m64 -m64 -fPIC -o lib_dns_lookup.os -c lib_dns_lookup.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -DVERSION="\"0.5\"" -Iinclude -DETCDIR=\"/etc\" -g -O2 -Wall -Wsign-compare -m64 -m64 -fPIC -o lib_object.os -c lib_object.c cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ cc: error: unrecognized command-line option ‘-m64’ make[2]: *** [Makefile:34: lib_cell_lookup.os] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:34: lib_cellserv.os] Error 1 make[2]: *** [Makefile:34: lib_dns_lookup.os] Error 1 make[2]: *** [Makefile:34: lib_object.os] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>/src' make[1]: *** [Makefile:43: all] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" returned exit code 2 make: *** [debian/rules:9: binary-arch] Error 25 dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2 ``` The buildd log is here: https://buildd.debian.org/status/fetch.php?pkg=kafs-client&arch=riscv64&ver=0.5-4&stamp=1690546865&raw=0 My solution to this issue: add a patch to modify flag option "-m64". This solution is effective, and it has builded successfully in local.The patch is in the attachment. Please let me know wheather this solution can be accpted. Gui-Yue Best Regards
fix_error_flag_m64.debdiff
Description: Binary data