rust-synapse-compress-state
rust-synapse-compress-state copied to clipboard
Build failing with error: linking with `cc` failed: exit status: 1
Hi all, I am experiencing a similar error to this one: https://github.com/matrix-org/rust-synapse-compress-state/issues/134 when attempting to build using the Arch User Repository package: https://aur.archlinux.org/packages/synapse-compress-state:
Compiling synapse_compress_state v0.1.0 (/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" VSLANG="1033" "cc" "-m64" "/tmp/rustcnh1GWd/symbols.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.1.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.2.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.46cjg83x30mkbdcx.rcgu.o" "-Wl,--as-needed" "-L" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps" "-L" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/build/tikv-jemalloc-sys-3bed523c74914517/out/build/lib" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libenv_logger-4b057aba9cd890c6.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtermcolor-ec56f00ba5280e32.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libis_terminal-1a74baaed0daf576.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librustix-98ef2602b6b4cbfb.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblinux_raw_sys-9012fda97d8acbc9.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libhumantime-aa9def493dcd2965.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libregex-aefce21e1716678d.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libregex_automata-633d68b4beca8d04.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libaho_corasick-af98fbad9d97b2fc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libregex_syntax-939ec0acdac628ed.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtikv_jemallocator-08167c84801079c9.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtikv_jemalloc_sys-8ad53a02cb6b6195.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsynapse_compress_state.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres_openssl-592cc11943e3a3b9.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio_openssl-ec3358be9cd30101.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres-7dd31810b0415f07.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio_postgres-6eab8a50c6b8de76.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libphf-52675a7c9252a078.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libphf_shared-bbc52a085aa19a73.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libwhoami-1a734c3641fd306c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpercent_encoding-a7c1d11e2b9eeda3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio_util-6eb3d3faae431c1b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtracing-bf95b8519f9b3063.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtracing_core-cdeb27a1e1d5c090.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio-0796e60855a96232.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsocket2-b8e18b3170ad6cab.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmio-f0f5be824b14fc5f.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres_types-70e223d96cc4658e.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres_protocol-04254a781b6107f8.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstringprep-b33ab2aca459b017.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunicode_normalization-ca1e35fd3cf502f7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtinyvec-ee63c53746fde3e9.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtinyvec_macros-33df41d3a49b9b17.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunicode_bidi-8f85897a24e43d2f.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfinl_unicode-cbd2bc5fe937e980.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsha2-07a756b1e905d7b7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcpufeatures-1c7bdf75eed2a52e.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librand-4c7a3988b893d9b5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librand_chacha-ba6f4fd1c04b5099.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libppv_lite86-9568fcd503f5ae69.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librand_core-bebdd9539cd48636.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libgetrandom-60b39147ead713d4.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libhmac-6fda4d0fe8812b8a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbase64-540097fb26f410a7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmd5-78deb513fb59d587.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libdigest-fb1692696c7ce495.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsubtle-9415476f57be7521.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libblock_buffer-0c9abfd04f1b41a6.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrypto_common-6062d87b8cefb342.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libgeneric_array-9904fa7c4301648c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtypenum-4695299ed5278fba.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_util-fe32c310f63359f7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmemchr-aed8ecd8611a3b45.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_io-d3cf66d2789c98bb.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libslab-42e357c7b2364e08.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_channel-f440a91c982305bc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpin_project_lite-e92c8932528366d0.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_sink-db63f2d7b3ea5e9f.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_task-c09da465744be92c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpin_utils-75d9ec64052ad4ea.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_core-2be0a8a627dba7ee.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbytes-cabedf0408e823d5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbyteorder-15bb87fd1192d21b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfallible_iterator-46a22b37012fc7a4.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libopenssl-cdffee90d40172f6.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbitflags-c31cf8181f98f310.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libforeign_types-bd9bf8a3960b416a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libforeign_types_shared-e8c787a9fb7a8a40.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libopenssl_sys-9274d00c08117a60.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstring_cache-48718b4cab4f4336.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libprecomputed_hash-d21dd027b76add59.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libphf_shared-38081c49534c5bb7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsiphasher-cf70bd571d104a01.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libserde-810f07fe345bd4a3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libparking_lot-9d10dcd0dcf3d342.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libparking_lot_core-2aefaa16a9df3675.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsmallvec-22b350caee77a708.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblock_api-8c60932f5b15e790.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libonce_cell-35b4af8eb0189ef5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libdebug_unreachable-633ef2fe0b5906bb.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstate_map-1857e33cbf877f3a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librayon-2393bba63eb2a2f2.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librayon_core-5633371852606aa4.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libnum_cpus-8ef2f251ffbe3455.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_deque-b573be4a0b61c831.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_epoch-2158fd935771449b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmemoffset-462fde598040a367.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libscopeguard-f521916c1746a49c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_channel-b2e573b7a1faaf62.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_utils-1c951e6457297bc2.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcfg_if-84e69f9f15e381bc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libeither-f16a2708e481fe06.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libindicatif-bf4228dff1d19cec.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libportable_atomic-f67400bb045dc23c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libnumber_prefix-63bd546499a5d590.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libconsole-698daafd06f82f66.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblibc-0614b0c037838f98.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunicode_width-605c62122f6e9aad.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblazy_static-bd9ff28597a77aea.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libclap-d0f8bcc028123a63.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libclap_builder-86d1d23d20121cfa.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstrsim-1e1f8a8bbde20e73.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstream-b4a4291294e58fee.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstyle_query-9b72d947d63e3c35.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcolorchoice-c11854d17ad7c56b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstyle_parse-264d49d7ec281fa7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libutf8parse-7c47bd654d8271d0.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libclap_lex-329429b5500ddeb3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstyle-838e8da78c75cb7b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblog-30ef6b19c7cd28a4.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-434b320583c9243e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-2bb6e80cb2931b65.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libobject-f88ed0ddcb9655b2.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5d123efd8ce975c4.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-eb7917304bae0773.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-485ecf22f295bd66.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-03befa562f06203c.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-cbf3fe64ade8a4dd.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d6f316f58d86f2e7.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-eab04b16c48e8d17.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-475adb5ad370cedd.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libadler-0befc8acc36b7b34.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-8a1cb817e9c15512.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-5608eee63b1e6326.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-c438dc4fba216746.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4a1a859cfb6d4f23.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-5aa7eee7031c9fcc.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0ab56e5300936d4a.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-54db803ece53f837.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
= note: /usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o: in function `core::ptr::drop_in_place<alloc::boxed::Box<regex_automata::meta::regex::Cache>>':
/usr/src/debug/rust/rustc-1.77.2-src/library/core/src/ptr/mod.rs:507:(.text._ZN4core3ptr186drop_in_place$LT$regex_automata..util..pool..inner..CacheLine$LT$std..sync..mutex..Mutex$LT$alloc..vec..Vec$LT$alloc..boxed..Box$LT$regex_automata..meta..regex..Cache$GT$$GT$$GT$$GT$$GT$17h9bcb920493bddc04E.llvm.7961152788251562971+0x3e): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o: in function `<tikv_jemallocator::Jemalloc as core::alloc::global::GlobalAlloc>::dealloc':
/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN4core3ptr186drop_in_place$LT$regex_automata..util..pool..inner..CacheLine$LT$std..sync..mutex..Mutex$LT$alloc..vec..Vec$LT$alloc..boxed..Box$LT$regex_automata..meta..regex..Cache$GT$$GT$$GT$$GT$$GT$17h9bcb920493bddc04E.llvm.7961152788251562971+0xc2): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN4core3ptr186drop_in_place$LT$regex_automata..util..pool..inner..CacheLine$LT$std..sync..mutex..Mutex$LT$alloc..vec..Vec$LT$alloc..boxed..Box$LT$regex_automata..meta..regex..Cache$GT$$GT$$GT$$GT$$GT$17h9bcb920493bddc04E.llvm.7961152788251562971+0xf6): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN4core3ptr186drop_in_place$LT$regex_automata..util..pool..inner..CacheLine$LT$std..sync..mutex..Mutex$LT$alloc..vec..Vec$LT$alloc..boxed..Box$LT$regex_automata..meta..regex..Cache$GT$$GT$$GT$$GT$$GT$17h9bcb920493bddc04E.llvm.7961152788251562971+0x16e): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN4core3ptr361drop_in_place$LT$regex_automata..util..pool..Pool$LT$regex_automata..meta..regex..Cache$C$alloc..boxed..Box$LT$dyn$u20$core..ops..function..Fn$LT$$LP$$RP$$GT$$u2b$Output$u20$$u3d$$u20$regex_automata..meta..regex..Cache$u2b$core..marker..Send$u2b$core..panic..unwind_safe..UnwindSafe$u2b$core..marker..Sync$u2b$core..panic..unwind_safe..RefUnwindSafe$GT$$GT$$GT$17h8397fb194548fb22E+0x3b): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o:/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129: more undefined references to `_rjem_sdallocx' follow
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o: in function `<tikv_jemallocator::Jemalloc as core::alloc::global::GlobalAlloc>::alloc':
/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:107:(.text.__rust_alloc+0x1c): undefined reference to `_rjem_mallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:105:(.text.__rust_alloc+0x23): undefined reference to `_rjem_malloc'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o: in function `<tikv_jemallocator::Jemalloc as core::alloc::global::GlobalAlloc>::dealloc':
/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text.__rust_dealloc+0x24): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o: in function `<tikv_jemallocator::Jemalloc as core::alloc::global::GlobalAlloc>::realloc':
/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:140:(.text.__rust_realloc+0x2b): undefined reference to `_rjem_rallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:138:(.text.__rust_realloc+0x38): undefined reference to `_rjem_realloc'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.0.rcgu.o: in function `<tikv_jemallocator::Jemalloc as core::alloc::global::GlobalAlloc>::alloc_zeroed':
/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:119:(.text.__rust_alloc_zeroed+0x1f): undefined reference to `_rjem_mallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:117:(.text.__rust_alloc_zeroed+0x2e): undefined reference to `_rjem_calloc'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.1.rcgu.o: in function `<tikv_jemallocator::Jemalloc as core::alloc::global::GlobalAlloc>::dealloc':
/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN10env_logger7Builder8from_env17h1a44bcf096edfdacE+0xb2): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN10env_logger7Builder8from_env17h1a44bcf096edfdacE+0x102): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN10env_logger7Builder8from_env17h1a44bcf096edfdacE+0x132): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN10env_logger7Builder8from_env17h1a44bcf096edfdacE+0x167): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129:(.text._ZN10env_logger7Builder8from_env17h1a44bcf096edfdacE+0x197): undefined reference to `_rjem_sdallocx'
/usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state-78e90038368d9885.synapse_compress_state.1e04118a3796bbd6-cgu.1.rcgu.o:/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemallocator-0.5.4/src/lib.rs:129: more undefined references to `_rjem_sdallocx' follow
collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
Any help in trying to figure this out will be much appreciated.