Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #232007 > unrolled thread

[BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert 'nil' to 'unsigned short'

Started byTiezhu Yang <yangtiezhu@loongson.cn>
First post2021-02-24 04:30 +0100
Last post2021-02-24 10:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  [BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert  'nil' to 'unsigned short' Tiezhu Yang <yangtiezhu@loongson.cn> - 2021-02-24 04:30 +0100
    Re: [BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot  convert 'nil' to 'unsigned short' YunQiang Su <syq@debian.org> - 2021-02-24 10:20 +0100

#232007 — [BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert 'nil' to 'unsigned short'

FromTiezhu Yang <yangtiezhu@loongson.cn>
Date2021-02-24 04:30 +0100
Subject[BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert 'nil' to 'unsigned short'
Message-ID<BLT29-166-1@gated-at.bofh.it>
(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

[toc] | [next] | [standalone]


#232014 — Re: [BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert 'nil' to 'unsigned short'

FromYunQiang Su <syq@debian.org>
Date2021-02-24 10:20 +0100
SubjectRe: [BUG REPORT] luajit-2.1.0-beta3/jit/bcsave.lua:240: cannot convert 'nil' to 'unsigned short'
Message-ID<BLYuR-4ux-1@gated-at.bofh.it>
In reply to#232007
Ohh, this packages hasn't been update for so long.
If no objection, I will upload the current git snapshot.

Tiezhu Yang <yangtiezhu@loongson.cn> 于2021年2月24日周三 上午11:15写道:
>
> (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
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web