-
-
Save earl/e272418a62a3ea6b83435d9a4975334e to your computer and use it in GitHub Desktop.
luapower build failure of luajit csrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsb_release -a | |
No LSB modules are available. | |
Distributor ID: Ubuntu | |
Description: Ubuntu 10.04 LTS | |
Release: 10.04 | |
Codename: lucid | |
$ 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) | |
$ git clone https://github.com/capr/multigit luapower | |
Initialized empty Git repository in /tmp/luapower/.git/ | |
remote: Counting objects: 365, done. | |
remote: Total 365 (delta 0), reused 0 (delta 0), pack-reused 365 | |
Receiving objects: 100% (365/365), 75.17 KiB, done. | |
Resolving deltas: 100% (125/125), done. | |
$ cd luapower/ | |
$ ./mgit clone https://github.com/luapower/luapower-repos | |
Initialized empty Git repository in /tmp/luapower/.mgit/luapower-repos/.git/ | |
remote: Counting objects: 345, done. | |
remote: Compressing objects: 100% (106/106), done. | |
remote: Total 345 (delta 149), reused 345 (delta 149), pack-reused 0 | |
Receiving objects: 100% (345/345), 56.48 KiB, done. | |
Resolving deltas: 100% (149/149), done. | |
From https://github.com/luapower/luapower-repos | |
* [new branch] master -> origin/master | |
From https://github.com/luapower/luapower-repos | |
* [new tag] dev -> dev | |
Branch master set up to track remote branch master from origin. | |
NOTE: Adding origin for 'luapower-repos': https://github.com/luapower/luapower-repos | |
(url: https://github.com/luapower/luapower-repos) | |
$ ./mgit clone luajit | |
Initialized empty Git repository in /tmp/luapower/.mgit/luajit/.git/ | |
remote: Counting objects: 1031, done. | |
remote: Total 1031 (delta 0), reused 0 (delta 0), pack-reused 1031 | |
Receiving objects: 100% (1031/1031), 10.73 MiB | 1.92 MiB/s, done. | |
Resolving deltas: 100% (635/635), done. | |
From https://github.com/luapower/luajit | |
* [new branch] master -> origin/master | |
* [new tag] 2.1.0-beta2 -> 2.1.0-beta2 | |
From https://github.com/luapower/luajit | |
* [new tag] 2.1-jun11 -> 2.1-jun11 | |
* [new tag] 2.1-nov8 -> 2.1-nov8 | |
* [new tag] 2.1-oct29 -> 2.1-oct29 | |
Branch master set up to track remote branch master from origin. | |
$ ./mgit build luajit | |
rm -f luajit libluajit.a libluajit.so host/minilua host/buildvm lj_vm.S lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h host/buildvm_arch.h jit/vmdef.lua *.o host/*.o *.obj *.lib *.exp *.dll *.exe *.manifest *.pdb *.ilk | |
+--------------------------------------------------------------------------+ | |
| 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[1]: Entering directory `/tmp/luapower/csrc/luajit/src/src' | |
HOSTCC host/minilua.o | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/minilua.o host/minilua.c | |
HOSTLINK host/minilua | |
gcc -pthread -s -static-libgcc -Wl,-rpath,'$ORIGIN' -o host/minilua host/minilua.o -lm | |
DYNASM host/buildvm_arch.h | |
host/minilua ../dynasm/dynasm.lua -D ENDIAN_LE -D P64 -D JIT -D FFI -D FPU -D HFABI -D VER= -o host/buildvm_arch.h vm_x86.dasc | |
HOSTCC host/buildvm.o | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm.o host/buildvm.c | |
HOSTCC host/buildvm_asm.o | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_asm.o host/buildvm_asm.c | |
HOSTCC host/buildvm_peobj.o | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_peobj.o host/buildvm_peobj.c | |
HOSTCC host/buildvm_lib.o | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_lib.o host/buildvm_lib.c | |
HOSTCC host/buildvm_fold.o | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/buildvm_fold.o host/buildvm_fold.c | |
HOSTLINK host/buildvm | |
gcc -pthread -s -static-libgcc -Wl,-rpath,'$ORIGIN' -o host/buildvm host/buildvm.o host/buildvm_asm.o host/buildvm_peobj.o host/buildvm_lib.o host/buildvm_fold.o | |
BUILDVM lj_vm.S | |
host/buildvm -m elfasm -o lj_vm.S | |
ASM lj_vm.o | |
gcc -fPIC -O2 -fomit-frame-pointer -Wall -pthread -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE -fno-stack-protector -c -o lj_vm_dyn.o lj_vm.S | |
gcc -O2 -fomit-frame-pointer -Wall -pthread -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE -fno-stack-protector -c -o lj_vm.o lj_vm.S | |
BUILDVM lj_ffdef.h | |
host/buildvm -m ffdef -o lj_ffdef.h lib_base.c lib_math.c lib_bit.c lib_string.c lib_table.c lib_io.c lib_os.c lib_package.c lib_debug.c lib_jit.c lib_ffi.c | |
BUILDVM lj_bcdef.h | |
host/buildvm -m bcdef -o lj_bcdef.h lib_base.c lib_math.c lib_bit.c lib_string.c lib_table.c lib_io.c lib_os.c lib_package.c lib_debug.c lib_jit.c lib_ffi.c | |
BUILDVM lj_folddef.h | |
host/buildvm -m folddef -o lj_folddef.h lj_opt_fold.c | |
BUILDVM lj_recdef.h | |
host/buildvm -m recdef -o lj_recdef.h lib_base.c lib_math.c lib_bit.c lib_string.c lib_table.c lib_io.c lib_os.c lib_package.c lib_debug.c lib_jit.c lib_ffi.c | |
BUILDVM lj_libdef.h | |
host/buildvm -m libdef -o lj_libdef.h lib_base.c lib_math.c lib_bit.c lib_string.c lib_table.c lib_io.c lib_os.c lib_package.c lib_debug.c lib_jit.c lib_ffi.c | |
CC ljamalg.o | |
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. | |
make[1]: *** [ljamalg.o] Error 1 | |
make[1]: Leaving directory `/tmp/luapower/csrc/luajit/src/src' | |
make: *** [amalg] Error 2 | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment