ceph踩坑记
编译ceph
Ubuntu20.04使用clang-13编译ceph(quincy)时,出现了找不到C++20头文件的情况
ceph/src/include/denc.h:30:10: fatal error: 'concepts' file not found
#include <concepts>
参考这里
问题解决:sudo apt install g++-10
。
编译 radosgw
编译rgw_file_marker时报错
错误信息同BUILD_ERROR.txt.
解决方法: 合入nautilus: test/ceph_test_librgw_file*: Remove duplicate names #43491这个PR。
调试相关
使用lldb 进行debug时,无法解析字符串
error: summary string parsing error
需要在CMakeLists.txt
中添加:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstandalone-debug")
vscode 编译参数记录
// 修改settings.json
{
"cmake.generator": "Unix Makefiles",
"clangd.path": "clangd-13",
"cmake.configureArgs": [
"-DWITH_MGR_DASHBOARD_FRONTEND=OFF",
"-DWITH_SYSTEMD=OFF",
"-DWITH_MANPAGE=OFF",
"-DWITH_RBD=OFF",
"-DWITH_KRBD=OFF",
"-DWITH_LEVELDB=ON",
"-DWITH_TESTS=OFF",
"-DBOOST_J=12"
]
}