【产品名称】oceanbase
【产品版本】3.1.X
【问题描述】操作系统为centos7.9 aarch64
编译oceanbase,生成rpm时报错。
Run Build Command(s):/opt/rh/devtoolset-7/root/usr/bin/gmake -f Makefile cmTC_77362/fast && /opt/rh/devtoolset-7/root/usr/bin/gmake -f CMakeFiles/cmTC_77362.dir/build.make CMakeFiles/cmTC_77362.dir/build
gmake[1]: Entering directory ‘/opt/oceanbase/build_rpm/CMakeFiles/CMakeTmp’
Building CXX object CMakeFiles/cmTC_77362.dir/testCXXCompiler.cxx.o
/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/clang++ -fdebug-prefix-map=/opt/oceanbase=. --gcc-toolchain=/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools -fcolor-diagnostics -I/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools/lib/clang/11.0.1/
include -MD -MT CMakeFiles/cmTC_77362.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_77362.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_77362.dir/testCXXCompiler.cxx.o -c /opt/oceanbase/build_rpm/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_77362
/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/cmake -E cmake_link_script CMakeFiles/cmTC_77362.dir/link.txt --verbose=1
/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/clang++ -fdebug-prefix-map=/opt/oceanbase=. --gcc-toolchain=/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools -fcolor-diagnostics -I/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools/lib/clang/11.0.1/in
clude -Wl,–build-id=uuid -Wl,–compress-debug-sections=zlib -Wl,-z,noexecstack -fuse-ld=/opt/oceanbase/deps/3rd/usr/local/oceanbase/devtools/bin/ld.lld CMakeFiles/cmTC_77362.dir/testCXXCompiler.cxx.o -o cmTC_77362
ld.lld: error: --compress-debug-sections: zlib is not available
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_77362.dir/build.make cmTC_77362] Error 1
gmake[1]: Leaving directory ‘/opt/oceanbase/build_rpm/CMakeFiles/CMakeTmp’
gmake: *** [Makefile:127: cmTC_77362/fast] Error 2