Skip to content

Instantly share code, notes, and snippets.

@ptrm
Created February 12, 2019 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrm/c0cba17c9e602305f9c1e2bd7ba519db to your computer and use it in GitHub Desktop.
Save ptrm/c0cba17c9e602305f9c1e2bd7ba519db to your computer and use it in GitHub Desktop.
~/Source/koreader
$ ./kodev release kobo
v2019.02-25-ge123cc5d
WARN: Transifex client not found, no translation pulled.
make -C base
make[1]: Entering directory '/home/u0_a261/Source/koreader/base'
************ Building for MACHINE: "arm-linux-gnueabihf" **********
************ PATH: "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" **********
************ CHOST: "arm-linux-gnueabihf" **********
install -d build/arm-linux-gnueabihf/libs
install -d thirdparty/luajit/build/arm-linux-gnueabihf
cd thirdparty/luajit/build/arm-linux-gnueabihf && \
cmake -DCC="gcc" \
-DXCOMPILE:BOOL=on \
-DBASE_CFLAGS="-O2 -ffast-math -pipe -fomit-frame-pointer" -DHOST_CFLAGS="-march=native -O2 -ffast-math -pipe -fomit-frame-pointer " \
\
\
-DTARGET_SONAME=libluajit.so \
-DTARGET_CFLAGS="-O2 -ffast-math -pipe -fomit-frame-pointer -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb -mfloat-abi=hard -fno-finite-math-only -fno-stack-protector -U_FORTIFY_SOURCE -fPIC" \
-DCROSS="/usr/bin/ccache arm-linux-gnueabihf-" \
/home/u0_a261/Source/koreader/base/thirdparty/luajit && \
make
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.20.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf
make[2]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
make[3]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
make[4]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
Scanning dependencies of target luajit
make[4]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
make[4]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
[ 12%] Creating directories for 'luajit'
[ 25%] Performing download step for 'luajit'
[ 37%] No patch step for 'luajit'
[ 50%] No update step for 'luajit'
[ 62%] No configure step for 'luajit'
[ 75%] Performing build step for 'luajit'
make[5]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf/luajit-prefix/src/luajit'
Building LuaJIT 2.1.0-beta3
make[6]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf/luajit-prefix/src/luajit/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[7]: Entering directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf/luajit-prefix/src/luajit/src'
HOSTCC host/minilua.o
HOSTCC host/buildvm_asm.o
HOSTCC host/buildvm_peobj.o
HOSTCC host/buildvm_lib.o
HOSTCC host/buildvm_fold.o
CC luajit.o
HOSTLINK host/minilua
DYNASM host/buildvm_arch.h
HOSTCC host/buildvm.o
HOSTLINK host/buildvm
BUILDVM lj_vm.S
BUILDVM lj_ffdef.h
BUILDVM lj_bcdef.h
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...
BUILDVM lj_folddef.h
make[7]: *** [Makefile:651: lj_vm.S] Error 1
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...
make[7]: *** Waiting for unfinished jobs....
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...
make[7]: *** [Makefile:659: lj_ffdef.h] Error 1
make[7]: *** [Makefile:655: lj_bcdef.h] Error 1
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=...
make[7]: *** [Makefile:675: lj_folddef.h] Error 1
make[7]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf/luajit-prefix/src/luajit/src'
make[6]: *** [Makefile:606: amalg] Error 2
make[6]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf/luajit-prefix/src/luajit/src'
make[5]: *** [Makefile:159: amalg] Error 2
make[5]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf/luajit-prefix/src/luajit'
make[4]: *** [CMakeFiles/luajit.dir/build.make:111: luajit-prefix/src/luajit-stamp/luajit-build] Error 2
make[4]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
make[3]: *** [CMakeFiles/Makefile2:73: CMakeFiles/luajit.dir/all] Error 2
make[3]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
make[2]: *** [Makefile:84: all] Error 2
make[2]: Leaving directory '/home/u0_a261/Source/koreader/base/thirdparty/luajit/build/arm-linux-gnueabihf'
make[1]: *** [Makefile.third:161: build/arm-linux-gnueabihf/luajit] Error 2
make[1]: Leaving directory '/home/u0_a261/Source/koreader/base'
make: *** [Makefile:109: base/build/arm-linux-gnueabihf/luajit] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment