Your message dated Mon, 21 Aug 2023 09:08:02 +0000 with message-id <E1qY0tG-006Q7c-UJ@fasolo.debian.org> and subject line Bug#1038803: fixed in ffcall 2.4-2.1 has caused the Debian Bug report #1038803, regarding ffcall: FTBFS on riscv64 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 1038803: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1038803 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: ffcall: FTBFS on riscv64
- From: Bo YU <tsu.yubo@gmail.com>
- Date: Wed, 21 Jun 2023 23:18:54 +0800
- Message-id: <20230621151854.nopn2vv7uukod3at@debian>
Source: ffcall Version: 2.4-2 Severity: minor Tags: ftbfs, patch User: debian-riscv@lists.debian.org Usertags: riscv64 X-Debbugs-Cc: debian-riscv@lists.debian.org Dear Maintainer, The package has ftbfs on riscv64: ``` ... gcc -I. -I. -I.. -I./.. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ./minitests.c gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -x none minitests.o libvacall.a -Wl,-z,relro -o minitests /usr/bin/ld: libvacall.a(vacall.o): relocation R_RISCV_HI20 against `vacall_function' can not be used when making a shared object; recompile with -fPIC ... ``` https://buildd.debian.org/status/fetch.php?pkg=ffcall&arch=riscv64&ver=2.4-2&stamp=1673083000&raw=0 The Arch RISC-V team[0] has supported it for a while so I backport the patch to here. Please let me know if there is any issue. [0]: https://github.com/felixonmars/archriscv-packages/blob/master/ffcall -- Regards, -- Bo YUdiff -Nru ffcall-2.4/debian/changelog ffcall-2.4/debian/changelog --- ffcall-2.4/debian/changelog 2022-06-08 16:34:29.000000000 +0800 +++ ffcall-2.4/debian/changelog 2023-06-21 06:07:35.000000000 +0800 @@ -1,3 +1,10 @@ +ffcall (2.4-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * fix ftbfs on riscv64. (Closes: #-1) + + -- Bo YU <tsu.yubo@gmail.com> Wed, 21 Jun 2023 06:07:35 +0800 + ffcall (2.4-2) unstable; urgency=medium * d/copyright: fix short license name (FSFULLR instead of FSFUL) diff -Nru ffcall-2.4/debian/patches/riscv64-pic.patch ffcall-2.4/debian/patches/riscv64-pic.patch --- ffcall-2.4/debian/patches/riscv64-pic.patch 1970-01-01 07:30:00.000000000 +0730 +++ ffcall-2.4/debian/patches/riscv64-pic.patch 2023-06-20 11:00:11.000000000 +0800 @@ -0,0 +1,429 @@ +Description: fix riscv64 ftbfs due to pic +Origin: https://github.com/felixonmars/archriscv-packages/blob/master/ffcall/riscv64-pic.patch +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/vacall/Makefile.devel ++++ b/vacall/Makefile.devel +@@ -274,9 +274,11 @@ + vacall-riscv64-lp64d-linux.s : vacall-riscv64.c vacall-internal.h vacall.h $(THISFILE) + $(CROSS_TOOL) riscv64-linux gcc-7.3.0 $(GCCFLAGS) -D__riscv64__ -S vacall-riscv64.c -o vacall-riscv64-lp64d-linux.s + +-vacall-riscv64-lp64d-macro.S : vacall-riscv64-lp64d-linux.s ../common/asm-riscv.sh ../common/noexecstack.h $(THISFILE) +- (../common/asm-riscv.sh < vacall-riscv64-lp64d-linux.s ; cat ../common/noexecstack.h) > vacall-riscv64-lp64d-macro.S ++vacall-riscv64-lp64d-linux-pic.s : vacall-riscv64.c vacall-internal.h vacall.h $(THISFILE) ++ $(CROSS_TOOL) riscv64-linux gcc-7.3.0 $(GCCFLAGS) -fPIC -D__riscv64__ -S vacall-riscv64.c -o vacall-riscv64-lp64d-linux-pic.s + ++vacall-riscv64-lp64d-macro.S : vacall-riscv64-lp64d-linux.s vacall-riscv64-lp64d-linux-pic.s ../common/asm-riscv.sh ../common/noexecstack.h $(THISFILE) ++ (echo '#ifdef __PIC__' ; ../common/asm-riscv.sh < vacall-riscv64-lp64d-linux-pic.s ; echo '#else' ; ../common/asm-riscv.sh < vacall-riscv64-lp64d-linux.s ; echo '#endif' ; cat ../common/noexecstack.h) > vacall-riscv64-lp64d-macro.S + + # --------------- Rules for debugging test failures --------------- + +--- a/vacall/Makefile.in ++++ b/vacall/Makefile.in +@@ -355,7 +355,7 @@ + vacall-powerpc-linux.s vacall-powerpc-linux-macro.S vacall-powerpc-macos.s vacall-powerpc-sysv4-macro.S \ + vacall-powerpc64.c vacall-powerpc64-aix.s vacall-powerpc64-linux.S vacall-powerpc64-elfv2-linux.S \ + vacall-riscv32.c vacall-riscv32-ilp32d-linux.s vacall-riscv32-ilp32d-macro.S \ +- vacall-riscv64.c vacall-riscv64-lp64d-linux.s vacall-riscv64-lp64d-macro.S \ ++ vacall-riscv64.c vacall-riscv64-lp64d-linux.s vacall-riscv64-lp64d-linux-pic.s vacall-riscv64-lp64d-macro.S \ + vacall-s390.c vacall-s390-linux.s vacall-s390-macro.S \ + vacall-s390x.c vacall-s390x-linux.s vacall-s390x-macro.S \ + vacall-sparc.c vacall-sparc-linux.s vacall-sparc-linux-pic.s vacall-sparc-macro.S \ +--- /dev/null ++++ b/vacall/vacall-riscv64-lp64d-linux-pic.s +@@ -0,0 +1,190 @@ ++ .file "vacall-riscv64.c" ++ .option pic ++ .text ++ .align 1 ++ .globl vacall_receiver ++ .type vacall_receiver, @function ++vacall_receiver: ++ add sp,sp,-288 ++ sd ra,264(sp) ++ sd s0,256(sp) ++ sd s1,248(sp) ++ add s0,sp,272 ++ la t1,vacall_function ++ ld t1,0(t1) ++ sd a0,-200(s0) ++ add a0,s0,16 ++ sd a7,8(s0) ++ sd a1,-192(s0) ++ sd a2,-184(s0) ++ sd a3,-176(s0) ++ sd a4,-168(s0) ++ sd a5,-160(s0) ++ sd a6,-152(s0) ++ sd a7,-144(s0) ++ fsw fa0,-132(s0) ++ fsw fa1,-128(s0) ++ fsw fa2,-124(s0) ++ fsw fa3,-120(s0) ++ fsw fa4,-116(s0) ++ fsw fa5,-112(s0) ++ fsw fa6,-108(s0) ++ fsw fa7,-104(s0) ++ fsd fa0,-96(s0) ++ fsd fa1,-88(s0) ++ fsd fa2,-80(s0) ++ fsd fa3,-72(s0) ++ fsd fa4,-64(s0) ++ fsd fa5,-56(s0) ++ fsd fa6,-48(s0) ++ fsd fa7,-40(s0) ++ sd a0,-240(s0) ++ sw zero,-264(s0) ++ sd zero,-232(s0) ++ add a0,s0,-264 ++ sw zero,-224(s0) ++ sw zero,-208(s0) ++ sw zero,-136(s0) ++ jalr t1 ++ lw t1,-224(s0) ++ beqz t1,.L1 ++ li t3,1 ++ beq t1,t3,.L25 ++ li t3,2 ++ beq t1,t3,.L29 ++ li t3,3 ++ beq t1,t3,.L25 ++ li t3,4 ++ beq t1,t3,.L30 ++ li t3,5 ++ beq t1,t3,.L31 ++ li t3,6 ++ beq t1,t3,.L32 ++ li t3,7 ++ beq t1,t3,.L33 ++ and t3,t1,-3 ++ li t4,8 ++ beq t3,t4,.L27 ++ li t4,9 ++ beq t3,t4,.L27 ++ li t3,12 ++ beq t1,t3,.L34 ++ li t3,13 ++ beq t1,t3,.L35 ++ li t3,14 ++ beq t1,t3,.L27 ++ li t3,15 ++ bne t1,t3,.L1 ++ lw t3,-264(s0) ++ and t3,t3,1024 ++ beqz t3,.L1 ++ ld t0,-216(s0) ++ add t3,t0,-1 ++ bgtu t3,t1,.L1 ++ ld t5,-232(s0) ++ li s1,8 ++ and t6,t5,7 ++ add t2,t0,t6 ++ and t5,t5,-8 ++ sext.w t6,t6 ++ sllw t1,t2,3 ++ ld t4,0(t5) ++ sll t3,t6,3 ++ bgtu t0,s1,.L15 ++ bgtu t2,s1,.L16 ++ addw t1,t1,-1 ++ li a0,2 ++ sll a0,a0,t1 ++ add a0,a0,-1 ++ and a0,a0,t4 ++ sra a0,a0,t3 ++.L1: ++ ld ra,264(sp) ++ ld s0,256(sp) ++ ld s1,248(sp) ++ add sp,sp,288 ++ jr ra ++.L25: ++ lbu a0,-256(s0) ++ ld ra,264(sp) ++ ld s0,256(sp) ++ ld s1,248(sp) ++ add sp,sp,288 ++ jr ra ++.L29: ++ lb a0,-256(s0) ++ ld ra,264(sp) ++ ld s0,256(sp) ++ ld s1,248(sp) ++ add sp,sp,288 ++ jr ra ++.L30: ++ lh a0,-256(s0) ++ j .L1 ++.L33: ++ lwu a0,-256(s0) ++ j .L1 ++.L31: ++ lhu a0,-256(s0) ++ j .L1 ++.L27: ++ ld a0,-256(s0) ++ j .L1 ++.L32: ++ lw a0,-256(s0) ++ j .L1 ++.L34: ++ flw fa0,-256(s0) ++ j .L1 ++.L35: ++ fld fa0,-256(s0) ++ j .L1 ++.L15: ++ li s1,16 ++ sra t4,t4,t3 ++ ld t0,8(t5) ++ bleu t2,s1,.L36 ++ li a1,-8 ++ mulw t6,a1,t6 ++ addw t1,t1,-129 ++ ld a0,16(t5) ++ li a1,2 ++ sll a1,a1,t1 ++ add a1,a1,-1 ++ and a1,a1,a0 ++ sra t3,t0,t3 ++ addw t1,t6,64 ++ sll a0,t0,t1 ++ sll a1,a1,t1 ++ or a0,a0,t4 ++ or a1,a1,t3 ++ j .L1 ++.L16: ++ li a0,-8 ++ mulw t6,a0,t6 ++ addw t1,t1,-65 ++ ld t5,8(t5) ++ li a0,2 ++ sll a0,a0,t1 ++ add a0,a0,-1 ++ and a0,a0,t5 ++ sra t4,t4,t3 ++ sll a0,a0,t6 ++ or a0,a0,t4 ++ j .L1 ++.L36: ++ li a1,-4 ++ mulw t6,a1,t6 ++ addw t1,t1,-65 ++ li a0,2 ++ sll a0,a0,t1 ++ add a0,a0,-1 ++ and a0,a0,t0 ++ sra a1,a0,t3 ++ addw t1,t6,32 ++ sll a0,a0,t1 ++ sll a0,a0,t1 ++ or a0,a0,t4 ++ j .L1 ++ .size vacall_receiver, .-vacall_receiver ++ .ident "GCC: (GNU) 7.3.0" +--- a/vacall/vacall-riscv64-lp64d-macro.S ++++ b/vacall/vacall-riscv64-lp64d-macro.S +@@ -1,3 +1,194 @@ ++#ifdef __PIC__ ++ .file "vacall-riscv64.c" ++ .option pic ++ .text ++ .align 1 ++ .globl vacall_receiver ++ .type vacall_receiver, @function ++vacall_receiver: ++ add sp,sp,-288 ++ sd ra,264(sp) ++ sd s0,256(sp) ++ sd s1,248(sp) ++ add s0,sp,272 ++ la t1,vacall_function ++ ld t1,0(t1) ++ sd a0,-200(s0) ++ add a0,s0,16 ++ sd a7,8(s0) ++ sd a1,-192(s0) ++ sd a2,-184(s0) ++ sd a3,-176(s0) ++ sd a4,-168(s0) ++ sd a5,-160(s0) ++ sd a6,-152(s0) ++ sd a7,-144(s0) ++ fsw fa0,-132(s0) ++ fsw fa1,-128(s0) ++ fsw fa2,-124(s0) ++ fsw fa3,-120(s0) ++ fsw fa4,-116(s0) ++ fsw fa5,-112(s0) ++ fsw fa6,-108(s0) ++ fsw fa7,-104(s0) ++ fsd fa0,-96(s0) ++ fsd fa1,-88(s0) ++ fsd fa2,-80(s0) ++ fsd fa3,-72(s0) ++ fsd fa4,-64(s0) ++ fsd fa5,-56(s0) ++ fsd fa6,-48(s0) ++ fsd fa7,-40(s0) ++ sd a0,-240(s0) ++ sw zero,-264(s0) ++ sd zero,-232(s0) ++ add a0,s0,-264 ++ sw zero,-224(s0) ++ sw zero,-208(s0) ++ sw zero,-136(s0) ++ jalr t1 ++ lw t1,-224(s0) ++ beqz t1,.L1 ++ li t3,1 ++ beq t1,t3,.L25 ++ li t3,2 ++ beq t1,t3,.L29 ++ li t3,3 ++ beq t1,t3,.L25 ++ li t3,4 ++ beq t1,t3,.L30 ++ li t3,5 ++ beq t1,t3,.L31 ++ li t3,6 ++ beq t1,t3,.L32 ++ li t3,7 ++ beq t1,t3,.L33 ++ and t3,t1,-3 ++ li t4,8 ++ beq t3,t4,.L27 ++ li t4,9 ++ beq t3,t4,.L27 ++ li t3,12 ++ beq t1,t3,.L34 ++ li t3,13 ++ beq t1,t3,.L35 ++ li t3,14 ++ beq t1,t3,.L27 ++ li t3,15 ++ bne t1,t3,.L1 ++ lw t3,-264(s0) ++ and t3,t3,1024 ++ beqz t3,.L1 ++ ld t0,-216(s0) ++ add t3,t0,-1 ++ bgtu t3,t1,.L1 ++ ld t5,-232(s0) ++ li s1,8 ++ and t6,t5,7 ++ add t2,t0,t6 ++ and t5,t5,-8 ++ sext.w t6,t6 ++ sllw t1,t2,3 ++ ld t4,0(t5) ++ sll t3,t6,3 ++ bgtu t0,s1,.L15 ++ bgtu t2,s1,.L16 ++ addw t1,t1,-1 ++ li a0,2 ++ sll a0,a0,t1 ++ add a0,a0,-1 ++ and a0,a0,t4 ++ sra a0,a0,t3 ++.L1: ++ ld ra,264(sp) ++ ld s0,256(sp) ++ ld s1,248(sp) ++ add sp,sp,288 ++ jr ra ++.L25: ++ lbu a0,-256(s0) ++ ld ra,264(sp) ++ ld s0,256(sp) ++ ld s1,248(sp) ++ add sp,sp,288 ++ jr ra ++.L29: ++ lb a0,-256(s0) ++ ld ra,264(sp) ++ ld s0,256(sp) ++ ld s1,248(sp) ++ add sp,sp,288 ++ jr ra ++.L30: ++ lh a0,-256(s0) ++ j .L1 ++.L33: ++ lwu a0,-256(s0) ++ j .L1 ++.L31: ++ lhu a0,-256(s0) ++ j .L1 ++.L27: ++ ld a0,-256(s0) ++ j .L1 ++.L32: ++ lw a0,-256(s0) ++ j .L1 ++.L34: ++ flw fa0,-256(s0) ++ j .L1 ++.L35: ++ fld fa0,-256(s0) ++ j .L1 ++.L15: ++ li s1,16 ++ sra t4,t4,t3 ++ ld t0,8(t5) ++ bleu t2,s1,.L36 ++ li a1,-8 ++ mulw t6,a1,t6 ++ addw t1,t1,-129 ++ ld a0,16(t5) ++ li a1,2 ++ sll a1,a1,t1 ++ add a1,a1,-1 ++ and a1,a1,a0 ++ sra t3,t0,t3 ++ addw t1,t6,64 ++ sll a0,t0,t1 ++ sll a1,a1,t1 ++ or a0,a0,t4 ++ or a1,a1,t3 ++ j .L1 ++.L16: ++ li a0,-8 ++ mulw t6,a0,t6 ++ addw t1,t1,-65 ++ ld t5,8(t5) ++ li a0,2 ++ sll a0,a0,t1 ++ add a0,a0,-1 ++ and a0,a0,t5 ++ sra t4,t4,t3 ++ sll a0,a0,t6 ++ or a0,a0,t4 ++ j .L1 ++.L36: ++ li a1,-4 ++ mulw t6,a1,t6 ++ addw t1,t1,-65 ++ li a0,2 ++ sll a0,a0,t1 ++ add a0,a0,-1 ++ and a0,a0,t0 ++ sra a1,a0,t3 ++ addw t1,t6,32 ++ sll a0,a0,t1 ++ sll a0,a0,t1 ++ or a0,a0,t4 ++ j .L1 ++ .size vacall_receiver, .-vacall_receiver ++#else + .file "vacall-riscv64.c" + .option nopic + .text +@@ -187,6 +378,7 @@ + or a0,a0,t4 + j .L1 + .size vacall_receiver, .-vacall_receiver ++#endif + #if defined __linux__ || defined __FreeBSD__ || defined __FreeBSD_kernel__ || defined __DragonFly__ + .section .note.GNU-stack,"",@progbits + #endif diff -Nru ffcall-2.4/debian/patches/series ffcall-2.4/debian/patches/series --- ffcall-2.4/debian/patches/series 2022-06-08 16:08:33.000000000 +0800 +++ ffcall-2.4/debian/patches/series 2023-06-20 10:47:20.000000000 +0800 @@ -1 +1,2 @@ m4-dirs.patch +riscv64-pic.patchAttachment: signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
- To: 1038803-close@bugs.debian.org
- Subject: Bug#1038803: fixed in ffcall 2.4-2.1
- From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
- Date: Mon, 21 Aug 2023 09:08:02 +0000
- Message-id: <E1qY0tG-006Q7c-UJ@fasolo.debian.org>
- Reply-to: Bo YU <tsu.yubo@gmail.com>
Source: ffcall Source-Version: 2.4-2.1 Done: Bo YU <tsu.yubo@gmail.com> We believe that the bug you reported is fixed in the latest version of ffcall, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1038803@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Bo YU <tsu.yubo@gmail.com> (supplier of updated ffcall package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 21 Jun 2023 06:07:35 +0800 Source: ffcall Architecture: source Version: 2.4-2.1 Distribution: unstable Urgency: medium Maintainer: Debian Common Lisp Team <debian-common-lisp@lists.debian.org> Changed-By: Bo YU <tsu.yubo@gmail.com> Closes: 1038803 Changes: ffcall (2.4-2.1) unstable; urgency=medium . * Non-maintainer upload. * fix ftbfs on riscv64 and this is rdep of clisp which to bootstrap sbcl on riscv64. (Closes: #1038803) Checksums-Sha1: 7a0d87bf50f4c50fc373ecf406762ac7a0ba57a1 2227 ffcall_2.4-2.1.dsc e20125c7325de272e9549197cd1ec4554d76fb78 11544 ffcall_2.4-2.1.debian.tar.xz 7767fde7e47250705c30041906bfa75524ef75ec 5405 ffcall_2.4-2.1_source.buildinfo Checksums-Sha256: ee8d99637386af19def809494b38644512f9198551413ad569307effe9956d71 2227 ffcall_2.4-2.1.dsc 2c637eeaf17b4411c0dc589fd32c7939f03cff320d6be8e1e88d9f8ce85fab7d 11544 ffcall_2.4-2.1.debian.tar.xz 270159bf6ffcadb1d9ba042549907201a0c5d7d23141bfe6bcaf38bd895ae9af 5405 ffcall_2.4-2.1_source.buildinfo Files: 739aabd342bf995e81cd262d0ba1e876 2227 libs optional ffcall_2.4-2.1.dsc e3b31471829d44f71301d491aa96aead 11544 libs optional ffcall_2.4-2.1.debian.tar.xz 523a4f2cd6dac6c2c5fdce1aed1f2e3d 5405 libs optional ffcall_2.4-2.1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmTjJbwQHGJhZ2VAZGVi aWFuLm9yZwAKCRAfXHqLRVZDFPwjDAD0JmO4c2dKtOtbd9y33T47ER0zqkNmUP7S 16XB2ZC1/8rZ7RjIHRqavzctf8pt/Xrb8IggTtgX5E9Iri07mPoaSqSOz88Dd6u4 jn8erhwhGaNTlvXveb1Tz5rb9ByI/VT0mFvhwRc2T/Rijn/nSEo6d0Ke2bkrrFS6 nqVeARH4cC9b72yChPbRT2R0yQbKj9JNHSelDMg9qplbNMwW6E0VC+c60xd5Ubar peL9h0SFC45ChMG5STIHjjdyXDBGoOqYGxyICVSIePfXwgdXSfaD+yyOE5PjXnaw go34z9HfwqspVndboZ+J+xd74tI2/yYEMn1UkuuiUf2ysddidv++ihb5BVp8793b WY6Jm3xFqe5oJYBLPpaNG6O7JkP85nFiXQqVrzVhI83mq7eUwNi7YGUdfq3hcBb4 72IHDN4w94iTGQzy/FkGEy7NCGvsKNQYqb0oHbJFa4AxnPaoaHuaQlK4pCLdpYjd 6v9h+VGVEyjROAJBAL2pUQKFVh6Ojj8= =+/b4 -----END PGP SIGNATURE-----
--- End Message ---