zyong commented on issue #2025:
URL: https://github.com/apache/brpc/issues/2025#issuecomment-1455035079

   @SillyBoyenjoy 确定问题是修复了吗,今天新clone的代码,运行cmake生成文件,执行就报错
   OS:macOS Ventura 13.2.1 (22D68)
   Compiler:Clang
   brpc:1.4.0. master版本测试也不行
   protobuf:3.15.8
   cmake version 3.20.1
   
    ~/Develop/c/brpc/example/echo_c++   origin/release-1.4  cmake -B build 
&& cmake --build build
   CMake Deprecation Warning at CMakeLists.txt:18 (cmake_minimum_required):
     Compatibility with CMake < 2.8.12 will be removed from a future version of
     CMake.
   
     Update the VERSION argument <min> value or use a ...<max> suffix to tell
     CMake that the project does not need compatibility with older versions.
   
   
   -- The C compiler identification is AppleClang 12.0.5.12050022
   -- The CXX compiler identification is AppleClang 12.0.5.12050022
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Check for working C compiler: 
/Library/Developer/CommandLineTools/usr/bin/cc - skipped
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: 
/Library/Developer/CommandLineTools/usr/bin/c++ - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   -- Looking for pthread.h
   -- Looking for pthread.h - found
   -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
   -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
   -- Found Threads: TRUE
   -- Found Protobuf: /usr/local/lib/libprotobuf.dylib (found version "3.15.8")
   -- Looking for clock_gettime
   -- Looking for clock_gettime - found
   -- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.dylib (found version 
"1.1.1k")
   -- Configuring done
   -- Generating done
   -- Build files have been written to: 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/build
   [ 12%] Running cpp protocol buffer compiler on echo.proto
   [ 25%] Building CXX object CMakeFiles/echo_server.dir/server.cpp.o
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:20:9:
 warning: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap32(old_value, new_value,
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:503:9:
 note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, 
volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:34:13:
 warning: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
     } while (!OSAtomicCompareAndSwap32(old_value, new_value,
               ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:503:9:
 note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, 
volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:41:10:
 warning: 'OSAtomicAdd32' is deprecated: first deprecated in macOS 10.12 - Use 
std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead 
[-Wdeprecated-declarations]
     return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr));
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:147:9:
 note: 'OSAtomicAdd32' has been explicitly marked deprecated here
   int32_t OSAtomicAdd32( int32_t __theAmount, volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:46:10:
 warning: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS 10.12 
- Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
     return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr));
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:162:9:
 note: 'OSAtomicAdd32Barrier' has been explicitly marked deprecated here
   int32_t OSAtomicAdd32Barrier( int32_t __theAmount, volatile int32_t 
*__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:50:3:
 warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - 
Use std::atomic_thread_fence() from <atomic> instead [-Wdeprecated-declarations]
     OSMemoryBarrier();
     ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9:
 note: 'OSMemoryBarrier' has been explicitly marked deprecated here
   void    OSMemoryBarrier( void );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:58:9:
 warning: 'OSAtomicCompareAndSwap32Barrier' is deprecated: first deprecated in 
macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead 
[-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap32Barrier(old_value, new_value,
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:519:9:
 note: 'OSAtomicCompareAndSwap32Barrier' has been explicitly marked deprecated 
here
   bool    OSAtomicCompareAndSwap32Barrier( int32_t __oldValue, int32_t 
__newValue, volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:111:9:
 warning: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap64(old_value, new_value,
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:629:9:
 note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:125:13:
 warning: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
     } while (!OSAtomicCompareAndSwap64(old_value, new_value,
               ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:629:9:
 note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:132:10:
 warning: 'OSAtomicAdd64' is deprecated: first deprecated in macOS 10.12 - Use 
std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead 
[-Wdeprecated-declarations]
     return OSAtomicAdd64(increment, reinterpret_cast<volatile int64_t*>(ptr));
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:232:9:
 note: 'OSAtomicAdd64' has been explicitly marked deprecated here
   int64_t OSAtomicAdd64( int64_t __theAmount,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:137:10:
 warning: 'OSAtomicAdd64Barrier' is deprecated: first deprecated in macOS 10.12 
- Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
     return OSAtomicAdd64Barrier(increment,
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:248:9:
 note: 'OSAtomicAdd64Barrier' has been explicitly marked deprecated here
   int64_t OSAtomicAdd64Barrier( int64_t __theAmount,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/server.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:146:9:
 warning: 'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in 
macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead 
[-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap64Barrier(
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:646:9:
 note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated 
here
   bool    OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t 
__newValue,
           ^
   11 warnings generated.
   [ 37%] Building CXX object CMakeFiles/echo_server.dir/echo.pb.cc.o
   [ 50%] Linking CXX executable echo_server
   [ 50%] Built target echo_server
   [ 62%] Building CXX object CMakeFiles/echo_client.dir/client.cpp.o
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:20:9:
 warning: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap32(old_value, new_value,
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:503:9:
 note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, 
volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:34:13:
 warning: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
     } while (!OSAtomicCompareAndSwap32(old_value, new_value,
               ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:503:9:
 note: 'OSAtomicCompareAndSwap32' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap32( int32_t __oldValue, int32_t __newValue, 
volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:41:10:
 warning: 'OSAtomicAdd32' is deprecated: first deprecated in macOS 10.12 - Use 
std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead 
[-Wdeprecated-declarations]
     return OSAtomicAdd32(increment, const_cast<Atomic32*>(ptr));
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:147:9:
 note: 'OSAtomicAdd32' has been explicitly marked deprecated here
   int32_t OSAtomicAdd32( int32_t __theAmount, volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:46:10:
 warning: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS 10.12 
- Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
     return OSAtomicAdd32Barrier(increment, const_cast<Atomic32*>(ptr));
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:162:9:
 note: 'OSAtomicAdd32Barrier' has been explicitly marked deprecated here
   int32_t OSAtomicAdd32Barrier( int32_t __theAmount, volatile int32_t 
*__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:50:3:
 warning: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - 
Use std::atomic_thread_fence() from <atomic> instead [-Wdeprecated-declarations]
     OSMemoryBarrier();
     ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:750:9:
 note: 'OSMemoryBarrier' has been explicitly marked deprecated here
   void    OSMemoryBarrier( void );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:58:9:
 warning: 'OSAtomicCompareAndSwap32Barrier' is deprecated: first deprecated in 
macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead 
[-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap32Barrier(old_value, new_value,
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:519:9:
 note: 'OSAtomicCompareAndSwap32Barrier' has been explicitly marked deprecated 
here
   bool    OSAtomicCompareAndSwap32Barrier( int32_t __oldValue, int32_t 
__newValue, volatile int32_t *__theValue );
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:111:9:
 warning: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap64(old_value, new_value,
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:629:9:
 note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:125:13:
 warning: 'OSAtomicCompareAndSwap64' is deprecated: first deprecated in macOS 
10.12 - Use 
std::atomic_compare_exchange_strong_explicit(std::memory_order_relaxed) from 
<atomic> instead [-Wdeprecated-declarations]
     } while (!OSAtomicCompareAndSwap64(old_value, new_value,
               ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:629:9:
 note: 'OSAtomicCompareAndSwap64' has been explicitly marked deprecated here
   bool    OSAtomicCompareAndSwap64( int64_t __oldValue, int64_t __newValue,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:132:10:
 warning: 'OSAtomicAdd64' is deprecated: first deprecated in macOS 10.12 - Use 
std::atomic_fetch_add_explicit(std::memory_order_relaxed) from <atomic> instead 
[-Wdeprecated-declarations]
     return OSAtomicAdd64(increment, reinterpret_cast<volatile int64_t*>(ptr));
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:232:9:
 note: 'OSAtomicAdd64' has been explicitly marked deprecated here
   int64_t OSAtomicAdd64( int64_t __theAmount,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:137:10:
 warning: 'OSAtomicAdd64Barrier' is deprecated: first deprecated in macOS 10.12 
- Use std::atomic_fetch_add() from <atomic> instead [-Wdeprecated-declarations]
     return OSAtomicAdd64Barrier(increment,
            ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:248:9:
 note: 'OSAtomicAdd64Barrier' has been explicitly marked deprecated here
   int64_t OSAtomicAdd64Barrier( int64_t __theAmount,
           ^
   In file included from 
/Users/zhaoyong/Develop/c/brpc/example/echo_c++/client.cpp:21:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/logging.h:32:
   In file included from 
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops.h:147:
   
/Users/zhaoyong/Develop/c/brpc/cmake-build-debug/output/include/butil/atomicops_internals_mac.h:146:9:
 warning: 'OSAtomicCompareAndSwap64Barrier' is deprecated: first deprecated in 
macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead 
[-Wdeprecated-declarations]
       if (OSAtomicCompareAndSwap64Barrier(
           ^
   
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/libkern/OSAtomicDeprecated.h:646:9:
 note: 'OSAtomicCompareAndSwap64Barrier' has been explicitly marked deprecated 
here
   bool    OSAtomicCompareAndSwap64Barrier( int64_t __oldValue, int64_t 
__newValue,
           ^
   11 warnings generated.
   [ 75%] Building CXX object CMakeFiles/echo_client.dir/echo.pb.cc.o
   [ 87%] Linking CXX executable echo_client
   [100%] Built target echo_client
   
      ~/Develop/c/brpc/example/echo_c++   origin/release-1.4  
./build/echo_server
   [1]    89260 segmentation fault  ./build/echo_server
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to