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

[bug]: Failed to build tdlib-rs #50

Open
vschwaberow opened this issue Aug 25, 2024 · 21 comments
Open

[bug]: Failed to build tdlib-rs #50

vschwaberow opened this issue Aug 25, 2024 · 21 comments
Labels
bug Something isn't working

Comments

@vschwaberow
Copy link

Describe the bug

When trying to build the project, I encountered a linking error with the libzstd_sys library.

Reproduction steps

  1. Installing with cargo install

...

Expected behavior

Clear installation

Logs and screenshots

Compiling nix v0.28.0
error: linking with cc failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/volker/.bun/bin:/home/volker/.pyenv/shims:/home/volker/.pyenv/bin:/home/volker/.npm-global/bin:/home/volker/.local/bin:/home/volker/.cargo/bin:/home/volker/.local/share/pnpm:/home/volker/.bun/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustccbcINJ/symbols.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.0.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.1.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.2.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.3.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.4.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.5.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.6.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.7.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.8.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.6a5ld8mylnqi209c06of4rpm6.rcgu.o" "-Wl,--as-needed" "-L" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps" "-L" "/usr/lib" "-L" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/zstd-sys-e766e45fbd117de3/out" "-L" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzip-70a1ab9a61df8edd.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libdeflate64-9e7287ff7cc5d5f4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpbkdf2-f5218fdaa2e1bfb0.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd-dc618f662fa799d8.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_safe-1da464365800e81c.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_sys-433050692f279b34.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzopfli-d8086afaa775ffa2.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsimd_adler32-45d10f7e536343a6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbumpalo-56dffca2ed5d0af5.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblockfree_object_pool-5d0608fc1c86b4c6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbzip2-530ca88a123fe22a.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbzip2_sys-10000df8286e987f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libflate2-e49e7d8881bd8039.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libminiz_oxide-0fe20c9863d90065.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libadler-5d89d3de20d10635.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtime-6f73c62bef06a411.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtime_core-ea37c4dc3666e0db.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libnum_conv-d2fccc0d08b9fa4f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libderanged-aa331a423348dc7f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpowerfmt-a5fa54505704f37c.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libthiserror-ba3adb37b2f64fdc.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblzma_rs-98fe80eb81091102.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrc-1d1449d804d8f639.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrc_catalog-c68aa1447e9a78c6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbyteorder-eb07c30cf37817c1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrc32fast-5b4e608e89591984.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libaes-43d7cfed153f216c.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcipher-a377708e032ce5e7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libinout-e30668840a00c5a3.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzeroize-b5a0d1ca039805ac.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsha1-1576e6fb1c1cf192.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcpufeatures-1b81aa84f16d401f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librand-bd40848b9524f403.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librand_chacha-44a9ecd7f026d2e6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libppv_lite86-726c96a6cd3906c7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librand_core-e59c821a0835c327.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libgetrandom-9dbacf5b26637a96.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhmac-d26ec3fd19e0a45b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libdigest-72adfd518e10b4f6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsubtle-7dfcac1fea70405f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libblock_buffer-c5cae65cef899123.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrypto_common-f61d6b9c8d736d02.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libgeneric_array-6eac79ce600eafb4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtypenum-dbc6e2b8f8de35a1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libconstant_time_eq-af6cf5e70cc6f3cb.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libreqwest-005224229cac9d77.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librustls_pemfile-c552257928cc493f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librustls_pki_types-8c286eb6e5632548.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbase64-7c1cc1ffc3b814f2.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libipnet-4eeb776538251bc0.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhyper_tls-968132b146ef32aa.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtokio_native_tls-9caf156aec01c458.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde_urlencoded-585b20a425bd6c23.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libryu-02dc1bcc81db9908.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmime-0878618f4329670f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libencoding_rs-1139a442c0c7b964.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde-0bd4d301d3734818.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libnative_tls-80e5fdcb2a1697f3.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libopenssl_probe-76f56bb01969c439.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libopenssl-1bebc97664989eb6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbitflags-56c78bbb00d1ccd4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libforeign_types-259c2221fe82f1c2.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libforeign_types_shared-c6a0cfcba5eb4daf.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcfg_if-2c934626b6b7aac7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libopenssl_sys-8a941cae9f56edbb.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhyper_util-2dea27ae5c67141e.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtower-b30538b6c70526c7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpin_project-fe948fb6cf66cd5b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtower_layer-bea574789b596df7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtower_service-e19365b17bea10db.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhyper-0bc5b132bed69d09.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libwant-b4f2c71157f67f70.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtry_lock-52d4219ac0d8b86b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsmallvec-b05eebe945daaf82.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttparse-7297546bdec31ea5.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libh2-7c144e3dede5aceb.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtracing-2e85d3124a87352a.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtracing_core-3d61a4e994fec4e1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libonce_cell-b25ce34b4f102b4b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libindexmap-a7d3acfda93abf70.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libequivalent-230b0a88c9cdf78f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhashbrown-9f615c7003429d9f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libatomic_waker-8949b8eb36c5573f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtokio_util-69bcf9b687c1232b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_channel-ffdd53aed8fe7883.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtokio-b2fc8f5eea52c3d4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsocket2-582f0bdca2df4cc4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmio-233f087ffbd6178e.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblibc-3e7d3a6fe99ecae7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttp_body_util-ddbc610284fe581f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttp_body-191d45cf1dfc1d4b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblog-23457997fa26d5b1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_util-b3cc5a73ab60d517.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmemchr-1fae0fe54dd36c05.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_io-0785995710376470.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libslab-d4b874fda5a2d749.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpin_project_lite-ad74c3b5076eee8d.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_sink-28ac5cc9c99765a7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_task-12e10e3bdd773abf.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpin_utils-3365a340a69b71a6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_core-f29d15953bf60df1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liburl-3e969ae4c9fe41fc.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libidna-a6eb18bb80b0dbfa.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libunicode_normalization-af77c3b54dad2dc7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtinyvec-b41ca960af19563d.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtinyvec_macros-8e00f7ca9170a03d.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libunicode_bidi-fab812fb4506b395.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libform_urlencoded-1ef222c53ae3277a.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpercent_encoding-4e32520190f3ef39.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttp-729448669cc64b31.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libitoa-eab92d3a1e01c56e.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbytes-930eb8b89fb48454.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfnv-da37e2839ae321d5.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtdlib_rs_gen-e26637c5fcd7dfd6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtdlib_rs_parser-fcfca5b59db2496b.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-52417a9a08ba8fb9.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1b238e97929fdc18.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3692c2663daa48a5.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5c1e2d61611c0240.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-e55c5186b9bbabcb.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7911d2fe92903c6c.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-c03510cdc48cfa52.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-7ec6f3765287c7b7.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ab3f1b788cf79cfc.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6db4226b4e34b1a6.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f5bb1a38d410fa1e.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-e585efe74c64604d.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-03f8e93b59ffc316.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-669e9182bfe197a6.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-64b53226be979181.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-26921ac7e6a44d2b.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-6703049be165ebf1.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-04bfdf6b094564ce.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6648dc218e522d87.rlib" "-Wl,-Bdynamic" "-lbz2" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
= note: /usr/bin/ld: /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_sys-433050692f279b34.rlib: error adding symbols: file format not recognized
collect2: error: ld returned 1 exit status

error: could not compile tdlib-rs (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
==> FEHLER: Ein Fehler geschah in build().
Breche ab...

Method of Installation

Cargo

tgt version

1.0.0

Operating System (including version and architecture)

EndeavourOS Linux x86_64 / EndeavourOS Linux x86_64

Terminal and Command Line Interface (CLI) (including versions)

fish 3.7.1

rustc and rustup target (including versions)

rustc 1.80.1 (3f5fd8dd4 2024-08-06) / rustup 1.27.1 (2024-05-07)

@vschwaberow vschwaberow added the bug Something isn't working label Aug 25, 2024
@FedericoBruzzone
Copy link
Owner

Thank you for reporting this error.
Have you tried rebuild yet? it could be that libzstd_sys (in the rlib extension) is corrupt as the linker can't resolve the symbols!

Let me know :D

@vschwaberow
Copy link
Author

Hello Federico.

Yes, I deleted the entired target directory, also tried new download of the release zip. Not building with same error.

@FedericoBruzzone
Copy link
Owner

Hi!

You specified that you used cargo, but are you building from source?

@vschwaberow
Copy link
Author

Hello Federico.

I am building from the source release, as I am preparing an AUR package tgt.

@FedericoBruzzone
Copy link
Owner

Wow, please let me know when tgt will be in the AUR. I'm an arch user :D

The output of this command file /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_sys-433050692f279b34.rlib indicates x86_64, right?

If yes, probably the version of zstd installed via pacman or yay is not compatible with zlib-rs, is this possibile?

@vschwaberow
Copy link
Author

Hi. Will check this and will come back later.

@FedericoBruzzone
Copy link
Owner

No pressure, let me know!

@vschwaberow
Copy link
Author

Hello Federico.

I did following:

1.) I re-installed zstd
2.) Tried installing latest source tree
3.) Tried installing from release

All fails with the same error. You asked if its x86_64. Yes, thats the case.

@FedericoBruzzone
Copy link
Owner

FedericoBruzzone commented Aug 26, 2024

It is a weird error, can you compile with --verbose flag and show me the output?

@vschwaberow
Copy link
Author

Sure. Here we go.

     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name toml_edit --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/toml_edit-0.22.14/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 '--warn=clippy::zero_sized_map_values' '--warn=clippy::wildcard_imports' '--warn=clippy::verbose_file_reads' --warn=unused_qualifications --warn=unused_macro_rules --warn=unused_lifetimes --warn=unsafe_op_in_unsafe_fn --warn=unreachable_pub '--warn=clippy::trait_duplication_in_bounds' '--warn=clippy::todo' '--warn=clippy::string_to_string' '--warn=clippy::string_lit_as_bytes' '--warn=clippy::string_add_assign' '--warn=clippy::string_add' '--warn=clippy::str_to_string' '--warn=clippy::single_match_else' '--warn=clippy::semicolon_if_nothing_returned' '--warn=clippy::self_named_module_files' '--warn=clippy::same_functions_in_if_condition' --warn=rust_2018_idioms '--warn=clippy::rest_pat_in_fully_bound_structs' '--warn=clippy::ref_option_ref' '--warn=clippy::redundant_feature_names' '--warn=clippy::rc_mutex' '--warn=clippy::ptr_as_ptr' '--warn=clippy::path_buf_push_overwrite' '--warn=clippy::negative_feature_names' '--warn=clippy::needless_for_each' '--warn=clippy::needless_continue' '--warn=clippy::mutex_integer' '--warn=clippy::mem_forget' '--warn=clippy::match_wildcard_for_single_variants' '--warn=clippy::macro_use_imports' '--warn=clippy::lossy_float_literal' '--warn=clippy::linkedlist' '--allow=clippy::let_and_return' '--warn=clippy::large_types_passed_by_value' '--warn=clippy::large_stack_arrays' '--warn=clippy::large_digit_groups' '--warn=clippy::items_after_statements' '--warn=clippy::invalid_upcast_comparisons' '--warn=clippy::infinite_loop' '--warn=clippy::inefficient_to_string' '--warn=clippy::inconsistent_struct_constructor' '--warn=clippy::imprecise_flops' '--warn=clippy::implicit_clone' '--allow=clippy::if_same_then_else' '--warn=clippy::from_iter_instead_of_collect' '--warn=clippy::fn_params_excessive_bools' '--warn=clippy::float_cmp_const' '--warn=clippy::flat_map_option' '--warn=clippy::filter_map_next' '--warn=clippy::fallible_impl_from' '--warn=clippy::explicit_into_iter_loop' '--warn=clippy::explicit_deref_methods' '--warn=clippy::expl_impl_clone_on_copy' '--warn=clippy::enum_glob_use' '--warn=clippy::empty_enum' '--warn=clippy::doc_markdown' '--warn=clippy::debug_assert_with_mut_call' '--warn=clippy::dbg_macro' '--warn=clippy::create_dir' '--allow=clippy::collapsible_else_if' '--warn=clippy::checked_conversions' '--allow=clippy::branches_sharing_code' '--allow=clippy::bool_assert_comparison' --cfg 'feature="display"' --cfg 'feature="parse"' --cfg 'feature="serde"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "display", "parse", "perf", "serde", "unbounded"))' -C metadata=9fad9af19b51e3b9 -C extra-filename=-9fad9af19b51e3b9 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern indexmap=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libindexmap-d41aa6222cb87d99.rmeta --extern serde=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde-8bec3c31172714ac.rmeta --extern serde_spanned=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde_spanned-341901a7f68e85b0.rmeta --extern toml_datetime=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtoml_datetime-3ebb002e8486c4c5.rmeta --extern winnow=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libwinnow-f8955115c985df99.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
       Fresh serde_json v1.0.119
       Fresh hyper-tls v0.6.0
   Compiling strum v0.26.3
       Fresh pbkdf2 v0.12.2
       Fresh pest_derive v2.7.10
   Compiling aes v0.8.4
       Fresh wayland-protocols-wlr v0.2.0
   Compiling bzip2 v0.4.4
       Fresh nix v0.28.0
   Compiling url v2.5.2
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name aes --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aes-0.8.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("hazmat", "zeroize"))' -C metadata=4f3eaa1e0bc8d3b0 -C extra-filename=-4f3eaa1e0bc8d3b0 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern cfg_if=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcfg_if-a6a2475d25142a0a.rmeta --extern cipher=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcipher-462def1c9ca63de5.rmeta --extern cpufeatures=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcpufeatures-338e794d7e6495bf.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name strum --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strum-0.26.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="std"' --cfg 'feature="strum_macros"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "derive", "phf", "std", "strum_macros"))' -C metadata=1eb867d6ade78122 -C extra-filename=-1eb867d6ade78122 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern strum_macros=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libstrum_macros-07452322a0bbda78.so --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
       Fresh zstd v0.13.1
   Compiling sha1 v0.10.6
   Compiling crossterm v0.27.0
   Compiling serde_urlencoded v0.7.1
   Compiling itertools v0.13.0
   Compiling zip v2.1.6
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name bzip2 --edition=2015 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bzip2-0.4.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("futures", "static", "tokio", "tokio-io"))' -C metadata=119070550d2108b2 -C extra-filename=-119070550d2108b2 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern bzip2_sys=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbzip2_sys-f4f6c6007e148ad9.rmeta --extern libc=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblibc-1463f2b822ac8408.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt -L native=/usr/lib`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name url --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="default"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("debugger_visualizer", "default", "expose_internals", "serde"))' -C metadata=2433b2eeec50fe88 -C extra-filename=-2433b2eeec50fe88 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern form_urlencoded=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libform_urlencoded-b52f1507e58b4320.rmeta --extern idna=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libidna-0a0300d2012babd4.rmeta --extern percent_encoding=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpercent_encoding-9ab682bdbd2001ec.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name sha1 --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sha1-0.10.6/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("asm", "compress", "default", "force-soft", "loongarch64_asm", "oid", "sha1-asm", "std"))' -C metadata=aac2f1fb9ca92ce8 -C extra-filename=-aac2f1fb9ca92ce8 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern cfg_if=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcfg_if-a6a2475d25142a0a.rmeta --extern cpufeatures=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcpufeatures-338e794d7e6495bf.rmeta --extern digest=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libdigest-55b1297c9bdec5c3.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name crossterm --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossterm-0.27.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="bracketed-paste"' --cfg 'feature="default"' --cfg 'feature="events"' --cfg 'feature="windows"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bracketed-paste", "default", "event-stream", "events", "filedescriptor", "serde", "use-dev-tty", "windows"))' -C metadata=1d7654a098103801 -C extra-filename=-1d7654a098103801 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern bitflags=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbitflags-428374b90c945573.rmeta --extern libc=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblibc-1463f2b822ac8408.rmeta --extern mio=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmio-348e32cde504c2e1.rmeta --extern parking_lot=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libparking_lot-25d274545b68fb14.rmeta --extern signal_hook=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsignal_hook-095fbd474ef91807.rmeta --extern signal_hook_mio=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsignal_hook_mio-b5c08a4efee9ec3f.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name serde_urlencoded --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_urlencoded-0.7.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=d7aa3a36a6d287d1 -C extra-filename=-d7aa3a36a6d287d1 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern form_urlencoded=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libform_urlencoded-b52f1507e58b4320.rmeta --extern itoa=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libitoa-673864d9bf19afe1.rmeta --extern ryu=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libryu-76afd244a5040ff3.rmeta --extern serde=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde-8bec3c31172714ac.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name itertools --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/itertools-0.13.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="use_alloc"' --cfg 'feature="use_std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "use_alloc", "use_std"))' -C metadata=b47250159154801e -C extra-filename=-b47250159154801e --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern either=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libeither-3017a765883bbc0d.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling zeroize v1.8.1
     Running `/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/zip-a8104a0cbf3efae4/build-script-build`
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name zeroize --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zeroize-1.8.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="zeroize_derive"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("aarch64", "alloc", "default", "derive", "serde", "simd", "std", "zeroize_derive"))' -C metadata=1541893327093916 -C extra-filename=-1541893327093916 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern zeroize_derive=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzeroize_derive-3bd60314f2dffdd3.so --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling lru v0.12.3
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name lru --edition=2015 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lru-0.12.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="hashbrown"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "hashbrown", "nightly"))' -C metadata=85f6bd74c1dd11ab -C extra-filename=-85f6bd74c1dd11ab --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern hashbrown=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhashbrown-b08a975c9059179a.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling derive-new v0.6.0
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name derive_new --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/derive-new-0.6.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "std"))' -C metadata=acc0f13608f73440 -C extra-filename=-acc0f13608f73440 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern proc_macro2=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libproc_macro2-9833fe1d0e64caea.rlib --extern quote=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libquote-bb707880647d172b.rlib --extern syn=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsyn-15e5b72bb9164a27.rlib --extern proc_macro --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling stability v0.2.0
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name stability --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/stability-0.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=30b43025b25d9583 -C extra-filename=-30b43025b25d9583 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern quote=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libquote-bb707880647d172b.rlib --extern syn=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsyn-15e5b72bb9164a27.rlib --extern proc_macro --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling os_pipe v1.2.0
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name os_pipe --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/os_pipe-1.2.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="io_safety"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("io_safety"))' -C metadata=7b86bb4f2eacb116 -C extra-filename=-7b86bb4f2eacb116 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern libc=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblibc-1463f2b822ac8408.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling encoding_rs v0.8.34
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name encoding_rs --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/encoding_rs-0.8.34/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="alloc"' --cfg 'feature="default"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "any_all_workaround", "default", "fast-big5-hanzi-encode", "fast-gb-hanzi-encode", "fast-hangul-encode", "fast-hanja-encode", "fast-kanji-encode", "fast-legacy-encode", "less-slow-big5-hanzi-encode", "less-slow-gb-hanzi-encode", "less-slow-kanji-encode", "serde", "simd-accel"))' -C metadata=37d24a57804ce58e -C extra-filename=-37d24a57804ce58e --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern cfg_if=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcfg_if-a6a2475d25142a0a.rmeta --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling x11rb-protocol v0.13.1
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name x11rb_protocol --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x11rb-protocol-0.13.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("all-extensions", "composite", "damage", "dbe", "default", "dpms", "dri2", "dri3", "extra-traits", "glx", "present", "randr", "record", "render", "request-parsing", "res", "resource_manager", "screensaver", "serde", "shape", "shm", "std", "sync", "xevie", "xf86dri", "xf86vidmode", "xfixes", "xinerama", "xinput", "xkb", "xprint", "xselinux", "xtest", "xv", "xvmc"))' -C metadata=cedd23753009b70b -C extra-filename=-cedd23753009b70b --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling mime v0.3.17
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name mime --edition=2015 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mime-0.3.17/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=32d4b4789fdbb403 -C extra-filename=-32d4b4789fdbb403 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling deflate64 v0.1.9
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name deflate64 --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deflate64-0.1.9/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=453c8b7cd3239ede -C extra-filename=-453c8b7cd3239ede --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling ipnet v2.9.0
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name ipnet --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ipnet-2.9.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "heapless", "json", "schemars", "ser_as_str", "serde", "std"))' -C metadata=98ca44e4c7b34d2c -C extra-filename=-98ca44e4c7b34d2c --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling clap_lex v0.7.1
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name clap_lex --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_lex-0.7.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 '--warn=clippy::zero_sized_map_values' '--warn=clippy::verbose_file_reads' --warn=unused_qualifications --warn=unused_macro_rules --warn=unused_lifetimes --warn=unsafe_op_in_unsafe_fn --warn=unreachable_pub '--warn=clippy::trait_duplication_in_bounds' '--warn=clippy::todo' '--warn=clippy::string_lit_as_bytes' '--warn=clippy::string_add_assign' '--warn=clippy::semicolon_if_nothing_returned' '--warn=clippy::self_named_module_files' '--warn=clippy::same_functions_in_if_condition' --warn=rust_2018_idioms '--warn=clippy::rest_pat_in_fully_bound_structs' '--warn=clippy::ref_option_ref' '--warn=clippy::redundant_feature_names' '--warn=clippy::rc_mutex' '--warn=clippy::ptr_as_ptr' '--warn=clippy::path_buf_push_overwrite' '--warn=clippy::negative_feature_names' '--warn=clippy::needless_for_each' '--warn=clippy::needless_continue' '--warn=clippy::mutex_integer' '--allow=clippy::multiple_bound_locations' '--warn=clippy::mem_forget' '--warn=clippy::match_wildcard_for_single_variants' '--warn=clippy::macro_use_imports' '--warn=clippy::lossy_float_literal' '--warn=clippy::linkedlist' '--allow=clippy::let_and_return' '--warn=clippy::large_types_passed_by_value' '--warn=clippy::large_stack_arrays' '--warn=clippy::large_digit_groups' '--warn=clippy::invalid_upcast_comparisons' '--warn=clippy::infinite_loop' '--warn=clippy::inefficient_to_string' '--warn=clippy::inconsistent_struct_constructor' '--warn=clippy::imprecise_flops' '--warn=clippy::implicit_clone' '--allow=clippy::if_same_then_else' '--warn=clippy::from_iter_instead_of_collect' '--warn=clippy::fn_params_excessive_bools' '--warn=clippy::float_cmp_const' '--warn=clippy::flat_map_option' '--warn=clippy::filter_map_next' '--warn=clippy::fallible_impl_from' '--warn=clippy::explicit_into_iter_loop' '--warn=clippy::explicit_deref_methods' '--warn=clippy::expl_impl_clone_on_copy' '--warn=clippy::enum_glob_use' '--warn=clippy::empty_enum' '--warn=clippy::doc_markdown' '--warn=clippy::debug_assert_with_mut_call' '--warn=clippy::dbg_macro' '--warn=clippy::create_dir' '--allow=clippy::collapsible_else_if' '--warn=clippy::checked_conversions' '--allow=clippy::branches_sharing_code' '--allow=clippy::bool_assert_comparison' '--allow=clippy::blocks_in_conditions' '--allow=clippy::assigning_clones' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=a02c3e73b8a51482 -C extra-filename=-a02c3e73b8a51482 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling constant_time_eq v0.3.0
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name constant_time_eq --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/constant_time_eq-0.3.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("count_instructions_test"))' -C metadata=e3def53324c03ed0 -C extra-filename=-e3def53324c03ed0 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling cassowary v0.3.0
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name cassowary --edition=2015 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cassowary-0.3.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=3cd19016a3b20154 -C extra-filename=-3cd19016a3b20154 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling base64 v0.21.7
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name base64 --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/base64-0.21.7/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "default", "std"))' -C metadata=53584f5078a028e5 -C extra-filename=-53584f5078a028e5 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
   Compiling sync_wrapper v1.0.1
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name sync_wrapper --edition=2018 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sync_wrapper-1.0.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("futures", "futures-core"))' -C metadata=4306a92ca5a7bf38 -C extra-filename=-4306a92ca5a7bf38 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/volker/.bun/bin:/home/volker/.pyenv/shims:/home/volker/.pyenv/bin:/home/volker/.npm-global/bin:/home/volker/.local/bin:/home/volker/.cargo/bin:/home/volker/.local/share/pnpm:/home/volker/.bun/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustctyXxbx/symbols.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.0.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.1.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.2.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.3.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.4.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.5.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.6.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.7.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.build_script_build.3a698fa22ffbd173-cgu.8.rcgu.o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9.6a5ld8mylnqi209c06of4rpm6.rcgu.o" "-Wl,--as-needed" "-L" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps" "-L" "/usr/lib" "-L" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/zstd-sys-e766e45fbd117de3/out" "-L" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzip-70a1ab9a61df8edd.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libdeflate64-9e7287ff7cc5d5f4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpbkdf2-f5218fdaa2e1bfb0.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd-dc618f662fa799d8.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_safe-1da464365800e81c.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_sys-433050692f279b34.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzopfli-d8086afaa775ffa2.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsimd_adler32-45d10f7e536343a6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbumpalo-56dffca2ed5d0af5.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblockfree_object_pool-5d0608fc1c86b4c6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbzip2-530ca88a123fe22a.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbzip2_sys-10000df8286e987f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libflate2-e49e7d8881bd8039.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libminiz_oxide-0fe20c9863d90065.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libadler-5d89d3de20d10635.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtime-6f73c62bef06a411.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtime_core-ea37c4dc3666e0db.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libnum_conv-d2fccc0d08b9fa4f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libderanged-aa331a423348dc7f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpowerfmt-a5fa54505704f37c.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libthiserror-ba3adb37b2f64fdc.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblzma_rs-98fe80eb81091102.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrc-1d1449d804d8f639.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrc_catalog-c68aa1447e9a78c6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbyteorder-eb07c30cf37817c1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrc32fast-5b4e608e89591984.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libaes-43d7cfed153f216c.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcipher-a377708e032ce5e7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libinout-e30668840a00c5a3.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzeroize-b5a0d1ca039805ac.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsha1-1576e6fb1c1cf192.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcpufeatures-1b81aa84f16d401f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librand-bd40848b9524f403.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librand_chacha-44a9ecd7f026d2e6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libppv_lite86-726c96a6cd3906c7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librand_core-e59c821a0835c327.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libgetrandom-9dbacf5b26637a96.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhmac-d26ec3fd19e0a45b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libdigest-72adfd518e10b4f6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsubtle-7dfcac1fea70405f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libblock_buffer-c5cae65cef899123.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcrypto_common-f61d6b9c8d736d02.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libgeneric_array-6eac79ce600eafb4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtypenum-dbc6e2b8f8de35a1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libconstant_time_eq-af6cf5e70cc6f3cb.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libreqwest-005224229cac9d77.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librustls_pemfile-c552257928cc493f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/librustls_pki_types-8c286eb6e5632548.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbase64-7c1cc1ffc3b814f2.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libipnet-4eeb776538251bc0.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhyper_tls-968132b146ef32aa.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtokio_native_tls-9caf156aec01c458.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde_urlencoded-585b20a425bd6c23.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libryu-02dc1bcc81db9908.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmime-0878618f4329670f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libencoding_rs-1139a442c0c7b964.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libserde-0bd4d301d3734818.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libnative_tls-80e5fdcb2a1697f3.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libopenssl_probe-76f56bb01969c439.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libopenssl-1bebc97664989eb6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbitflags-56c78bbb00d1ccd4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libforeign_types-259c2221fe82f1c2.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libforeign_types_shared-c6a0cfcba5eb4daf.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libcfg_if-2c934626b6b7aac7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libopenssl_sys-8a941cae9f56edbb.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhyper_util-2dea27ae5c67141e.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtower-b30538b6c70526c7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpin_project-fe948fb6cf66cd5b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtower_layer-bea574789b596df7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtower_service-e19365b17bea10db.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhyper-0bc5b132bed69d09.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libwant-b4f2c71157f67f70.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtry_lock-52d4219ac0d8b86b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsmallvec-b05eebe945daaf82.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttparse-7297546bdec31ea5.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libh2-7c144e3dede5aceb.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtracing-2e85d3124a87352a.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtracing_core-3d61a4e994fec4e1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libonce_cell-b25ce34b4f102b4b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libindexmap-a7d3acfda93abf70.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libequivalent-230b0a88c9cdf78f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhashbrown-9f615c7003429d9f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libatomic_waker-8949b8eb36c5573f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtokio_util-69bcf9b687c1232b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_channel-ffdd53aed8fe7883.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtokio-b2fc8f5eea52c3d4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libsocket2-582f0bdca2df4cc4.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmio-233f087ffbd6178e.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblibc-3e7d3a6fe99ecae7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttp_body_util-ddbc610284fe581f.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttp_body-191d45cf1dfc1d4b.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liblog-23457997fa26d5b1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_util-b3cc5a73ab60d517.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libmemchr-1fae0fe54dd36c05.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_io-0785995710376470.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libslab-d4b874fda5a2d749.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpin_project_lite-ad74c3b5076eee8d.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_sink-28ac5cc9c99765a7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_task-12e10e3bdd773abf.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpin_utils-3365a340a69b71a6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfutures_core-f29d15953bf60df1.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/liburl-3e969ae4c9fe41fc.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libidna-a6eb18bb80b0dbfa.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libunicode_normalization-af77c3b54dad2dc7.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtinyvec-b41ca960af19563d.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtinyvec_macros-8e00f7ca9170a03d.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libunicode_bidi-fab812fb4506b395.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libform_urlencoded-1ef222c53ae3277a.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libpercent_encoding-4e32520190f3ef39.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libhttp-729448669cc64b31.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libitoa-eab92d3a1e01c56e.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libbytes-930eb8b89fb48454.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libfnv-da37e2839ae321d5.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtdlib_rs_gen-e26637c5fcd7dfd6.rlib" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtdlib_rs_parser-fcfca5b59db2496b.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-52417a9a08ba8fb9.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1b238e97929fdc18.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3692c2663daa48a5.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5c1e2d61611c0240.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-e55c5186b9bbabcb.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7911d2fe92903c6c.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-c03510cdc48cfa52.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-7ec6f3765287c7b7.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ab3f1b788cf79cfc.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6db4226b4e34b1a6.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f5bb1a38d410fa1e.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-e585efe74c64604d.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-03f8e93b59ffc316.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-669e9182bfe197a6.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-64b53226be979181.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-26921ac7e6a44d2b.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-6703049be165ebf1.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-04bfdf6b094564ce.rlib" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6648dc218e522d87.rlib" "-Wl,-Bdynamic" "-lbz2" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9/build_script_build-4268bd60fb6c17d9" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzstd_sys-433050692f279b34.rlib: error adding symbols: file format not recognized
          collect2: error: ld returned 1 exit status
          

   Compiling strsim v0.11.1
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name strsim --edition=2015 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/strsim-0.11.1/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C linker-plugin-lto -C codegen-units=1 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=2b9eee28a2936dd0 -C extra-filename=-2b9eee28a2936dd0 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt`
error: could not compile `tdlib-rs` (build script) due to 1 previous error

Caused by:
  process didn't exit successfully: `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name build_script_build --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tdlib-rs-1.0.5/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="download-tdlib"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bots-only-api", "default", "docs", "download-tdlib", "local-tdlib", "pkg-config"))' -C metadata=4268bd60fb6c17d9 -C extra-filename=-4268bd60fb6c17d9 --out-dir /home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/tdlib-rs-4268bd60fb6c17d9 -C strip=debuginfo -L dependency=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps --extern reqwest=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libreqwest-005224229cac9d77.rlib --extern tdlib_rs_gen=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtdlib_rs_gen-e26637c5fcd7dfd6.rlib --extern tdlib_rs_parser=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libtdlib_rs_parser-fcfca5b59db2496b.rlib --extern zip=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/deps/libzip-70a1ab9a61df8edd.rlib --cap-lints allow -Cforce-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=/home/volker/Sources/AUR/tgt/src=/usr/src/debug/tgt -L native=/usr/lib -L native=/home/volker/Sources/AUR/tgt/src/tgt-1.0.0/target/release/build/zstd-sys-e766e45fbd117de3/out` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

@FedericoBruzzone
Copy link
Owner

FedericoBruzzone commented Aug 27, 2024

Ok, perfect.

Now, can you give me the output of these variables?

echo $RUSTFLAGS
echo $CFLAGS
echo $CXXFLAGS

And, do you have installed the base-devel?

sudo pacman -S base-devel

@vschwaberow
Copy link
Author

Hello Federico.

I have base-devel installed

The envs are unset before building, so they are set up by cargo.

But anyhow here the installed build tools:

❯ gcc --version                                                                                                                        ─╯
gcc (GCC) 14.2.1 20240805
Copyright (C) 2024 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.
❯ clang   -v                                                                                                                           ─╯
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.1
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
❯ rustc -V                                                                                                                             ─╯
rustc 1.80.1 (3f5fd8dd4 2024-08-06)

@FedericoBruzzone
Copy link
Owner

It's a strange error, have you tried other solutions?

@vschwaberow
Copy link
Author

1.) Re-installing lib
2.) Using actual commit status, using tar.gz release
3.) Updating Rust toolchain
4.) and a dozends of other tricks I don't remember anylonger.

Would be interesting if other Arch Linux users can build it. Will try on a VM

@FedericoBruzzone
Copy link
Owner

I am an arch user, and I haven't had any problems. Could it be some outdated dependencies of endeavour?

@vschwaberow
Copy link
Author

Can't confirm. Any specific I can look for?

@FedericoBruzzone
Copy link
Owner

I don't know, but another thing...

Can you try to compile the tdlib-rs from source?

@vschwaberow
Copy link
Author

That works

     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name serde_json --edition=2021 /home/volker/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.128/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "arbitrary_precision", "default", "float_roundtrip", "indexmap", "preserve_order", "raw_value", "std", "unbounded_depth"))' -C metadata=aa85478ffb499dd7 -C extra-filename=-aa85478ffb499dd7 --out-dir /home/volker/Sources/tdlib-rs/target/debug/deps -L dependency=/home/volker/Sources/tdlib-rs/target/debug/deps --extern itoa=/home/volker/Sources/tdlib-rs/target/debug/deps/libitoa-9509d7e57962fa54.rmeta --extern memchr=/home/volker/Sources/tdlib-rs/target/debug/deps/libmemchr-34ec89b38ca408b5.rmeta --extern ryu=/home/volker/Sources/tdlib-rs/target/debug/deps/libryu-81015048e67b40bb.rmeta --extern serde=/home/volker/Sources/tdlib-rs/target/debug/deps/libserde-d75d43a0af186cc5.rmeta --cap-lints allow --cfg 'fast_arithmetic="64"' --check-cfg 'cfg(fast_arithmetic, values("32", "64"))'`
   Compiling tdlib-rs v1.0.5 (/home/volker/Sources/tdlib-rs/tdlib-rs)
     Running `/home/volker/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name tdlib_rs --edition=2021 tdlib-rs/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=137 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("bots-only-api", "default", "docs", "download-tdlib", "local-tdlib", "pkg-config"))' -C metadata=ed818a3a91a04e46 -C extra-filename=-ed818a3a91a04e46 --out-dir /home/volker/Sources/tdlib-rs/target/debug/deps -C incremental=/home/volker/Sources/tdlib-rs/target/debug/incremental -L dependency=/home/volker/Sources/tdlib-rs/target/debug/deps --extern dirs=/home/volker/Sources/tdlib-rs/target/debug/deps/libdirs-36d1280368809bcc.rmeta --extern futures_channel=/home/volker/Sources/tdlib-rs/target/debug/deps/libfutures_channel-21fe6a54d2f0b674.rmeta --extern log=/home/volker/Sources/tdlib-rs/target/debug/deps/liblog-fab663f09b2d956f.rmeta --extern once_cell=/home/volker/Sources/tdlib-rs/target/debug/deps/libonce_cell-a181560b04e888f8.rmeta --extern serde=/home/volker/Sources/tdlib-rs/target/debug/deps/libserde-d75d43a0af186cc5.rmeta --extern serde_json=/home/volker/Sources/tdlib-rs/target/debug/deps/libserde_json-aa85478ffb499dd7.rmeta --extern serde_with=/home/volker/Sources/tdlib-rs/target/debug/deps/libserde_with-184cb04d56b76997.rmeta`
    Finished `dev` profile [unoptimized   debuginfo] target(s) in 41.65s

@FedericoBruzzone
Copy link
Owner

It is strange, the previous error said that it could not compile tdlib-rs.
I think it also depends on zlib-sys do you have any ideas about that?

@vschwaberow
Copy link
Author

Not now. But I will research further.

@FedericoBruzzone
Copy link
Owner

Let me know if you find a solution to this problem.
I will let you know any kind of relevant information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants