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

arm架构编译报错 #281

Open
carmenlee52 opened this issue Sep 2, 2024 · 0 comments
Open

arm架构编译报错 #281

carmenlee52 opened this issue Sep 2, 2024 · 0 comments

Comments

@carmenlee52
Copy link

          arm架构源码编译tendisplus最新版本2.7.0,改动:

(示例使用的cpu为鲲鹏,架构:aarch64架构,型号:kunpeng-920)

  1. gcc安装升级到11.3.0版本
  2. tendis/Tendis/src/tendisplus/utils/base64.cpp,44行,“static const char DecodeTable[] = {”,char改为signed char。
  3. tendis/Tendis/src/tendisplus/utils/base64.cpp,62行,“char ch;” char改为signed char。
  4. src/tendisplus/tools/CMakeLists.txt文件,将"-mno-avx-mno-avx2",改为"-march=native"。

以上内容由QQ社区群里的绿光同学测试通过,感谢绿光同学的分享~🌹

Originally posted by @takenliu in #270 (comment)
参照上面的步骤,gcc升级到11.3.0后make报错
Consolidate compiler generated dependencies of target utils_common_test
[ 86%] Building CXX object src/tendisplus/lock/mgl/CMakeFiles/mgl_test.dir/mgl_test.cpp.o
[ 86%] Linking CXX executable ../../../bin/utils_common_test
[ 86%] Linking CXX executable ../../../../bin/mgl_test
lto1: fatal error: bytecode stream in file ‘../../../lib/liblz4.a’ generated with LTO version 11.3 instead of the expected 9.3
compilation terminated.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [src/tendisplus/utils/CMakeFiles/utils_common_test.dir/build.make:110: bin/utils_common_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:3230: src/tendisplus/utils/CMakeFiles/utils_common_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 86%] Built target mgl_test
make: *** [Makefile:156: all] Error 2

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

No branches or pull requests

1 participant