sepcity opened a new issue, #2699:
URL: https://github.com/apache/brpc/issues/2699

   **Describe the bug (描述bug)**
   when i build brpc-1.9.0 on openEuler-22.03SP3 aarch64  i got these errors
   
   `/usr/local/gcc-13.3.0/bin/g++ -c -I./src 
-I/hst/fsp_third_party/output/gflags/include/ 
-I/hst/fsp_third_party/output/leveldb/include/ 
-I/hst/fsp_third_party/output/openssl/include/ 
-I/hst/fsp_third_party/output/protobuf/include/ 
-I/hst/fsp_third_party/output/zlib/include/ -DGFLAGS_NS=google -fPIC 
src/bthread/butex.cpp -o src/bthread/butex.o
   In file included from ./src/butil/atomicops.h:34,
                    from src/bthread/butex.cpp:22:
   src/bthread/butex.cpp:128:29: error: static assertion failed: 
butex_fits_in_one_cacheline
     128 | BAIDU_CASSERT(sizeof(Butex) == BAIDU_CACHELINE_SIZE, 
butex_fits_in_one_cacheline);
   ./src/butil/macros.h:175:48: note: in definition of macro 'BAIDU_CASSERT'
     175 | #define BAIDU_CASSERT(expr, msg) static_assert(expr, #msg)
         |                                                ^~~~
   src/bthread/butex.cpp:128:29: note: the comparison reduces to '(128 == 64)'
     128 | BAIDU_CASSERT(sizeof(Butex) == BAIDU_CACHELINE_SIZE, 
butex_fits_in_one_cacheline);
   ./src/butil/macros.h:175:48: note: in definition of macro 'BAIDU_CASSERT'
     175 | #define BAIDU_CASSERT(expr, msg) static_assert(expr, #msg)
         |                                                ^~~~
   make: *** [Makefile:305: src/bthread/butex.o] Error 1`
   
   **To Reproduce (复现方法)**
   ./config_brpc.sh 
    make CXXFLAGS="-DGFLAGS_NS=google -fPIC"
   
   **Expected behavior (期望行为)**
   build succeed
   
   **Versions (各种版本)**
   OS:openEuler-22.03SP3
   Compiler:gcc-13.3
   brpc:1.9.0
   protobuf:3.2.0
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to