xpol/lua-rapidjson

build failed in RAM server

moonming opened this issue · 1 comments

OS: CentOS 7.6 64bit with ARM
cmake3 version 3.14.6

luarocks install rapidjson
Installing https://luarocks.org/rapidjson-0.6.1-1.src.rock...
Using https://luarocks.org/rapidjson-0.6.1-1.src.rock... switching to 'build' mode
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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
-- LUA_RAPIDJSON_VERSION: 0.6.1
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_rapidjson-0.6.1-1-1330/lua-rapidjson/build.luarocks
Scanning dependencies of target lua-rapidjson
[ 20%] Building CXX object CMakeFiles/lua-rapidjson.dir/src/Document.cpp.o
/tmp/luarocks_rapidjson-0.6.1-1-1330/lua-rapidjson/src/Document.cpp:1:0: 错误:unknown value ‘native’ for -march
 #include <cstdio>
 ^
gmake[2]: *** [CMakeFiles/lua-rapidjson.dir/src/Document.cpp.o] 错误 1
gmake[1]: *** [CMakeFiles/lua-rapidjson.dir/all] 错误 2
gmake: *** [all] 错误 2

Error: Build error: Failed building.

@xpol do you know how to fix it? thx.

xpol commented

What‘s the CMAKE_SYSTEM_PROCESSOR value on your arm server?