Open anuwrag opened 3 months ago
Hi! Thanks for reporting this error.
Have you already installed the build-essential
and stdc++-dev
?
sudo apt-get install build-essential
sudo apt-get install libstdc++-dev
Hey @FedericoBruzzone thanks for your reply! Yes, both are installed
Ok, perfect!
Can you try to update rustup and set the stable release?
rustup update
rustup default stable
Still facing similar issue:
/usr/bin/ld: /tmp/cargo-installXmigzK/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()'
/usr/bin/ld: /tmp/cargo-installXmigzK/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::__1::chrono::system_clock::now()'
/usr/bin/ld: /tmp/cargo-installXmigzK/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `__cxa_guard_release'
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)
error: could not compile `tgt` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tgt v1.0.0`, intermediate artifacts can be found at `/tmp/cargo-installXmigzK`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Ok, now please follow the following steps. We are building tgt
from source.
Use the following as new main function
fn main() -> std::io::Result<()> {
if cfg!(debug_assertions) {
tdlib_rs::build::build(None);
return Ok(());
}
empty_tgt_folder();
move_config_folder_to_home_dottgt();
let home = dirs::home_dir().unwrap().to_str().unwrap().to_owned();
let dest = format!("{}/.tgt/tdlib", home);
println!("cargo:rustc-link-lib=c++");
println!("cargo:rustc-link-lib=c++abi");
println!("cargo:rustc-link-lib=stdc++");
tdlib_rs::build::build(Some(dest));
Ok(())
}
cargo build --release --features download-tdlib
Your support will be really helpful for us! <3
I had similar issue. I needed to:
sudo apt-get install libc++-dev libc++abi-dev
Thank you very much for the information @Degot
@anuwrag , are you able to try to do that?
and by the way, without --features download-tdlib.
This is because you already have in the PATH an updated version of tdlib, don't you?
I executed these commands:
$ sudo apt-get install build-essential libc++-dev libc++abi-dev
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ wget "https://codeload.github.com/FedericoBruzzone/tgt/zip/refs/tags/v1.0.0" -O tgt-1.0.0.zip
$ unzip tgt-1.0.0.zip
$ cd tgt-1.0.0
$ cargo build --release --verbose > ../tgt_build_log_1.txt 2>&1
I think download-tdlib is default behavior ?!
$ ldd tgt
linux-vdso.so.1 (0x00007ffc6413b000)
libtdjson.so.1.8.29 => /home/user/.tgt/tdlib/lib/libtdjson.so.1.8.29 (0x000075c014200000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000075c016389000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000075c014117000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000075c013e00000)
libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x000075c015b56000)
libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x000075c013800000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000075c01636b000)
libc++.so.1 => /lib/x86_64-linux-gnu/libc++.so.1 (0x000075c014019000)
libunwind.so.1 => /lib/x86_64-linux-gnu/libunwind.so.1 (0x000075c01635d000)
libc++abi.so.1 => /lib/x86_64-linux-gnu/libc++abi.so.1 (0x000075c016321000)
/lib64/ld-linux-x86-64.so.2 (0x000075c0163c2000)
Exactly, download-tdlib is the default behavior! In fact you can see it from this location:
libtdjson.so.1.8.29 => /home/user/.tgt/tdlib/lib/libtdjson.so.1.8.29 (0x000075c014200000)
Describe the bug
I have tried installing via cargo install and cargo build, both have resulted in libtdjson missing
Reproduction steps
I am using WSL - Ubuntu 22.04 - Intel machine
cargo build --release --features download-tdlib
cargo install tgt
The errror can be seen for both. Tried to install the gcc dependencies however the process always fails building tdlib-rsExpected behavior
Tried to install dependencies to avoid the error.
Logs and screenshots
error: linking with >::basic_streambuf()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::assign(char const, unsigned long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::basic_string(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::append(char const , unsigned long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::insert(std::1::wrap_iter<char const>, char)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::__1::basic_streambuf<char, std::__1::char_traits >::xsputn(char const , long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::operator<<(double)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_istream<char, std::1::char_traits >::read(char*, long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to 1::char_traits >::~basic_ostream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::rfind(char, unsigned long) const'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std::__1::allocator >::push_back(char)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_string<char, std::1::char_traits, std::1::allocator >::assign(char const*)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::chrono::steady_clock::now()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_string<char, std::1::char_traits, std::1::allocator >::find(char, unsigned long) const'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_streambuf<char, std:: 1::char_traits >::uflow()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::~basic_ostream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to 1::random_device::random_device(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::write(char const*, long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_streambuf<char, std::1::char_traits >::setbuf(char*, long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::__1::basic_streambuf<char, std:: 1::char_traits >::imbue(std::1::locale const&)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::sync()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to 1::basic_string<char, std::1::char_traits, std::1::allocator >::append(char const*)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_string<char, std:: 1::char_traits, std::1::allocator >::resize(unsigned long, char)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `virtual thunk to std:: 1::basic_istream<char, std::1::char_traits >::~basic_istream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::locale::~locale()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::erase(unsigned long, unsigned long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to , std:: 1::allocator >::operator=(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::~basic_ostream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::locale::classic()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::__1::basic_ios<char, std::1::char_traits >::~basic_ios()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::xsgetn(char*, long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_streambuf<char, std::1::char_traits >::showmanyc()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to 1::mutex::unlock()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::~basic_istream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::__next_prime(unsigned long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `virtual thunk to std::1::basic_istream<char, std::1::char_traits >::~basic_istream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `virtual thunk to std:: 1::basic_iostream<char, std::1::char_traits >::~basic_iostream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_string<char, std::1::char_traits, std::1::allocator >::reserve(unsigned long)'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_streambuf<char, std:: 1::char_traits >::~basic_streambuf()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to >::~basic_iostream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std:: 1::basic_iostream<char, std::1::char_traits >::~basic_iostream()'
/usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
cc
failed: exit status: 1 | = note: LC_ALL="C" PATH="/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/ak/.cargo/bin:/home/ak/.local/bin:/home/ak/anaconda3/bin:/home/ak/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.4.0_x648wekyb3d8bbwe:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/java8path:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Python312/Scripts:/mnt/c/Python312:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Git/mingw64/bin:/mnt/c/Program Files/Git/usr/bin:/mnt/c/Program Files/dotnet:/mnt/c/Program Files/nodejs:/mnt/c/Program Files (x86)/Windows Kits/10/Windows Performance Toolkit:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/anura/scoop/shims:/mnt/c/Users/anura/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/anura/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/anura/AppData/Local/GitHubDesktop/bin:/mnt/c/Program Files/Git/usr/bin/file.exe:/mnt/c/Users/anura/AppData/Local/nvs:/mnt/c/Users/anura/AppData/Roaming/npm:/mnt/c/Users/anura/.dotnet/tools:/mnt/c/Users/anura/AppData/Local/Muse Hub/lib:/snap/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcPthFVv/symbols.o" "/tmp/cargo-install3oziu5/release/build/tgt-e718d6d89786ac05/build_script_build-e718d6d89786ac05.build_script_build.d8e394f6989c618d-cgu.0.rcgu.o" "/tmp/cargo-install3oziu5/release/build/tgt-e718d6d89786ac05/build_script_build-e718d6d89786ac05.8qk1czgfw2al5jvd7ttvlhqbb.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/cargo-install3oziu5/release/deps" "-L" "/tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib" "-L" "/tmp/cargo-install3oziu5/release/build/bzip2-sys-7207c8b6e95121f3/out/lib" "-L" "/tmp/cargo-install3oziu5/release/build/zstd-sys-cbe29a367d1b21d6/out" "-L" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/cargo-install3oziu5/release/deps/libtdlib_rs-fa038ef433585daa.rlib" "/tmp/cargo-install3oziu5/release/deps/libzip-717f67b7b417b60a.rlib" "/tmp/cargo-install3oziu5/release/deps/libdeflate64-9e7287ff7cc5d5f4.rlib" "/tmp/cargo-install3oziu5/release/deps/libpbkdf2-58ca53c08e551207.rlib" "/tmp/cargo-install3oziu5/release/deps/libzstd-91c13adeec965e68.rlib" "/tmp/cargo-install3oziu5/release/deps/libzstd_safe-37915ac05cac8bf1.rlib" "/tmp/cargo-install3oziu5/release/deps/libzstd_sys-5f01e81cc194c51b.rlib" "/tmp/cargo-install3oziu5/release/deps/libzopfli-d8086afaa775ffa2.rlib" "/tmp/cargo-install3oziu5/release/deps/libsimd_adler32-45d10f7e536343a6.rlib" "/tmp/cargo-install3oziu5/release/deps/libbumpalo-56dffca2ed5d0af5.rlib" "/tmp/cargo-install3oziu5/release/deps/liblockfree_object_pool-5d0608fc1c86b4c6.rlib" "/tmp/cargo-install3oziu5/release/deps/libbzip2-a021aeb094b5aa5c.rlib" "/tmp/cargo-install3oziu5/release/deps/libbzip2_sys-331f53b4a3131b64.rlib" "/tmp/cargo-install3oziu5/release/deps/libflate2-0778b8f052fb0a00.rlib" "/tmp/cargo-install3oziu5/release/deps/libminiz_oxide-57a207ad159a5cca.rlib" "/tmp/cargo-install3oziu5/release/deps/libadler2-92100f16b0f283aa.rlib" "/tmp/cargo-install3oziu5/release/deps/libtime-6f73c62bef06a411.rlib" "/tmp/cargo-install3oziu5/release/deps/libtime_core-ea37c4dc3666e0db.rlib" "/tmp/cargo-install3oziu5/release/deps/libnum_conv-d2fccc0d08b9fa4f.rlib" "/tmp/cargo-install3oziu5/release/deps/libderanged-aa331a423348dc7f.rlib" "/tmp/cargo-install3oziu5/release/deps/libpowerfmt-a5fa54505704f37c.rlib" "/tmp/cargo-install3oziu5/release/deps/libthiserror-2da5240d2cfb3d6d.rlib" "/tmp/cargo-install3oziu5/release/deps/liblzma_rs-98fe80eb81091102.rlib" "/tmp/cargo-install3oziu5/release/deps/libcrc-1d1449d804d8f639.rlib" "/tmp/cargo-install3oziu5/release/deps/libcrc_catalog-c68aa1447e9a78c6.rlib" "/tmp/cargo-install3oziu5/release/deps/libcrc32fast-5b4e608e89591984.rlib" "/tmp/cargo-install3oziu5/release/deps/libaes-8da65eadd711bb00.rlib" "/tmp/cargo-install3oziu5/release/deps/libcipher-22dfaf829fd15fbf.rlib" "/tmp/cargo-install3oziu5/release/deps/libinout-781e41b3e77f145a.rlib" "/tmp/cargo-install3oziu5/release/deps/libzeroize-1e4c6e8748650f0b.rlib" "/tmp/cargo-install3oziu5/release/deps/libsha1-5597c6acda59a7dd.rlib" "/tmp/cargo-install3oziu5/release/deps/libcpufeatures-e3a2b8f3ee4c0bde.rlib" "/tmp/cargo-install3oziu5/release/deps/librand-2b6c4300baaf6f84.rlib" "/tmp/cargo-install3oziu5/release/deps/librand_chacha-0e8a48faa6419137.rlib" "/tmp/cargo-install3oziu5/release/deps/libppv_lite86-9c7a47146d06aef4.rlib" "/tmp/cargo-install3oziu5/release/deps/libzerocopy-c568c44a91fab2d0.rlib" "/tmp/cargo-install3oziu5/release/deps/libbyteorder-eb07c30cf37817c1.rlib" "/tmp/cargo-install3oziu5/release/deps/librand_core-346c2ecb28f497a9.rlib" "/tmp/cargo-install3oziu5/release/deps/libgetrandom-4dc518112feff944.rlib" "/tmp/cargo-install3oziu5/release/deps/libhmac-774de515ce291444.rlib" "/tmp/cargo-install3oziu5/release/deps/libdigest-558c37fb31bd4a3a.rlib" "/tmp/cargo-install3oziu5/release/deps/libsubtle-7dfcac1fea70405f.rlib" "/tmp/cargo-install3oziu5/release/deps/libblock_buffer-fdfae7d4f5cce15b.rlib" "/tmp/cargo-install3oziu5/release/deps/libcrypto_common-89c1267cd758e717.rlib" "/tmp/cargo-install3oziu5/release/deps/libgeneric_array-72a609f58b6023d0.rlib" "/tmp/cargo-install3oziu5/release/deps/libtypenum-dbc6e2b8f8de35a1.rlib" "/tmp/cargo-install3oziu5/release/deps/libconstant_time_eq-af6cf5e70cc6f3cb.rlib" "/tmp/cargo-install3oziu5/release/deps/libreqwest-ae851f5412124391.rlib" "/tmp/cargo-install3oziu5/release/deps/librustls_pemfile-c4cb2060d13a3ed7.rlib" "/tmp/cargo-install3oziu5/release/deps/librustls_pki_types-48772e7fde7c7641.rlib" "/tmp/cargo-install3oziu5/release/deps/libsync_wrapper-b7e1e4468a52e16a.rlib" "/tmp/cargo-install3oziu5/release/deps/libbase64-7c1cc1ffc3b814f2.rlib" "/tmp/cargo-install3oziu5/release/deps/libipnet-4eeb776538251bc0.rlib" "/tmp/cargo-install3oziu5/release/deps/libhyper_tls-f524d2e2ebf36c79.rlib" "/tmp/cargo-install3oziu5/release/deps/libtokio_native_tls-19e5a596b78a0a4c.rlib" "/tmp/cargo-install3oziu5/release/deps/libserde_urlencoded-317f64b958e85e10.rlib" "/tmp/cargo-install3oziu5/release/deps/libmime-0878618f4329670f.rlib" "/tmp/cargo-install3oziu5/release/deps/libencoding_rs-1139a442c0c7b964.rlib" "/tmp/cargo-install3oziu5/release/deps/libnative_tls-39a104aa6029745f.rlib" "/tmp/cargo-install3oziu5/release/deps/libopenssl_probe-76f56bb01969c439.rlib" "/tmp/cargo-install3oziu5/release/deps/libopenssl-873b5528ec01e65f.rlib" "/tmp/cargo-install3oziu5/release/deps/libbitflags-56c78bbb00d1ccd4.rlib" "/tmp/cargo-install3oziu5/release/deps/libforeign_types-259c2221fe82f1c2.rlib" "/tmp/cargo-install3oziu5/release/deps/libforeign_types_shared-c6a0cfcba5eb4daf.rlib" "/tmp/cargo-install3oziu5/release/deps/libcfg_if-2c934626b6b7aac7.rlib" "/tmp/cargo-install3oziu5/release/deps/libopenssl_sys-2e40aa270ab1c084.rlib" "/tmp/cargo-install3oziu5/release/deps/libhyper_util-08fbbd9965d90768.rlib" "/tmp/cargo-install3oziu5/release/deps/libtower-6b1b8e0b47fe141a.rlib" "/tmp/cargo-install3oziu5/release/deps/libpin_project-64286e24ee9cdaf8.rlib" "/tmp/cargo-install3oziu5/release/deps/libtower_layer-6e62e62a0d2f4fa5.rlib" "/tmp/cargo-install3oziu5/release/deps/libtower_service-fce0aa0af4dc98bf.rlib" "/tmp/cargo-install3oziu5/release/deps/libhyper-d1ebccc5f355b24f.rlib" "/tmp/cargo-install3oziu5/release/deps/libwant-b4f2c71157f67f70.rlib" "/tmp/cargo-install3oziu5/release/deps/libtry_lock-52d4219ac0d8b86b.rlib" "/tmp/cargo-install3oziu5/release/deps/libsmallvec-b05eebe945daaf82.rlib" "/tmp/cargo-install3oziu5/release/deps/libhttparse-7297546bdec31ea5.rlib" "/tmp/cargo-install3oziu5/release/deps/libh2-9b44a70fa3128c3f.rlib" "/tmp/cargo-install3oziu5/release/deps/libtracing-2e85d3124a87352a.rlib" "/tmp/cargo-install3oziu5/release/deps/libtracing_core-3d61a4e994fec4e1.rlib" "/tmp/cargo-install3oziu5/release/deps/libindexmap-1bc7fe25d42f8360.rlib" "/tmp/cargo-install3oziu5/release/deps/libequivalent-230b0a88c9cdf78f.rlib" "/tmp/cargo-install3oziu5/release/deps/libhashbrown-9f615c7003429d9f.rlib" "/tmp/cargo-install3oziu5/release/deps/libatomic_waker-8949b8eb36c5573f.rlib" "/tmp/cargo-install3oziu5/release/deps/libtokio_util-9087dbea275dc7c3.rlib" "/tmp/cargo-install3oziu5/release/deps/libtokio-be65daf21799d736.rlib" "/tmp/cargo-install3oziu5/release/deps/libsocket2-1a1f33e4005a5f6b.rlib" "/tmp/cargo-install3oziu5/release/deps/libmio-4bdcb07e3d4452c5.rlib" "/tmp/cargo-install3oziu5/release/deps/libhttp_body_util-2f3f031b2d7841ea.rlib" "/tmp/cargo-install3oziu5/release/deps/libhttp_body-2542703130b9c934.rlib" "/tmp/cargo-install3oziu5/release/deps/libfutures_util-b3cc5a73ab60d517.rlib" "/tmp/cargo-install3oziu5/release/deps/libfutures_io-0785995710376470.rlib" "/tmp/cargo-install3oziu5/release/deps/libslab-d4b874fda5a2d749.rlib" "/tmp/cargo-install3oziu5/release/deps/libpin_project_lite-ad74c3b5076eee8d.rlib" "/tmp/cargo-install3oziu5/release/deps/libfutures_task-12e10e3bdd773abf.rlib" "/tmp/cargo-install3oziu5/release/deps/libpin_utils-3365a340a69b71a6.rlib" "/tmp/cargo-install3oziu5/release/deps/liburl-926ae3771f69cada.rlib" "/tmp/cargo-install3oziu5/release/deps/libidna-888e3e9e97483085.rlib" "/tmp/cargo-install3oziu5/release/deps/libunicode_normalization-ce19ce6444859d5b.rlib" "/tmp/cargo-install3oziu5/release/deps/libtinyvec-60cc37e15ce78aee.rlib" "/tmp/cargo-install3oziu5/release/deps/libtinyvec_macros-8e00f7ca9170a03d.rlib" "/tmp/cargo-install3oziu5/release/deps/libunicode_bidi-fab812fb4506b395.rlib" "/tmp/cargo-install3oziu5/release/deps/libform_urlencoded-1ef222c53ae3277a.rlib" "/tmp/cargo-install3oziu5/release/deps/libpercent_encoding-4e32520190f3ef39.rlib" "/tmp/cargo-install3oziu5/release/deps/libhttp-52f991db8cbdba0c.rlib" "/tmp/cargo-install3oziu5/release/deps/libbytes-28ab064724c3f890.rlib" "/tmp/cargo-install3oziu5/release/deps/libfnv-da37e2839ae321d5.rlib" "/tmp/cargo-install3oziu5/release/deps/libserde_with-56ffc1aac8111c4e.rlib" "/tmp/cargo-install3oziu5/release/deps/liblog-23457997fa26d5b1.rlib" "/tmp/cargo-install3oziu5/release/deps/libonce_cell-b25ce34b4f102b4b.rlib" "/tmp/cargo-install3oziu5/release/deps/libserde_json-586ec3411248da6a.rlib" "/tmp/cargo-install3oziu5/release/deps/libmemchr-1fae0fe54dd36c05.rlib" "/tmp/cargo-install3oziu5/release/deps/libitoa-eab92d3a1e01c56e.rlib" "/tmp/cargo-install3oziu5/release/deps/libryu-02dc1bcc81db9908.rlib" "/tmp/cargo-install3oziu5/release/deps/libserde-d4cac0e3842fc849.rlib" "/tmp/cargo-install3oziu5/release/deps/libfutures_channel-ffdd53aed8fe7883.rlib" "/tmp/cargo-install3oziu5/release/deps/libfutures_sink-28ac5cc9c99765a7.rlib" "/tmp/cargo-install3oziu5/release/deps/libfutures_core-f29d15953bf60df1.rlib" "/tmp/cargo-install3oziu5/release/deps/libdirs-e9d281597b162f50.rlib" "/tmp/cargo-install3oziu5/release/deps/libdirs_sys-0ec2353b57705316.rlib" "/tmp/cargo-install3oziu5/release/deps/liblibc-799ce058a5c5a210.rlib" "/tmp/cargo-install3oziu5/release/deps/liboption_ext-1508c0369c720f09.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-52417a9a08ba8fb9.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1b238e97929fdc18.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3692c2663daa48a5.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-5c1e2d61611c0240.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-e55c5186b9bbabcb.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7911d2fe92903c6c.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-c03510cdc48cfa52.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-7ec6f3765287c7b7.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-ab3f1b788cf79cfc.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-6db4226b4e34b1a6.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f5bb1a38d410fa1e.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-e585efe74c64604d.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-03f8e93b59ffc316.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-669e9182bfe197a6.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-64b53226be979181.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-26921ac7e6a44d2b.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-6703049be165ebf1.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-04bfdf6b094564ce.rlib" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-6648dc218e522d87.rlib" "-Wl,-Bdynamic" "-ltdjson" "-lssl" "-lcrypto" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/ak/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/cargo-install3oziu5/release/build/tgt-e718d6d89786ac05/build_script_build-e718d6d89786ac05" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs" = note: /usr/bin/ld: warning: libc++.so.1, needed by /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libunwind.so.1, needed by /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libc++abi.so.1, needed by /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::__1::basic_streambuf<char, std::1::char_traitsstd::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::assign(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, unsigned long)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsstd::__1::ios_base::getloc() const' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsstd::__1::ios_base::imbue(std::__1::locale const&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsstd::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::compare(unsigned long, unsigned long, char const*, unsigned long) const' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::nothrow' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference tonon-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsstd::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(char)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::random_device::operator()()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference tostd::__1::__shared_weak_count::__release_weak()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::mutex::lock()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference tostd::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_ostream<char, std::__1::char_traitsstd::__1::locale::operator=(std::__1::locale const&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::__1::basic_ostream<char, std::std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, unsigned long, std::__1::allocator<char> const&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsnon-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
operator new(unsigned long)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference tooperator delete(void*)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
cxa_guard_acquire' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::1::basic_string<char, std::1::char_traitsstd::__1::random_device::~random_device()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::shared_weak_count::~shared_weak_count()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::1::basic_ostream<char, std::1::char_traitsoperator new[](unsigned long)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_ostream<char, std::__1::char_traitsoperator delete[](void*)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_streambuf<char, std::1::char_traitsstd::__1::__shared_weak_count::lock()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
operator new(unsigned long, std::nothrow_t const&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::std::__1::basic_istream<char, std::__1::char_traits<char> >::operator>>(double&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsstd::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::insert(unsigned long, char const*)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::shared_weak_count::get_deleter(std::type_info const&) const' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::1::ios_base::clear(unsigned int)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference tostd::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_string<char, std::__1::char_traitsstd::__1::basic_istream<char, std::__1::char_traits<char> >::~basic_istream()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
virtual thunk to std::1::basic_ostream<char, std::1::char_traits__cxa_pure_virtual' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_streambuf<char, std::__1::char_traitsstd::__1::locale::locale(std::__1::locale const&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::__1::ios_base::init(void*)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `std::void std::__1::__sort<std::__1::__less<int, int>&, int*>(int*, int*, std::__1::__less<int, int>&)' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_istream<char, std::1::char_traitsvirtual thunk to std::__1::basic_ostream<char, std::__1::char_traits<char> >::~basic_ostream()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::1::basic_iostream<char, std::1::char_traitsstd::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to
std::__1::chrono::system_clock::now()' /usr/bin/ld: /tmp/cargo-install3oziu5/release/build/tdlib-rs-dbf15d2c73182a66/out/tdlib/lib/libtdjson.so: undefined reference to `__cxa_guard_release' 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 thecargo: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)error: could not compile
tgt
(build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: failed to compiletgt v1.0.0
, intermediate artifacts can be found at/tmp/cargo-install3oziu5
. To reuse those artifacts with a future compilation, set the environment variableCARGO_TARGET_DIR
to that path.Method of Installation
Cargo
tgt version
1.0.0
Operating System (including version and architecture)
Install on Ubuntu as a WSL on windows 11 host system
Terminal and Command Line Interface (CLI) (including versions)
Powershell
rustc and rustup target (including versions)
No response