(1) Background Source: luajit Version: luajit_2.1.0~beta3+dfsg-5.3_mips64el.deb Severity: important Link: https://packages.debian.org/sid/luajit
(2) Description of problem When I build bcc, there exists the following build error: [ 34%] Generating bcc.o /usr/bin/luajit: /usr/share/luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert 'nil' to 'unsigned short' [ 35%] Linking C executable bcc-lua cc: error: bcc.o: No such file or directory (3) Steps to Reproduce # According to https://packages.debian.org/source/sid/bpfcc, # BCC build dependencies: sudo apt-get install arping bison clang-format cmake dh-python \ dpkg-dev pkg-kde-tools ethtool flex inetutils-ping iperf \ libbpf-dev libclang-dev libclang-cpp-dev libedit-dev libelf-dev \ libfl-dev libzip-dev linux-libc-dev llvm-dev libluajit-5.1-dev \ luajit python3-netaddr python3-pyroute2 python3-distutils python3 # In oreder to avoid "/bin/sh: 1: python: not found" sudo apt-get install python git clone https://github.com/iovisor/bcc.git mkdir bcc/build; cd bcc/build cmake .. make (4) Additional info I just replace the following old file [1] with the latest new file [2], then the error disappeared. [1] /usr/share/luajit-2.1.0-beta3/jit/bcsave.lua [2] https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/jit/bcsave.lua It seems that this commit fixed it: https://github.com/LuaJIT/LuaJIT/commit/94d0b53004a5 (5) Question and Suggestion Could you please update the luajit package used with the latest source code? Thanks, Tiezhu