Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/luajit.spec'], chrootPath='/var/lib/mock/dist-an8_7-build-130199-46252/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/luajit.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/luajit-2.1.0-0.16beta3.0.1.an8_6.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/luajit.spec'], chrootPath='/var/lib/mock/dist-an8_7-build-130199-46252/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/luajit.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FSmBUc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf LuaJIT-2.1.0-beta3 + /usr/bin/gzip -dc /builddir/build/SOURCES/LuaJIT-2.1.0-beta3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd LuaJIT-2.1.0-beta3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-Fix-LJ_MAX_JSLOTS-assertion-in-rec_check_slots.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0002-Add-missing-LJ_MAX_JSLOTS-check.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0003-MIPS-Use-precise-search-for-exit-jump-patching.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0004-MIPS-Fix-handling-of-spare-long-range-jump-slots.patch + /usr/bin/cat /builddir/build/SOURCES/0005-MIPS64-Add-soft-float-support-to-JIT-compiler-backen.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0006-FreeBSD-x64-Avoid-changing-resource-limits-if-not-ne.patch + /usr/bin/cat /builddir/build/SOURCES/0007-Remove-unused-define.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0008-Modify-fix-for-warning-from-ar.patch + /usr/bin/cat /builddir/build/SOURCES/0009-x64-LJ_GC64-Fix-emit_rma.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0010-PPC-Add-soft-float-support-to-interpreter.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0011-Use-https-for-freelists.org-links.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0012-x64-LJ_GC64-Fix-fallback-case-of-asm_fuseloadk64.patch + /usr/bin/cat /builddir/build/SOURCES/0013-PPC-Add-soft-float-support-to-JIT-compiler-backend.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0014-x64-LJ_GC64-Fix-type-check-only-variant-of-SLOAD.patch + /usr/bin/cat /builddir/build/SOURCES/0015-MIPS64-Hide-internal-function.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0016-DynASM-x86-Fix-potential-REL_A-overflow.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0017-LJ_GC64-Fix-ir_khash-for-non-string-GCobj.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0018-LJ_GC64-Make-ASMREF_L-references-64-bit.patch + /usr/bin/cat /builddir/build/SOURCES/0019-Fix-FOLD-rule-for-strength-reduction-of-widening.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0020-ARM64-Fix-assembly-of-HREFK.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0021-MIPS64-Fix-register-allocation-in-assembly-of-HREF.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0022-ARM64-Fix-xpcall-error-case.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0023-Fix-saved-bytecode-encapsulated-in-ELF-objects.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0024-ARM64-Fix-xpcall-error-case-really.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0025-MIPS64-Fix-xpcall-error-case.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0026-Fix-IR_BUFPUT-assembly.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0028-Fix-ARMv8-32-bit-subset-detection.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0029-Fix-LuaJIT-API-docs-for-LUAJIT_MODE_.patch + /usr/bin/cat /builddir/build/SOURCES/0030-MIPS64-Fix-soft-float-0.0-vs.-0.0-comparison.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0031-FFI-Don-t-assert-on-1LL-5.2-compatibility-mode-only.patch + /usr/bin/cat /builddir/build/SOURCES/0032-Fix-GCC-7-Wimplicit-fallthrough-warnings.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0033-Clear-stack-after-print_jit_status-in-CLI.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0034-Fix-rechaining-of-pseudo-resurrected-string-keys.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0035-DynASM-x86-Add-BMI1-and-BMI2-instructions.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0036-Give-expected-results-for-negative-non-base-10-numbe.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0037-FFI-Add-tonumber-specialization-for-failed-conversio.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0038-Bump-copyright-date-to-2018.patch + /usr/bin/cat /builddir/build/SOURCES/0039-FFI-Make-FP-to-U64-conversions-match-JIT-backend-beh.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0040-x86-x64-Check-for-jcc-when-using-xor-r-r-in-emit_loa.patch + /usr/bin/cat /builddir/build/SOURCES/0041-PPC-NetBSD-Fix-endianess-check.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0042-DynASM-x86-Add-FMA3-instructions.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0043-x86-Disassemble-FMA3-instructions.patch + /usr/bin/cat /builddir/build/SOURCES/0044-From-Lua-5.3-assert-accepts-any-type-of-error-object.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0045-Windows-Add-UWP-support-part-1.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0046-ARM64-Fix-write-barrier-in-BC_USETS.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0047-ARM64-Fix-exit-stub-patching.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0048-DynASM-Fix-warning.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0049-DynASM-x86-Fix-vroundps-vroundpd-encoding.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0050-Fix-memory-probing-allocator-to-check-for-valid-end-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0051-MIPS-MIPS64-Fix-TSETR-barrier-again.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0052-Actually-implement-maxirconst-trace-limit.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0053-Better-detection-of-MinGW-build.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0054-Fix-overflow-of-snapshot-map-offset.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0055-DynASM-PPC-Fix-shadowed-variable.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0056-DynASM-MIPS-Fix-shadowed-variable.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0057-Fix-MinGW-build.patch + /usr/bin/cat /builddir/build/SOURCES/0058-Fix-os.date-for-wider-libc-strftime-compatibility.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0059-Improve-luaL_addlstring.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0060-Fix-arm64-register-allocation-issue-for-XLOAD.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0061-Fix-arm64-register-allocation-issue-for-XLOAD.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0062-Remove-redundant-emit_check_ofs.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0063-aarch64-Use-the-xzr-register-whenever-possible.patch + /usr/bin/cat /builddir/build/SOURCES/0064-Merge-in-LuaJIT-test-cleanup-into-the-main-repo.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0065-Add-support-for-FNMADD-and-FNMSUB.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0066-Fix-os.date-for-timezone-change-awareness.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0067-Revert-FFI-Make-FP-to-U64-conversions-match-JIT-back.patch + /usr/bin/cat /builddir/build/SOURCES/0068-bench-Fix-build-warnings.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0069-Guard-against-undefined-behaviour-when-casting-from-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0070-Fix-build-erro-with-fnmsub-fusing.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0071-aarch64-better-float-to-unsigned-int-conversion.patch + /usr/bin/cat /builddir/build/SOURCES/0072-Better-behaviour-for-float-to-uint32_t-conversions.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/luajit-s390x.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/arm-Fix-up-condition-codes-for-conditional-arithmeti.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bugfix-fixed-a-segfault-when-unsinking-64-bit-pointers.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/remove-setrlimit-on-freebsd.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/test-check-for-package_searchers-only-in-compat5_2.patch + /usr/bin/cat /builddir/build/SOURCES/patch-for-ppc64-support.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/luajit-openresty-features.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/0080-basically-support-for-LoongArch-architecture.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + sed -i -e '/-DLUAJIT_ENABLE_LUA52COMPAT/s/^#//' src/Makefile + sed -i -e '/install -m/s/-m/-p -m/' Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bVkRwJ + umask 022 + cd /builddir/build/BUILD + cd LuaJIT-2.1.0-beta3 + make amalg Q= E=@: PREFIX=/usr TARGET_STRIP=: 'CFLAGS=-O2 -g' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' MULTILIB=lib64 -j4 Building LuaJIT 2.1.0-beta3 make -C src amalg make[1]: Entering directory '/builddir/build/BUILD/LuaJIT-2.1.0-beta3/src' +--------------------------------------------------------------------------+ | WARNING: Compiling the amalgamation needs a lot of virtual memory | | (around 300 MB with GCC 4.x)! If you don't have enough physical memory | | your machine will start swapping to disk and the compile will not finish | | within a reasonable amount of time. | | So either compile on a bigger machine or use the non-amalgamated build. | +--------------------------------------------------------------------------+ make all "LJCORE_O=ljamalg.o" make[2]: Entering directory '/builddir/build/BUILD/LuaJIT-2.1.0-beta3/src' gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -I. -DLJ_ARCH_ENDIAN=LUAJIT_LE -DLUAJIT_TARGET=LUAJIT_ARCH_loongarch64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/minilua.o host/minilua.c gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -I. -DLJ_ARCH_ENDIAN=LUAJIT_LE -DLUAJIT_TARGET=LUAJIT_ARCH_loongarch64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_asm.o host/buildvm_asm.c gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -I. -DLJ_ARCH_ENDIAN=LUAJIT_LE -DLUAJIT_TARGET=LUAJIT_ARCH_loongarch64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_lib.o host/buildvm_lib.c gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -I. -DLJ_ARCH_ENDIAN=LUAJIT_LE -DLUAJIT_TARGET=LUAJIT_ARCH_loongarch64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_peobj.o host/buildvm_peobj.c gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -I. -DLJ_ARCH_ENDIAN=LUAJIT_LE -DLUAJIT_TARGET=LUAJIT_ARCH_loongarch64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_fold.o host/buildvm_fold.c gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE -DLUA_ROOT=\"/usr\" -DLUA_MULTILIB=\"lib64\" -fno-stack-protector -c -o luajit.o luajit.c gcc -g -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o host/minilua host/minilua.o -lm host/minilua ../dynasm/dynasm.lua -D ENDIAN_LE -D P64 -D JIT -D FFI -D DUALNUM -D FPU -D HFABI -D VER= -o host/buildvm_arch.h vm_loongarch64.dasc gcc -g -O2 -fomit-frame-pointer -Wall -DLUAJIT_ENABLE_LUA52COMPAT -O2 -g -I. -DLJ_ARCH_ENDIAN=LUAJIT_LE -DLUAJIT_TARGET=LUAJIT_ARCH_loongarch64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm.o host/buildvm.c In file included from host/buildvm.c:44: ./../dynasm/dasm_loongarch64.h: In function 'dasm_init': ./../dynasm/dasm_loongarch64.h:82:41: error: expected ')' before '(' token #define DASM_PSZ(ms) (sizeof(dasm_State)(ms-1)*sizeof(dasm_Section)) ~ ^ ./../dynasm/dasm_proto.h:31:33: note: in definition of macro 'DASM_M_GROW' size_t _sz = (sz), _need = (need); \ ^~~~ ./../dynasm/dasm_loongarch64.h:92:53: note: in expansion of macro 'DASM_PSZ' DASM_M_GROW(Dst, struct dasm_State, Dst_REF, psz, DASM_PSZ(maxsection)); ^~~~~~~~ In file included from host/buildvm.c:71: ./../dynasm/dasm_loongarch64.h:101:31: warning: statement with no effect [-Wunused-value] for (i = 0; i < maxsection; i) { ^ ./../dynasm/dasm_loongarch64.h: In function 'dasm_free': ./../dynasm/dasm_loongarch64.h:114:34: warning: statement with no effect [-Wunused-value] for (i = 0; i < D->maxsection; i) ^ In file included from host/buildvm.c:44: ./../dynasm/dasm_loongarch64.h: In function 'dasm_setupglobal': ./../dynasm/dasm_loongarch64.h:127:50: error: invalid suffix "maxgl" on integer constant DASM_M_GROW(Dst, int, D->lglabels, D->lgsize, (10maxgl)*sizeof(int)); ^~~~~~~ ./../dynasm/dasm_proto.h:31:33: note: in definition of macro 'DASM_M_GROW' size_t _sz = (sz), _need = (need); \ ^~~~ In file included from host/buildvm.c:71: ./../dynasm/dasm_loongarch64.h: In function 'dasm_growpc': ./../dynasm/dasm_loongarch64.h:136:49: error: expected ')' before 'osz' memset((void *)(((unsigned char *)D->pclabels)osz), 0, D->pcsize-osz); ~ ^~~ ) ./../dynasm/dasm_loongarch64.h: In function 'dasm_setup': ./../dynasm/dasm_loongarch64.h:149:34: warning: statement with no effect [-Wunused-value] for (i = 0; i < D->maxsection; i) { ^ ./../dynasm/dasm_loongarch64.h: In function 'dasm_put': ./../dynasm/dasm_loongarch64.h:183:35: error: expected ',' or ';' before 'start' dasm_ActList p = D->actionlist start; ^~~~~ In file included from host/buildvm.c:44: ./../dynasm/dasm_loongarch64.h:190:19: error: expected ')' before numeric constant sec->bsize 2*DASM_MAXSECPOS*sizeof(int)); ^ ./../dynasm/dasm_proto.h:31:33: note: in definition of macro 'DASM_M_GROW' size_t _sz = (sz), _need = (need); \ ^~~~ ./../dynasm/dasm_proto.h:31:32: note: to match this '(' size_t _sz = (sz), _need = (need); \ ^ ./../dynasm/dasm_loongarch64.h:189:5: note: in expansion of macro 'DASM_M_GROW' DASM_M_GROW(Dst, int, sec->buf, sec->bsize, ^~~~~~~~~~~ In file included from host/buildvm.c:71: ./../dynasm/dasm_loongarch64.h:192:47: warning: implicit declaration of function 'DASM_MAXSECPOSDASM_POS2BIAS'; did you mean 'DASM_MAXSECPOS'? [-Wimplicit-function-declaration] sec->epos = (int)sec->bsize/sizeof(int) - DASM_MAXSECPOSDASM_POS2BIAS(pos); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ DASM_MAXSECPOS ./../dynasm/dasm_loongarch64.h:211:22: warning: statement with no effect [-Wunused-value] case DASM_ESC: p; ofs = 4; break; ^ ./../dynasm/dasm_loongarch64.h:215:41: error: expected ';' before 'n' n = (ins & 2047) - 10; pl = D->lglabels n; ^ ~ ; ./../dynasm/dasm_loongarch64.h:218:5: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] pl = 10; n = *pl; ^ ./../dynasm/dasm_loongarch64.h:222:18: error: expected ';' before 'n' pl = D->pclabels n; CKPL(pc, PC); ^ ~ ; ./../dynasm/dasm_loongarch64.h:232:2: warning: statement with no effect [-Wunused-value] pos; ^~~ ./../dynasm/dasm_loongarch64.h:235:7: error: called object is not a function or function pointer pl = D->lglabels (ins & 2047) - 10; CKPL(lg, LG); goto putlabel; ^ ./../dynasm/dasm_loongarch64.h:237:18: error: expected ';' before 'n' pl = D->pclabels n; CKPL(pc, PC); ^ ~ ; ./../dynasm/dasm_loongarch64.h:240:41: error: called object is not a function or function pointer while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = pos; ^ ./../dynasm/dasm_loongarch64.h:50:31: note: in definition of macro 'DASM_POS2PTR' #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf (pos)) ^ ./../dynasm/dasm_loongarch64.h:252:9: error: called object 'n' is not a function or function pointer CK(((n (1<<(((ins>>5)&31)-1)))>>((ins>>5)&31)) == 0, RANGE_I); ^ ./../dynasm/dasm_loongarch64.h:158:14: note: in definition of macro 'CK' do { if (!(x)) { \ ^ ./../dynasm/dasm_loongarch64.h:205:16: note: declared here int *pl, n = action >= DASM_REL_PC ? va_arg(ap, int) : 0; ^ ./../dynasm/dasm_loongarch64.h: In function 'dasm_link': ./../dynasm/dasm_loongarch64.h:284:46: warning: statement with no effect [-Wunused-value] for (pc = 0; pc*sizeof(int) < D->pcsize; pc) ^~ ./../dynasm/dasm_loongarch64.h:291:49: warning: statement with no effect [-Wunused-value] for (idx = 10; idx*sizeof(int) < D->lgsize; idx) { ^~~ ./../dynasm/dasm_loongarch64.h:294:46: error: called object is not a function or function pointer while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = -idx; } ^ ./../dynasm/dasm_loongarch64.h:50:31: note: in definition of macro 'DASM_POS2PTR' #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf (pos)) ^ ./../dynasm/dasm_loongarch64.h:299:44: warning: statement with no effect [-Wunused-value] for (secnum = 0; secnum < D->maxsection; secnum) { ^~~~~~ ./../dynasm/dasm_loongarch64.h:300:38: error: expected ',' or ';' before 'secnum' dasm_Section *sec = D->sections secnum; ^~~~~~ ./../dynasm/dasm_loongarch64.h:306:39: error: expected ',' or ';' before 'b' dasm_ActList p = D->actionlist b[pos]; ^ ./../dynasm/dasm_loongarch64.h:312:17: warning: statement with no effect [-Wunused-value] case DASM_ESC: p; break; ^ ./../dynasm/dasm_loongarch64.h:314:33: error: expected ')' before 'ofs' case DASM_ALIGN: ofs -= (b[pos] ofs) & (ins & 255); break; ~ ^ ~~~ ) ./../dynasm/dasm_loongarch64.h:315:38: warning: statement with no effect [-Wunused-value] case DASM_REL_LG: case DASM_REL_PC: pos; break; ^~~ ./../dynasm/dasm_loongarch64.h:317:33: warning: statement with no effect [-Wunused-value] case DASM_IMM: case DASM_IMM2: pos; break; ^~~ ./../dynasm/dasm_loongarch64.h: In function 'dasm_encode': ./../dynasm/dasm_loongarch64.h:346:44: warning: statement with no effect [-Wunused-value] for (secnum = 0; secnum < D->maxsection; secnum) { ^~~~~~ ./../dynasm/dasm_loongarch64.h:347:38: error: expected ',' or ';' before 'secnum' dasm_Section *sec = D->sections secnum; ^~~~~~ ./../dynasm/dasm_loongarch64.h:349:28: error: expected ',' or ';' before 'sec' int *endb = sec->rbuf sec->pos; ^~~ ./../dynasm/dasm_loongarch64.h:352:39: error: invalid operands to binary * (have 'dasm_ActList' {aka 'const unsigned int *'} and 'int *') dasm_ActList p = D->actionlist *b; ~~~~~~~~~~~~~ ^ ./../dynasm/dasm_loongarch64.h:368:57: error: expected ')' before numeric constant n = (int)((ptrdiff_t)D->globals[-n] - (ptrdiff_t)cp 4); ~ ^ ~ ) ./../dynasm/dasm_loongarch64.h:374:22: error: called object is not a function or function pointer n = *DASM_POS2PTR(D, n); ^ ./../dynasm/dasm_loongarch64.h:50:31: note: in definition of macro 'DASM_POS2PTR' #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf (pos)) ^ ./../dynasm/dasm_loongarch64.h:376:15: error: expected expression before 'int' n = (n (int)(size_t)base) & 0x0fffffff; ^~~ ./../dynasm/dasm_loongarch64.h:376:11: error: called object 'n' is not a function or function pointer n = (n (int)(size_t)base) & 0x0fffffff; ^ ./../dynasm/dasm_loongarch64.h:356:6: note: declared here int n = (action >= DASM_ALIGN && action < DASM__MAX) ? *b : 0; ^ ./../dynasm/dasm_loongarch64.h:376:20: error: expected expression before 'size_t' n = (n (int)(size_t)base) & 0x0fffffff; ^~~~~~ ./../dynasm/dasm_loongarch64.h:376:27: error: expected ')' before 'base' n = (n (int)(size_t)base) & 0x0fffffff; ~ ^~~~ ) ./../dynasm/dasm_loongarch64.h:378:38: error: expected ';' before numeric constant n = n - (int)((char *)cp - base) 4; ^ ~ ; ./../dynasm/dasm_loongarch64.h:380:28: error: called object is not a function or function pointer unsigned int e = 16 ((ins >> 12) & 15); ^~ ./../dynasm/dasm_loongarch64.h:382:44: error: 'e1' undeclared (first use in this function); did you mean 'e'? ((n ((ins & 2048) ? 0 : (1<<(e1)))) >> (e2)) == 0, RANGE_REL); ^~ ./../dynasm/dasm_loongarch64.h:332:14: note: in definition of macro 'CK' do { if (!(x)) return DASM_S_##st|(p-D->actionlist-1); } while (0) ^ ./../dynasm/dasm_loongarch64.h:382:44: note: each undeclared identifier is reported only once for each function it appears in ((n ((ins & 2048) ? 0 : (1<<(e1)))) >> (e2)) == 0, RANGE_REL); ^~ ./../dynasm/dasm_loongarch64.h:332:14: note: in definition of macro 'CK' do { if (!(x)) return DASM_S_##st|(p-D->actionlist-1); } while (0) ^ ./../dynasm/dasm_loongarch64.h:382:16: error: called object 'n' is not a function or function pointer ((n ((ins & 2048) ? 0 : (1<<(e1)))) >> (e2)) == 0, RANGE_REL); ^ ./../dynasm/dasm_loongarch64.h:332:14: note: in definition of macro 'CK' do { if (!(x)) return DASM_S_##st|(p-D->actionlist-1); } while (0) ^ ./../dynasm/dasm_loongarch64.h:356:6: note: declared here int n = (action >= DASM_ALIGN && action < DASM__MAX) ? *b : 0; ^ ./../dynasm/dasm_loongarch64.h:382:55: error: 'e2' undeclared (first use in this function); did you mean 'e'? ((n ((ins & 2048) ? 0 : (1<<(e1)))) >> (e2)) == 0, RANGE_REL); ^~ ./../dynasm/dasm_loongarch64.h:332:14: note: in definition of macro 'CK' do { if (!(x)) return DASM_S_##st|(p-D->actionlist-1); } while (0) ^ ./../dynasm/dasm_loongarch64.h:380:24: warning: unused variable 'e' [-Wunused-variable] unsigned int e = 16 ((ins >> 12) & 15); ^ ./../dynasm/dasm_loongarch64.h:393:66: error: expected ')' before 'n' ins &= 2047; if (ins >= 20) D->globals[ins-10] = (void *)(base n); ~ ^ ~ ) ./../dynasm/dasm_loongarch64.h:413:11: error: expected ')' before 'D' if (base D->codesize != (char *)cp) /* Check for phase errors. */ ~ ^ ~ ) ./../dynasm/dasm_loongarch64.h: In function 'dasm_getpclabel': ./../dynasm/dasm_loongarch64.h:425:39: error: called object is not a function or function pointer if (pos < 0) return *DASM_POS2PTR(D, -pos); ^ ./../dynasm/dasm_loongarch64.h:50:31: note: in definition of macro 'DASM_POS2PTR' #define DASM_POS2PTR(D, pos) (D->sections[DASM_POS2SEC(pos)].rbuf (pos)) ^ ./../dynasm/dasm_loongarch64.h: In function 'dasm_checkstep': ./../dynasm/dasm_loongarch64.h:438:25: warning: statement with no effect [-Wunused-value] for (i = 1; i <= 9; i) { ^ In file included from host/buildvm.c:77: vm_loongarch64.dasc: In function 'build_subroutines': vm_loongarch64.dasc:1237:41: error: 'GCstr' {aka 'struct GCstr'} has no member named 'sid' | gettp TMP3, CARG2 ^ vm_loongarch64.dasc:239:47: note: in definition of macro 'Dt5' |.type TAB, GCtab ^ vm_loongarch64.dasc: In function 'build_ins': vm_loongarch64.dasc:4003:53: error: 'GCstr' {aka 'struct GCstr'} has no member named 'sid' break; ^ vm_loongarch64.dasc:239:47: note: in definition of macro 'Dt5' |.type TAB, GCtab ^ vm_loongarch64.dasc:4160:53: error: 'GCstr' {aka 'struct GCstr'} has no member named 'sid' | andi TMP0, TMP0, 1<