Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing with error: linking with cc failed: exit status: 1 #142

Open
Marcool04 opened this issue Apr 23, 2024 · 7 comments
Open

Build failing with error: linking with cc failed: exit status: 1 #142

Marcool04 opened this issue Apr 23, 2024 · 7 comments

Comments

@Marcool04
Copy link

Hi all,
I am experiencing a similar error to this one: #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.

@reivilibre
Copy link
Contributor

Does this comment on the AUR page you linked: https://aur.archlinux.org/packages/synapse-compress-state#comment-862631 have any merit or meaning to you?

Given the problem seems jemallocator related, maybe you can disable the jemalloc feature of the crate (build with these cargo flags: --no-default-features --feature clap?)

I don't know how this would be done in the Arch package system, I'm afraid.

@Marcool04
Copy link
Author

Hi @reivilibre and thanks for your suggestions.

Unfortunately that comment is not really helpful, as most of the changes asked for by that comment have actually been implemented since (current build script here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=synapse-compress-state).

I'll give the build a try with those jemalloc flags and let you know how it goes.

@Marcool04
Copy link
Author

that is

- --no-default-features --feature clap
+ --no-default-features --features clap

right?

@Marcool04
Copy link
Author

Nope no luck I'm afraid 😞

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" "-Wl,--version-script=/tmp/rustcU9Sm3n/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcU9Sm3n/symbols.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.00.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.01.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.02.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.03.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.04.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.05.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.06.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.07.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.08.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.09.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.10.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.11.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.12.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.13.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.14.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.synapse_compress_state.436efae3e327ba57-cgu.15.rcgu.o" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/synapse_compress_state.2mwz0t3edfgymxi4.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/openssl-sys-05b9baac249c7ab2/out/openssl-build/install/lib" "-L" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/build/tikv-jemalloc-sys-a5112a993d198d70/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/liblog_panics-25d9338ee534a7ed.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpyo3_log-6af1ca26a5a8df92.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libarc_swap-467abd62eceba785.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres_openssl-07625d4c6d1e0d6f.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio_openssl-1b13919088b62124.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres-ba8692a426ad9455.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio_postgres-9feec240c3a3bc7c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libphf-f74f16b7a086c02b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libphf_shared-78aa10819b621c84.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libwhoami-c45993aac9b54b7d.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpercent_encoding-c4ae1aab35725d92.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio_util-f90283d1877b4897.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtracing-e9b9f12eb9c3634c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtracing_core-6bedf69ef6d7de93.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtokio-7faab2a86df0b3a5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsocket2-528bbf98f308edd2.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmio-1d9228bc37d085f2.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres_types-7e97f56aea5fe7fc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpostgres_protocol-5ce1f163ae3f24d1.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstringprep-015bfd86ecd9e255.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunicode_normalization-6acabd36aec16b23.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtinyvec-ff14b8a9da1abfd9.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtinyvec_macros-7d77578d0017317c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunicode_bidi-dda944d7492d7cb4.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfinl_unicode-1c9b55a0ec5621bc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsha2-24ae337362bdbd10.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcpufeatures-21b91e6d497e1766.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librand-068147f557f1d6c3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librand_chacha-4fb430f2004860e5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libppv_lite86-6aa0cfa611d6566e.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librand_core-c5f04f1463ffefe0.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libgetrandom-0f476cf2bcc027c3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libhmac-aee16c85f07ef134.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbase64-886b944d13f7241e.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmd5-bf6b067058b6c319.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libdigest-1ae7ef1a00ea7a38.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsubtle-1fb9434bbb7896b3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libblock_buffer-c1e51dbfccd783cc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrypto_common-04aa631956010134.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libgeneric_array-e0680da3104b74d8.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libtypenum-b76a5efd368c45f9.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_util-e3f7df8cc6569a64.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmemchr-e12be2642b6af274.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_io-54c24c85bcf99741.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libslab-7db2411d2cdc9666.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_channel-c1b3354a77daf63f.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpin_project_lite-9d9199d0440006c7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_sink-36f83fca2de0313e.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_task-db361e4cc381708e.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpin_utils-7bb2ddd5fbc8f657.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfutures_core-6e0e69aea2302dad.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbytes-9e9b9772418d8982.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbyteorder-6ae899a02d843f07.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libfallible_iterator-11860f135d5d0a43.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libopenssl-b534c8bb7883eace.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libbitflags-a8579b8711a8c610.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libforeign_types-5d02e6e0849f248b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libforeign_types_shared-39dea479434354eb.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libopenssl_sys-bfa981d2fb360c1a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstring_cache-bae4edd7a2883cf6.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libprecomputed_hash-0bf08108fc078433.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libphf_shared-d21afb343f9060e7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsiphasher-1ecbaa11e79d4469.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libserde-acf941864e72cfb3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libonce_cell-089eef15660e0d68.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libdebug_unreachable-9282fd6a9ded4e3c.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstate_map-2e1bd4b1b95b00d5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librayon-02ee9bbb4cdf6f60.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/librayon_core-ab26c56ff8475859.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libnum_cpus-504bbfae91905c37.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_deque-1efa0feebae4c68d.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_epoch-62fb3b563b015549.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_channel-739fa55f649ebb0b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcrossbeam_utils-34e340ab1fa6e8cf.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libeither-588334769ae4b96b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libindicatif-3b6d84af198896b3.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libportable_atomic-4d27f603dffb389b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libnumber_prefix-fcda57036ed8260a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libconsole-3aecac033decee08.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunicode_width-543880a21c02bbfd.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblazy_static-efe629d64d1e110a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libclap-c4f962a9f39006e8.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libclap_builder-004d891a31725b04.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libstrsim-47dfb388edf4c28d.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstream-8cd3a6f072cb81dc.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstyle_query-c51fab459a33077b.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcolorchoice-254efdbf1cc8c803.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstyle_parse-bf5e353d6b56ab0a.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libutf8parse-e56045ea5c1e96a7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libclap_lex-1f8a39118a24eef8.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libanstyle-6b6ea8612877c6f7.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpyo3-5c7a2ad346f1e165.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libmemoffset-8613d2074b7a50c5.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libparking_lot-9082da5e9e7c0d63.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libparking_lot_core-f435b09ab026e0ee.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libcfg_if-cb4f9863e1ed5060.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsmallvec-a82a9f7d7bece69d.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblock_api-6b4efe9ff7d1e5b0.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libscopeguard-80786c06fff30a91.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libpyo3_ffi-d4a0d2d864cfa47d.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblibc-0204236fe583e451.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libunindent-fe9bc70707997779.rlib" "/build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/liblog-af4e2ae5b33d5888.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9b82c2917e0c85d4.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-a8afbc4cf9b1568f.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libobject-77cc6f7c429fe363.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-19736dceaad0b4b8.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-70366cf8a4f39dc1.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-bbacfd7894296f03.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-a3439f757b34a5b2.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-b439bfdfd68e538e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-dc44f8c1a4aafb0c.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-2d257aa2a0374ef9.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-18a62298ff3d223d.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libadler-e5ae4c0fbfb81efe.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e0fc4e09ba6e0f49.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-02feaffbaf78e9be.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a8f848e0246562bb.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-1211ff2b03c68af1.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-b61ac6aa2015a5b2.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-fed87452ae4ab440.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-3ce9c50abe6de474.rlib" "-Wl,-Bdynamic" "-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/libsynapse_compress_state.so" "-Wl,--gc-sections" "-shared" "-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/libopenssl_sys-bfa981d2fb360c1a.rlib(libcrypto-lib-x86_64cpuid.o):/usr/src/debug/synapse-compress-state/rust-synapse-compress-state-0.1.4/target/release/build/openssl-sys-05b9baac249c7ab2/out/openssl-build/build/src/crypto/x86_64cpuid.s:4:(.init+0x1): undefined reference to `OPENSSL_cpuid_setup'
          /usr/bin/ld: /build/synapse-compress-state/src/rust-synapse-compress-state-0.1.4/target/release/deps/libsynapse_compress_state.so: hidden symbol `OPENSSL_cpuid_setup' isn't defined
          /usr/bin/ld: final link failed: bad value
          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)

@Marcool04
Copy link
Author

Marcool04 commented May 9, 2024

However... the error is very different.
Now we have hidden symbol 'OPENSSL_cpuid_setup' isn't defined...
Dependency problem? Openssl is in my dependency list. Maybe we need a specific version? Arch currently has openssl 3.3.0 as the default. Do we need the 1.1.x line maybe?

Edit: nope, using openssl-1.1 as a dependency doesn't change the error, still hidden symbol 'OPENSSL_cpuid_setup' isn't defined

Edit 2: this is possibly covered by https://github.com/matrix-org/rust-synapse-compress-state?tab=readme-ov-file#building-difficulties, experimenting now

@Marcool04
Copy link
Author

Marcool04 commented May 10, 2024

I can now get it to build the main binary, but for synapse_auto_compressor I get the above openssl error still. This led me to look at the differences between the two Cargo.toml files, and I noticed this commit : 4b9f2e2#diff-271be67e9908629898c11f865617e3ac79e1d31136185b66021885330e2f23ffL20 introduced the features = ["vendored"] option to openssl dependency of synapse_auto_compressor. When I remove this feature, synapse_auto_compressor compiles properly.

Note that all this does require --no-default-features --features clap otherwise I get the original error from my first post.

@nachfuellbar
Copy link

Any news on this issue?
Still get this error with 1.4 and doesn't seem like there are changes made to the code which could impact this (at least from my amateuer perspective)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants