luapower / luajit

LuaJIT 2.1 sources, binaries and build scripts

Home Page:http://luapower.com/luajit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luajit csrc fails to build

earl opened this issue · comments

When trying to build the current luajit csrc for linux64, I get the following error in the actual build:

[snip]
gcc -fPIC  -O2 -fomit-frame-pointer -Wall  -pthread -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE  -fno-stack-protector   -c -o ljamalg_dyn.o ljamalg.c
ljamalg.c:49:27: fatal error: lj_strfmt_num.c: No such file or directory
 #include "lj_strfmt_num.c"
                           ^
compilation terminated.

I think I'm using the supported build environment as described on https://luapower.com/building:

$ lsb_release -a
...
Description:    Ubuntu 10.04 LTS
...

$ gcc -v
...
gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~10.04.1) 

$ g++ -v
...
gcc version 4.8.1 (Ubuntu 4.8.1-2ubuntu1~10.04.1) 

Here's the sequence of commands I am executing:

git clone https://github.com/capr/multigit luapower
cd luapower/
./mgit clone https://github.com/luapower/luapower-repos
./mgit clone luajit
./mgit build luajit

Full log of the failed build: https://gist.github.com/earl/e272418a62a3ea6b83435d9a4975334e

Seems that the update to LuaJIT v2.1.0-beta2 in 740ec5e accidentally forgot to add lj_strfmt_num.c (which was newly added upstream). I'll submit a fix as PR.