Project

General

Profile

Bug #43443

ceph build: when do ARGS="-DWITH_BLKIN=ON" ./do_cmake.sh, some error will occur based on offical ceph verison.

Added by yangliang Yang about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

Based on nautils offical version, once teh BLKIN is enabled, the following error will occur.

/home/yangliang/work/code/ceph/src/msg/Message.cc: In member function ‘void Message::decode_trace(ceph::buffer::v14_2_0::list::const_iterator&, bool)’:
/home/yangliang/work/code/ceph/src/msg/Message.cc:938:54: error: no matching function for call to ‘ZTracer::Trace::init(std::string_view, const ZTracer::Endpoint* const&, blkin_trace_info*, bool)’
trace.init(get_type_name(), endpoint, &info, true);
^
In file included from /home/yangliang/work/code/ceph/src/common/zipkin_trace.h:11,
from /home/yangliang/work/code/ceph/src/msg/Message.h:29,
from /home/yangliang/work/code/ceph/src/msg/Message.cc:15:
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:179:6: note: candidate: ‘int ZTracer::Trace::init(const char*, const ZTracer::Endpoint*, const ZTracer::Trace*)’
int init(const char name, const Endpoint *ep,
^~~
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:179:6: note: candidate expects 3 arguments, 4 provided
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:190:6: note: candidate: ‘int ZTracer::Trace::init(const char
, const ZTracer::Endpoint*, const blkin_trace_info*, bool)’
int init(const char name, const Endpoint *ep,
^~~
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:190:6: note: no known conversion for argument 1 from ‘std::string_view’ {aka ‘std::basic_string_view<char>’} to ‘const char

/home/yangliang/work/code/ceph/src/msg/Message.cc:943:41: error: no matching function for call to ‘ZTracer::Trace::init(std::string_view, const ZTracer::Endpoint* const&)’
trace.init(get_type_name(), endpoint);
^
In file included from /home/yangliang/work/code/ceph/src/common/zipkin_trace.h:11,
from /home/yangliang/work/code/ceph/src/msg/Message.h:29,
from /home/yangliang/work/code/ceph/src/msg/Message.cc:15:
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:179:6: note: candidate: ‘int ZTracer::Trace::init(const char*, const ZTracer::Endpoint*, const ZTracer::Trace*)’
int init(const char name, const Endpoint *ep,
^~~
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:179:6: note: no known conversion for argument 1 from ‘std::string_view’ {aka ‘std::basic_string_view<char>’} to ‘const char

/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:190:6: note: candidate: ‘int ZTracer::Trace::init(const char*, const ZTracer::Endpoint*, const blkin_trace_info*, bool)’
int init(const char name, const Endpoint *ep,
^~~
/home/yangliang/work/code/ceph/src/blkin/blkin-lib/ztracer.hpp:190:6: note: candidate expects 4 arguments, 2 provided
make2:
[src/msg/CMakeFiles/common-msg-objs.dir/build.make:76: src/msg/CMakeFiles/common-msg-objs.dir/Message.cc.o] Error 1
make1:
[CMakeFiles/Makefile2:2083: src/msg/CMakeFiles/common-msg-objs.dir/all] Error 2
make: *
* [Makefile:141: all] Error 2

Also available in: Atom PDF