Skip to content

Instantly share code, notes, and snippets.

@hnakamur
Created August 31, 2012 17:59
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 hnakamur/3556576 to your computer and use it in GitHub Desktop.
Save hnakamur/3556576 to your computer and use it in GitHub Desktop.
Error: pointer size mismatch in cross-build. on OSX
sunshine5:lev hnakamur$ cmake -DUSE_SYSTEM_LUAJIT=0 -DUSE_SYSTEM_OPENSSL=0 -D USE_SYSTEM_UV=0 -DUSE_SYSTEM_YAJL=0 -DUSE_SYSTEM_ZLIB=0 -DUSE_YAJL=1 -DUSE_ZLIB=1 -DUSE_OPENSSL=1 -DUSE_HTTP_PARSER=1 ~/xming/lev
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Could NOT find HTTP_PARSER (missing: HTTP_PARSER_LIBRARIES HTTP_PARSER_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/lev
sunshine5:lev hnakamur$ CC=gcc make
Scanning dependencies of target LUAJIT
[ 1%] Creating directories for 'LUAJIT'
[ 2%] Performing download step (verify and extract) for 'LUAJIT'
-- verifying file...
file='/Users/hnakamur/xming/lev/tarballs/LuaJIT-2.0.0-beta10.tar.gz'
-- verifying file... done
-- extracting...
src='/Users/hnakamur/xming/lev/tarballs/LuaJIT-2.0.0-beta10.tar.gz'
dst='/tmp/lev/LUAJIT-prefix/src/LUAJIT'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 3%] Performing AddCmake step for 'LUAJIT'
[ 4%] No patch step for 'LUAJIT'
[ 5%] No update step for 'LUAJIT'
[ 6%] Performing configure step for 'LUAJIT'
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - 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
-- The ASM-ATT compiler identification is unknown
-- Found assembler: /usr/bin/as
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
LUAJIT_INCLUDE_DIR
LUAJIT_LIBRARIES
-- Build files have been written to: /tmp/lev/LUAJIT-prefix/src/LUAJIT
[ 7%] Performing build step for 'LUAJIT'
Scanning dependencies of target buildvm
[ 1%] Building C object CMakeFiles/buildvm.dir/src/buildvm.c.o
[ 2%] Building C object CMakeFiles/buildvm.dir/src/buildvm_asm.c.o
[ 4%] Building C object CMakeFiles/buildvm.dir/src/buildvm_fold.c.o
[ 5%] Building C object CMakeFiles/buildvm.dir/src/buildvm_lib.c.o
[ 7%] Building C object CMakeFiles/buildvm.dir/src/buildvm_peobj.c.o
Linking C executable buildvm
[ 7%] Built target buildvm
[ 8%] Generating lj_recdef.h
Error: pointer size mismatch in cross-build.
Try: make HOST_CC="gcc -m32" CROSS=... TARGET=...
make[5]: *** [lj_recdef.h] Error 1
make[4]: *** [CMakeFiles/luajit-lib.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [LUAJIT-prefix/src/LUAJIT-stamp/LUAJIT-build] Error 2
make[1]: *** [CMakeFiles/LUAJIT.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment