BiteTheDDDDt opened a new issue, #1809:
URL: https://github.com/apache/incubator-brpc/issues/1809

   **Describe the bug (描述bug)**
   用ld/lld/gold链接都是可以的,但是mold链接就会报这个错,不知道是mold的问题还是brpc的问题?
   
   **To Reproduce (复现方法)**
   ```cpp
   mold: error: duplicate symbol: 
/home/bitetheddddt/dbdev/incubator-doris/thirdparty/installed/lib64/libbrpc.a(collector.cpp.o):
 src/service/CMakeFiles/palo_be.dir/doris_main.cpp.o: guard variable for 
butil::detail::ClassNameHelper<long>::name[abi:cxx11]
   mold: error: duplicate symbol: 
/home/bitetheddddt/dbdev/incubator-doris/thirdparty/installed/lib64/libbrpc.a(acceptor.cpp.o):
 src/exec/libExec.a(data_sink.cpp.o): guard variable for 
butil::detail::ClassNameHelper<int>::name[abi:cxx11]
   mold: error: duplicate symbol: 
/home/bitetheddddt/dbdev/incubator-doris/thirdparty/installed/lib64/libbrpc.a(execution_queue.cpp.o):
 src/exec/libExec.a(data_sink.cpp.o): guard variable for 
butil::detail::ClassNameHelper<bvar::detail::AddTo<long> >::name[abi:cxx11]
   mold: error: duplicate symbol: 
/home/bitetheddddt/dbdev/incubator-doris/thirdparty/installed/lib64/libbrpc.a(collector.cpp.o):
 src/service/CMakeFiles/palo_be.dir/doris_main.cpp.o: guard variable for 
butil::detail::ClassNameHelper<bvar::detail::MaxTo<long> >::name[abi:cxx11]
   mold: error: duplicate symbol: 
/home/bitetheddddt/dbdev/incubator-doris/thirdparty/installed/lib64/libbrpc.a(acceptor.cpp.o):
 src/exec/libExec.a(data_sink.cpp.o): guard variable for 
butil::detail::ClassNameHelper<bvar::detail::AddTo<int> >::name[abi:cxx11]
   clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
   ```
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **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: [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