apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.56k stars 3.98k forks source link

cmake编译错误 #242

Closed liyuan989 closed 6 years ago

liyuan989 commented 6 years ago

代码:master分支最新版本 环境:centos 6.5

cmake ..
-- The C compiler identification is GNU 5.3.1
-- The CXX compiler identification is GNU 5.3.1
-- Check for working C compiler: /opt/rh/devtoolset-4/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-4/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-4/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-4/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found gflags: /usr/local/lib/libgflags.a
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PROTOBUF: /usr/lib64/libprotobuf.so
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/liyuan/brpc/build
[liyuan19@gh-map-routing-data02 build]$
[liyuan19@gh-map-routing-data02 build]$
[liyuan19@gh-map-routing-data02 build]$
[liyuan19@gh-map-routing-data02 build]$
[liyuan19@gh-map-routing-data02 build]$ make -j16
Scanning dependencies of target BUTIL_LIB
Scanning dependencies of target OBJ_LIB
[  0%] [  1%] [  1%] [  1%] [  2%] [  2%] [  2%] [  2%] [  3%] [  3%] [  3%] [  3%] [  4%] [  4%] [  5%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/icu/icu_utf.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/dmg_fp/g_fmt.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/modp_b64/modp_b64.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/dmg_fp/dtoa_wrapper.cc.o
Building C object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/superfasthash/superfasthash.c.o
Building C object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/dynamic_annotations/dynamic_annotations.c.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/nspr/prtime.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/symbolize/symbolize.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/murmurhash3/murmurhash3.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/symbolize/demangle.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/snappy/snappy.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/snappy/snappy-stubs-internal.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/third_party/snappy/snappy-sinksource.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/arena.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/at_exit.cc.o
[  5%] [  5%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/atomicops_internals_x86_gcc.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/base64.cc.o
[  6%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/big_endian.cc.o
[  6%] [  6%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/alias.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/cpu.cc.o
[  7%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/asan_invalid_access.cc.o
[  7%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/crash_logging.cc.o
[  7%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/debugger.cc.o
[  8%] [  8%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/debugger_posix.cc.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/default_variables.cpp.o
[  9%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/latency_recorder.cpp.o
[  9%] [  9%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/variable.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/collector.cpp.o
[ 10%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/gflag.cpp.o
[ 10%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/dump_without_crashing.cc.o
[ 10%] [ 11%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/detail/percentile.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/bvar/detail/sampler.cpp.o
[ 11%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/key.cpp.o
[ 11%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/id.cpp.o
[ 12%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/mutex.cpp.o
[ 12%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/context.cpp.o
[ 12%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/butex.cpp.o
[ 13%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/bthread.cpp.o
[ 13%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/interrupt_pthread.cpp.o
[ 13%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/stack.cpp.o
[ 14%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/proc_maps_linux.cc.o
[ 15%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/task_group.cpp.o
[ 15%] [ 15%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/condition_variable.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/stack_trace.cc.o
[ 15%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/errno.cpp.o
[ 15%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/debug/stack_trace_posix.cc.o
[ 16%] [ 16%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/environment.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file.cc.o
[ 16%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file_posix.cc.o
[ 17%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file_enumerator.cc.o
[ 17%] [ 17%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file_enumerator_posix.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file_path.cc.o
[ 18%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file_path_constants.cc.o
[ 18%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/memory_mapped_file.cc.o
[ 19%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/fd.cpp.o
[ 19%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/timer_thread.cpp.o
[ 19%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/memory_mapped_file_posix.cc.o
[ 19%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/task_control.cpp.o
[ 20%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/countdown_event.cpp.o
[ 20%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/bthread/execution_queue.cpp.o
[ 21%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/scoped_file.cc.o
[ 21%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/scoped_temp_dir.cc.o
[ 21%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/file_util.cc.o
[ 22%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/file_util_linux.cc.o
[ 22%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/file_util_posix.cc.o
[ 22%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/json2pb/json_to_pb.cpp.o
[ 23%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/json2pb/pb_to_json.cpp.o
[ 23%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/json2pb/protobuf_map.cpp.o
[ 23%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/json2pb/encode_decode.cpp.o
[ 23%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/guid.cc.o
[ 24%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/guid_posix.cc.o
[ 25%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/mcpack2pb/field_type.cpp.o
[ 25%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/hash.cc.o
[ 25%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/mcpack2pb/mcpack2pb.cpp.o
[ 25%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/lazy_instance.cc.o
[ 26%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/mcpack2pb/parser.cpp.o
[ 27%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/location.cc.o
[ 27%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/mcpack2pb/serializer.cpp.o
[ 27%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/md5.cc.o
[ 27%] [ 28%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/socket_map.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/memory/aligned_memory.cc.o
[ 28%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/memory/ref_counted.cc.o
[ 29%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/partition_channel.cpp.o
[ 29%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/http_header.cpp.o
[ 29%] [ 30%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/parallel_channel.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/esp_message.cpp.o
[ 30%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/http_method.cpp.o
[ 30%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/trackme.cpp.o
[ 30%] [ 31%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/memory/ref_counted_memory.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/memory/singleton.cc.o
[ 32%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/uri.cpp.o
[ 32%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/hotspots_service.cpp.o
[ 32%] [ 32%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/index_service.cpp.o
[ 32%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/memory/weak_ptr.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/posix/file_descriptor_shuffle.cc.o
[ 33%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/posix/global_descriptors.cc.o
[ 34%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/common.cpp.o
[ 34%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/vars_service.cpp.o
[ 34%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/rand_util.cc.o
[ 34%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/rand_util_posix.cc.o
[ 35%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/fast_rand.cpp.o
[ 35%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/sockets_service.cpp.o
[ 36%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/pprof_perl.cpp.o
[ 36%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/safe_strerror_posix.cc.o
[ 36%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/bthreads_service.cpp.o
[ 36%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/get_js_service.cpp.o
[ 36%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/sha1_portable.cc.o
[ 37%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/latin1_string_conversions.cc.o
[ 38%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/pprof_service.cpp.o
[ 38%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/nullable_string16.cc.o
[ 38%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/safe_sprintf.cc.o
[ 38%] [ 38%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/get_favicon_service.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/vlog_service.cpp.o
[ 39%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/ids_service.cpp.o
[ 40%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/string16.cc.o
[ 40%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/status_service.cpp.o
[ 40%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/string_number_conversions.cc.o
[ 40%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/string_split.cc.o
[ 40%] [ 41%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/version_service.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/string_piece.cc.o
[ 41%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/string_util.cc.o
[ 41%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/string_util_constants.cc.o
[ 42%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/stringprintf.cc.o
[ 42%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/sys_string_conversions_posix.cc.o
[ 43%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/utf_offset_string_conversions.cc.o
[ 44%] [ 44%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/jquery_min_js.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/utf_string_conversion_utils.cc.o
[ 44%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/strings/utf_string_conversions.cc.o
[ 44%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/protobufs_service.cpp.o
[ 45%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/health_service.cpp.o
[ 45%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/rpcz_service.cpp.o
[ 45%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/bad_method_service.cpp.o
[ 46%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/viz_min_js.cpp.o
[ 46%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/flot_min_js.cpp.o
[ 47%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/synchronization/cancellation_flag.cc.o
[ 47%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/synchronization/condition_variable_posix.cc.o
[ 47%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/synchronization/waitable_event_posix.cc.o
[ 47%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/sorttable_js.cpp.o
[ 48%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/non_thread_safe_impl.cc.o
[ 48%] [ 48%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/platform_thread_linux.cc.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/platform_thread_posix.cc.o
[ 49%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/simple_thread.cc.o
[ 49%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_checker_impl.cc.o
[ 50%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/list_service.cpp.o
[ 50%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_collision_warner.cc.o
[ 51%] [ 51%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_id_name_manager.cc.o
[ 51%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/dir_service.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/flags_service.cpp.o
[ 52%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/connections_service.cpp.o
[ 52%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_local_posix.cc.o
[ 52%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/builtin/threads_service.cpp.o
[ 52%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/load_balancer_with_naming.cpp.o
[ 52%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_local_storage.cc.o
[ 53%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/naming_service_thread.cpp.o
[ 53%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/usercode_backup_pool.cpp.o
[ 54%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_local_storage_posix.cc.o
[ 54%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/thread_restrictions.cc.o
[ 54%] [ 54%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/method_status.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/threading/watchdog.cc.o
[ 55%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time/clock.cc.o
[ 56%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/http_message.cpp.o
[ 56%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/ssl_helper.cpp.o
[ 56%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time/default_clock.cc.o
[ 56%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time/default_tick_clock.cc.o
[ 57%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time/tick_clock.cc.o
[ 57%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time/time.cc.o
[ 57%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/rtmp_utils.cpp.o
[ 57%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time/time_posix.cc.o
[ 58%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/tcmalloc_extension.cpp.o
[ 59%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/version.cc.o
[ 59%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/has_epollrdhup.cpp.o
[ 59%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/logging.cc.o
[ 60%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/class_name.cpp.o
[ 60%] [ 60%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/errno.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/http_parser.cpp.o
[ 60%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/find_cstr.cpp.o
[ 61%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/status.cpp.o
[ 61%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/string_printf.cpp.o
[ 62%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/details/hpack.cpp.o
[ 63%] [ 63%] [ 63%] [ 63%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/redis.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/periodic_naming_service.cpp.o
Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/thread_local.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/adaptive_connection_type.cpp.o
[ 64%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/unix_socket.cpp.o
[ 64%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/reloadable_flags.cpp.o
[ 64%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/endpoint.cpp.o
[ 64%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/fd_utility.cpp.o
[ 65%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/global.cpp.o
[ 66%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/temp_file.cpp.o
[ 66%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/files/file_watcher.cpp.o
[ 66%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/time.cpp.o
[ 67%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/zero_copy_stream_as_streambuf.cpp.o
[ 67%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/crc32c.cc.o
[ 67%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/serialized_request.cpp.o
[ 67%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/server.cpp.o
[ 68%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/protocol.cpp.o
[ 68%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/containers/case_ignored_flat_map.cpp.o
[ 68%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/channel.cpp.o
[ 68%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/retry_policy.cpp.o
[ 69%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/iobuf.cpp.o
[ 69%] Building CXX object src/CMakeFiles/BUTIL_LIB.dir/butil/popen.cpp.o
[ 70%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/server_id.cpp.o
[ 70%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/span.cpp.o
[ 70%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/dynpart_load_balancer.cpp.o
[ 71%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/consistent_hashing_load_balancer.cpp.o
[ 71%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/rtmp_protocol.cpp.o
[ 71%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/remote_file_naming_service.cpp.o
[ 72%] [ 72%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/nova_pbrpc_protocol.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/nshead_mcpack_protocol.cpp.o
[ 72%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/ubrpc2pb_protocol.cpp.o
[ 73%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/gzip_compress.cpp.o
[ 73%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/file_naming_service.cpp.o
[ 73%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/hasher.cpp.o
[ 74%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/memcache_binary_protocol.cpp.o
[ 74%] Built target BUTIL_LIB
[ 74%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/snappy_compress.cpp.o
[ 75%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/http_rpc_protocol.cpp.o
[ 75%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/redis_protocol.cpp.o
[ 75%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/list_naming_service.cpp.o
[ 76%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/redis_authenticator.cpp.o
[ 76%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/hulu_pbrpc_protocol.cpp.o
[ 76%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/baidu_naming_service.cpp.o
[ 77%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/baidu_rpc_protocol.cpp.o
[ 77%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/mongo_protocol.cpp.o
[ 77%] [ 78%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/dh.cpp.o
[ 78%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/randomized_load_balancer.cpp.o
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/locality_aware_load_balancer.cpp.o
[ 78%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/sofa_pbrpc_protocol.cpp.o
[ 79%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/streaming_rpc_protocol.cpp.o
[ 79%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/public_pbrpc_protocol.cpp.o
[ 79%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/esp_protocol.cpp.o
[ 80%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/esp_authenticator.cpp.o
[ 80%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/domain_naming_service.cpp.o
[ 80%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/couchbase_authenticator.cpp.o
/opt/liyuan/brpc/src/brpc/policy/baidu_rpc_protocol.cpp: In function ‘void brpc::policy::ProcessRpcRequest(brpc::InputMessageBase*)’:
/opt/liyuan/brpc/src/brpc/policy/baidu_rpc_protocol.cpp:361:50: error: ‘class brpc::policy::RpcMeta’ has no member named ‘release_stream_settings’
         accessor.set_remote_stream_settings(meta.release_stream_settings());
                                                  ^
[ 81%] Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/round_robin_load_balancer.cpp.o
[ 81%] make[2]: *** [src/CMakeFiles/OBJ_LIB.dir/brpc/policy/baidu_rpc_protocol.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Building CXX object src/CMakeFiles/OBJ_LIB.dir/brpc/policy/giano_authenticator.cpp.o
make[1]: *** [src/CMakeFiles/OBJ_LIB.dir/all] Error 2
make: *** [all] Error 2
liyuan989 commented 6 years ago

另外用config_rpc.sh编译也出现问题

sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64
config_brpc.sh: line 32: realpath: command not found
config_brpc.sh: line 33: realpath: command not found
config_brpc: --headers=HDRPATHS --libs=LIBPATHS must be specified
chenzhangyi commented 6 years ago
  1. 你的protoc版本是什么
  2. realpath在一些发行版中需要额外安装.
liyuan989 commented 6 years ago

@chenzhangyi

protoc --version
libprotoc 2.3.0
chenzhangyi commented 6 years ago

protobuf版本需要>=2.4

alanxzj commented 6 years ago

建议可以在cmake中加入protobuf的版本检查,对使用者更加友好。