Package: luajit Version: 2.1.0+openresty20250117-2 Severity: normal Tags: patch ftbfs User: [email protected] Usertags: origin-ubuntu questing ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: LuaJit fails to build on riscv64 Ubuntu 25.10: https://launchpadlibrarian.net/813730444/buildlog_ubuntu-questing-riscv64.luajit_2.1.0+openresty20250117-2build1_BUILDING.txt.gz buildvm_riscv.dasc: Assembler messages: buildvm_riscv.dasc:3: Error: deprecated - extension `c' in .option arch `-c' make[4]: *** [Makefile:751: lj_vm.o] Error 1 The bug code line is introduced by debian/patches/0003_support_riscv64.patch * Use .option norvc for avoiding compressed instructions. (LP: #2121590) Thanks for considering the patch. -- System Information: Debian Release: forky/sid APT prefers questing APT policy: (500, 'questing') Architecture: amd64 (x86_64) Foreign Architectures: i386, riscv64 Kernel: Linux 6.16.0-16-generic (SMP w/32 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru luajit-2.1.0+openresty20250117/debian/patches/0003_support_riscv64.patch luajit-2.1.0+openresty20250117/debian/patches/0003_support_riscv64.patch --- luajit-2.1.0+openresty20250117/debian/patches/0003_support_riscv64.patch 2025-02-05 17:27:22.000000000 +0100 +++ luajit-2.1.0+openresty20250117/debian/patches/0003_support_riscv64.patch 2025-08-28 14:03:37.000000000 +0200 @@ -3,7 +3,7 @@ Author: [email protected] Origin: https://github.com/plctlab/LuaJIT/commits/riscv64-v2.1-branch/ Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034484 -Last-Update: 2024-06-25 +Last-Update: 2024-08-28 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ Index: luajit/Makefile @@ -1578,7 +1578,7 @@ fprintf(ctx->fp, "\t.set nomips16\n\t.abicalls\n\t.set noreorder\n\t.set nomacro\n"); #endif +#if LJ_TARGET_RISCV64 -+ fprintf(ctx->fp, ".option arch, -c\n.option norelax\n"); ++ fprintf(ctx->fp, ".option norvc\n.option norelax\n"); +#endif emit_asm_align(ctx, 4);

