编译TiFlash6.0中遇到tiflash_proxy不通过

【 TiDB 使用环境】生产环境 or 测试环境 or POC
ubuntu18.04 arm64
【 TiDB 版本】
TiFlash release6.0 or tagv6.0
【遇到的问题】
无法编译通过,使用clang-13,卡在tiflash_proxy无法通过,看情况别的组件应该都可以成功。下面是报错信息,本人太弱着实不知道应该如何处理,求助

tiflash readme 提示 tiflash_proxy可以额外编译,但没有具体操作知识,请求了解的大佬指示一下。

root@ryc:~/TiFlash/TiFlash_03/tiflash/build# ninja tiflash -j4
[0/2] Re-checking globbed directories...
[21/48] Building tiflash proxy
FAILED: ../contrib/tiflash-proxy/target/release/libtiflash_proxy.so /root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/libtiflash_proxy.so 
cd /root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy && /usr/local/bin/cmake -E env CC=/usr/bin/clang-13 CXX=/usr/bin/clang++-13 CXXSTDLIB=c++ CMAKE=/usr/local/bin/cmake CFLAGS=-w CXXFLAGS=-w "RUSTFLAGS=-C link-arg=-fuse-ld=lld -C rpath=yes -C linker=/root/TiFlash/TiFlash_03/tiflash/build/contrib/tiflash-proxy-cmake/tiflash-linker" PROTOC=/root/TiFlash/TiFlash_03/tiflash/build/contrib/protobuf-cmake/protoc PROTOC_INCLUDE=/root/TiFlash/TiFlash_03/tiflash/contrib/protobuf/src ENGINE_LABEL_VALUE=tiflash make release
./release.sh
make[1]: Entering directory '/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy'
PROXY_ENABLE_FEATURES=" portable sse test-engines-rocksdb cloud-aws cloud-gcp cloud-azure" ./build.sh
profile is release
engine is tiflash
prometheus metric name prefix is tiflash_proxy_
+ cargo build --no-default-features --features ' portable sse test-engines-rocksdb cloud-aws cloud-gcp cloud-azure' --release
warning: unused import: `ImportExt`
 --> components/raftstore/src/store/snap/io.rs:12:57
  |
12 |     CfName, EncryptionKeyManager, Error as EngineError, ImportExt, IngestExternalFileOptions,
  |                                                         ^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default
...............省略warning
warning: `raftstore` (lib) generated 31 warnings
...............
warning: `server` (lib) generated 6 warnings
  Compiling raftstore-proxy v0.0.1 (/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/raftstore-proxy)
error: linking with `/root/TiFlash/TiFlash_03/tiflash/build/contrib/tiflash-proxy-cmake/tiflash-linker` failed: exit status: 1
 |
 = note: "/root/TiFlash/TiFlash_03/tiflash/build/contrib/tiflash-proxy-cmake/tiflash-linker" "-Wl,--version-script=/tmp/rustcXOPhtM/list" "-m64" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.2mv1jpybzoaqttqp.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.addr2line-903dbdbf76922cc5.addr2line.90a021d1-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.addr2line-a53256cbf12c5e40.addr2line.5f2c8560-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.adler-55012d18efabcdd3.adler.1785ca1b-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.adler-63c9c6ed2f71b398.adler.16b6e004-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.ahash-1ae686585ec5cf86.ahash.1bf96032-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.ahash-4e9ef75fb5788c0b.ahash.f2290c40-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.aho_corasick-6893bcd6bc7bb2cf.aho_corasick.3e00617a-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.alloc-cd90985afc868a6d.alloc.952c8f94-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.ansi_term-a48636b61572859a.ansi_term.33632a84-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.anyhow-527535661bd585de.anyhow.7d542ed8-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.api_version-832cd6dd2f18b6e0.api_version.ed31d6fa-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.arc_swap-4c95910269e93bc3.arc_swap.4bf16e85-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.arrayvec-742d6a320be5c9df.arrayvec.b3314c19-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.async_speed_limit-bc91226151645cb2.async_speed_limit.c2099a54-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.async_stream-a818dc8e0263f909.async_stream.1dda6a56-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.async_timer-a4d8b01d0149aa50.async_timer.9ed195cf-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.atomic-22018d228db95be5.atomic.8ff773b6-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.atty-caf636c6a8d86b46.atty.28f503a2-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.aws-66e4904b35e4e1f6.aws.06d88a39-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.azure-0ac1855179076bd8.azure.a904ce15-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.azure_core-d012a35b9b3648b1.azure_core.2a699f68-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.azure_identity-244f6092c044ade3.azure_identity.4bb8f751-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.azure_storage-2f7a3e216be04860.azure_storage.55341756-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.backtrace-92d80fa274ab7d36.backtrace.c975b91f-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.base64-756b85e5f226867b.base64.2db6c682-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.batch_system-6443218759a9bd34.batch_system.82e5a18f-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.bitfield-2cebd5cd4a633907.bitfield.68221f31-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.bitflags-7c44b62dd63f99e0.bitflags.4630910a-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.block_buffer-87a7216475a519b1.block_buffer.b1220a84-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.boolinator-7d24c028ffee17ce.boolinator.7a820d31-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.bstr-50b83182d460b0f4.bstr.99b20b7f-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.byteorder-03ee4e849b466dfc.byteorder.660697a8-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.bytes-6191e37fc564a807.bytes.82d24f75-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.bzip2_sys-91f505042e305c7b.bzip2_sys.b8596c18-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.c2_chacha-bede80c635b6a08d.c2_chacha.dd5dab7b-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cfg_if-9166aee941371fa5.cfg_if.2b9d1547-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cfg_if-abd13028ab109ce3.cfg_if.1221a292-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cfg_if-d2cf821aadf4ff1a.cfg_if.cd86c77f-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.chrono-5b66ee897b25471e.chrono.c4d268f5-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.chrono_tz-d62152485083b5bb.chrono_tz.8c03b8da-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.clap-b7f0569ee4054acc.clap.5000bb4b-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cloud-3c1b2def1e107329.cloud.937710ed-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.codec-0c7db30ae356cd52.codec.43659c17-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.collections-c8dc3c8f292970ce.collections.dc771db6-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.concurrency_manager-2401ab7863e8f84c.concurrency_manager.693d0661-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.coprocessor_plugin_api-09832240c40bf7e2.coprocessor_plugin_api.fed64f2c-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.core-0e3656b1fda5fd7b.core.b59bb8a7-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cpp_demangle-ecd538b7cf2082ee.cpp_demangle.3c62b617-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cpu_time-1d56f377de3da809.cpu_time.14c42488-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.cpuid_bool-09e46b4253f28db5.cpuid_bool.dc0a3459-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crc32fast-c1fc489029eaa6db.crc32fast.94cf402d-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crc64fast-2ac925297204dc58.crc64fast.7fd4a3e8-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam-8d4cd21634319017.crossbeam.94a9dffa-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_channel-b6506134f0e11d35.crossbeam_channel.39cc256a-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_deque-8e2e57ac0f4ef475.crossbeam_deque.1a570d32-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_epoch-7f17e91e02d8c547.crossbeam_epoch.0fb59076-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_epoch-c7b7e2ebb9cca520.crossbeam_epoch.15c06c03-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_queue-43d7a7f5c8ec5597.crossbeam_queue.6c133bd9-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_skiplist-8802d08db3a790df.crossbeam_skiplist.87f0f5b6-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.crossbeam_utils-08069be04084d8ae.crossbeam_utils.e8913fe7-cgu.0.rcgu.o.rcgu.o" 
。。。。。。
"/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.want-5a974752b51ad49d.want.02810586-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.xml-3771ca15b0b1f834.xml.be55e45e-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.xml-c910e163e1c7f191.xml.67012763-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.yatp-54be7ff5a9dd5623.yatp.00c22950-cgu.0.rcgu.o.rcgu.o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/raftstore_proxy.zeroize-5dee1bd2faabba6a.zeroize.50fdd580-cgu.0.rcgu.o.rcgu.o" "-Wl,--as-needed" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/libz-sys-0fa25038862d524b/out/build" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/libz-sys-0fa25038862d524b/out/lib" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/status" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/status" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/strings" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/debugging" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/debugging" "-L" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/grpcio-sys-aaca88d5b3e6af24/out/build/third_party/abseil-cpp/absl/debugging" "-L"
。。。。。。
"/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/build/ring-22c7e3a3dba84202/out" "-L" "/root/.rustup/toolchains/nightly-2022-02-14-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcXOPhtM/liblibz_sys-74e9b0fb5ee5e032.rlib" "/tmp/rustcXOPhtM/libring-b3b8cd0fd561f284.rlib" "/tmp/rustcXOPhtM/liblz4_sys-3c9f3c2d15ed5829.rlib" "/tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib" "/tmp/rustcXOPhtM/libbzip2_sys-91f505042e305c7b.rlib" "/tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib" "/tmp/rustcXOPhtM/libgrpcio_sys-121fdbff0a27e6a6.rlib" "-Wl,--start-group" "-Wl,--end-group" "/root/.rustup/toolchains/nightly-2022-02-14-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-2e57f9284f7a2443.rlib" "-Wl,-Bdynamic" "-ldl" "-lc++" "-lc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/root/.rustup/toolchains/nightly-2022-02-14-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy/target/release/deps/libraftstore_proxy.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "-Wl,-rpath,$ORIGIN/" "-Wl,-rpath,$ORIGIN/../../../../../../../../.rustup/toolchains/nightly-2022-02-14-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--enable-new-dtags" "-Wl,-z,origin" "-fuse-ld=lld"
 = note: ld.lld: error: duplicate symbol: BIO_ADDR_new
         >>> defined at b_addr.o:(BIO_ADDR_new) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_new+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_free
         >>> defined at b_addr.o:(BIO_ADDR_free) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_free+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_clear
         >>> defined at b_addr.o:(BIO_ADDR_clear) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_clear+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_make
         >>> defined at b_addr.o:(BIO_ADDR_make) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_make+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_rawmake
         >>> defined at b_addr.o:(BIO_ADDR_rawmake) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_rawmake+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_family
         >>> defined at b_addr.o:(BIO_ADDR_family) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_family+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_rawaddress
         >>> defined at b_addr.o:(BIO_ADDR_rawaddress) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_rawaddress+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
         ld.lld: error: duplicate symbol: BIO_ADDR_rawport
         >>> defined at b_addr.o:(BIO_ADDR_rawport) in archive /tmp/rustcXOPhtM/liblibrocksdb_sys-b1b6d17cb3ec5e10.rlib
         >>> defined at b_addr.c
         >>>            b_addr.o:(.text.BIO_ADDR_rawport+0x0) in archive /tmp/rustcXOPhtM/libopenssl_sys-35f6abda345a9c14.rlib
         
................

         
         ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
         clang: error: linker command failed with exit code 1 (use -v to see invocation)
         

error: could not compile `raftstore-proxy` due to previous error
make[1]: *** [Makefile:142: build] Error 101
make[1]: Leaving directory '/root/TiFlash/TiFlash_03/tiflash/contrib/tiflash-proxy'
make: *** [Makefile:158: release] Error 2
ninja: build stopped: subcommand failed.

【复现路径】做过哪些操作出现的问题
【问题现象及影响】

【附件】 相关日志及监控(https://metricstool.pingcap.com/)


若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

反复尝试,该问题都会出现。主要在编译tiflash_proxy中最后一步针对raftstore-proxy是无法成功的。报错ld.lld: error: duplicate symbol:…实在链接时应该遇到了重复文件或变量名导致,是否是raftstore-proxy设计有问题,大家有编译成功的吗

可以去 internal 社区提问 --> https://internals.tidb.io/,或 GitHub 提 issue 交流!TUG 偏向使用侧问题解答。

我在 ubuntu 22.04 里遇到了同样的问题,我的 openssl 版本是 3.0.2,我把它降到 1.1.1m 解决了这个问题。。