Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed in RAM server #44

Closed
moonming opened this issue Sep 25, 2019 · 1 comment · Fixed by #48
Closed

build failed in RAM server #44

moonming opened this issue Sep 25, 2019 · 1 comment · Fixed by #48

Comments

@moonming
Copy link

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
Copy link
Owner

xpol commented Oct 17, 2019

What‘s the CMAKE_SYSTEM_PROCESSOR value on your arm server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants