BiteTheDDDDt commented on issue #1809:
URL: 
https://github.com/apache/incubator-brpc/issues/1809#issuecomment-1254881089

   从clang14升级到clang15,又遇到了类似的问题
   ```cpp
   ld.lld: error: duplicate symbol: guard variable for 
butil::detail::ClassNameHelper<long>::name[abi:cxx11]
   >>> defined at doris_main.cpp
   >>>            src/service/CMakeFiles/doris_be.dir/doris_main.cpp.o:(guard 
variable for butil::detail::ClassNameHelper<long>::name[abi:cxx11])
   >>> defined at 
key.cpp.o:(.bss._ZGVN5butil6detail15ClassNameHelperIlE4nameB5cxx11E+0x0) in 
archive /mnt/disk1/pxl/doris/thirdparty/installed//lib64/libbrpc.a
   
   ld.lld: error: duplicate symbol: guard variable for 
butil::detail::ClassNameHelper<bvar::detail::MaxTo<long>>::name[abi:cxx11]
   >>> defined at doris_main.cpp
   >>>            src/service/CMakeFiles/doris_be.dir/doris_main.cpp.o:(guard 
variable for 
butil::detail::ClassNameHelper<bvar::detail::MaxTo<long>>::name[abi:cxx11])
   >>> defined at 
key.cpp.o:(.bss._ZGVN5butil6detail15ClassNameHelperIN4bvar6detail5MaxToIlEEE4nameB5cxx11E+0x0)
 in archive /mnt/disk1/pxl/doris/thirdparty/installed//lib64/libbrpc.a
   
   ld.lld: error: duplicate symbol: guard variable for 
butil::detail::ClassNameHelper<bvar::detail::AddTo<long>>::name[abi:cxx11]
   >>> defined at rpc_fn_call.cpp
   >>>            rpc_fn_call.cpp.o:(guard variable for 
butil::detail::ClassNameHelper<bvar::detail::AddTo<long>>::name[abi:cxx11]) in 
archive src/exprs/libExprs.a
   >>> defined at 
task_control.cpp.o:(.bss._ZGVN5butil6detail15ClassNameHelperIN4bvar6detail5AddToIlEEE4nameB5cxx11E+0x0)
 in archive /mnt/disk1/pxl/doris/thirdparty/installed//lib64/libbrpc.a
   
   ld.lld: error: duplicate symbol: guard variable for 
butil::detail::ClassNameHelper<int>::name[abi:cxx11]
   >>> defined at rpc_fn_call.cpp
   >>>            rpc_fn_call.cpp.o:(guard variable for 
butil::detail::ClassNameHelper<int>::name[abi:cxx11]) in archive 
src/exprs/libExprs.a
   >>> defined at 
index_service.cpp.o:(.bss._ZGVN5butil6detail15ClassNameHelperIiE4nameB5cxx11E+0x0)
 in archive /mnt/disk1/pxl/doris/thirdparty/installed//lib64/libbrpc.a
   
   ld.lld: error: duplicate symbol: guard variable for 
butil::detail::ClassNameHelper<bvar::detail::AddTo<int>>::name[abi:cxx11]
   >>> defined at rpc_fn_call.cpp
   >>>            rpc_fn_call.cpp.o:(guard variable for 
butil::detail::ClassNameHelper<bvar::detail::AddTo<int>>::name[abi:cxx11]) in 
archive src/exprs/libExprs.a
   >>> defined at 
index_service.cpp.o:(.bss._ZGVN5butil6detail15ClassNameHelperIN4bvar6detail5AddToIiEEE4nameB5cxx11E+0x0)
 in archive /mnt/disk1/pxl/doris/thirdparty/installed//lib64/libbrpc.a
   clang-15: error: linker command failed with exit code 1
   ```


-- 
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