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 run custom build command for tdlib-rs v1.0.5 #105

Open
hongballz opened this issue Dec 25, 2024 · 7 comments
Open

[bug]: Failed to run custom build command for tdlib-rs v1.0.5 #105

hongballz opened this issue Dec 25, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@hongballz
Copy link

hongballz commented Dec 25, 2024

Describe the bug

stuck at tdlib-rs when compiling

Reproduction steps

1.git clone https://github.com/FedericoBruzzone/tgt.git
2.cd tgt
3.cargo build
...

Expected behavior

Compile tgt

Logs and screenshots

cargo build --features download-tdlib
   Compiling proc-macro2 v1.0.92
   Compiling unicode-ident v1.0.12
   Compiling once_cell v1.19.0
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.155
   Compiling autocfg v1.3.0
   Compiling pkg-config v0.3.30
   Compiling version_check v0.9.4
   Compiling memchr v2.7.4
   Compiling serde v1.0.216
   Compiling pin-project-lite v0.2.14
   Compiling log v0.4.22
   Compiling futures-core v0.3.31
   Compiling itoa v1.0.11
   Compiling bytes v1.6.0
   Compiling fnv v1.0.7
   Compiling equivalent v1.0.1
   Compiling futures-sink v0.3.31
   Compiling smallvec v1.13.2
   Compiling zerocopy v0.7.34
   Compiling allocator-api2 v0.2.18
   Compiling futures-task v0.3.31
   Compiling vcpkg v0.2.15
   Compiling futures-io v0.3.31
   Compiling pin-utils v0.1.0
   Compiling scopeguard v1.2.0
   Compiling typenum v1.17.0
   Compiling crc32fast v1.4.2
   Compiling futures-channel v0.3.31
   Compiling parking_lot_core v0.9.10
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.66
   Compiling httparse v1.9.4
   Compiling foreign-types v0.3.2
   Compiling atomic-waker v1.1.2
   Compiling adler2 v2.0.0
   Compiling native-tls v0.2.12
   Compiling crossbeam-utils v0.8.20
   Compiling thiserror v1.0.63
   Compiling try-lock v0.2.5
   Compiling ryu v1.0.18
   Compiling miniz_oxide v0.8.0
   Compiling want v0.3.1
   Compiling openssl-probe v0.1.5
   Compiling tower-layer v0.3.2
   Compiling ahash v0.8.11
   Compiling generic-array v0.14.7
   Compiling tower-service v0.3.2
   Compiling rustix v0.38.34
   Compiling hashbrown v0.14.5
   Compiling ppv-lite86 v0.2.17
   Compiling slab v0.4.9
   Compiling lock_api v0.4.12
   Compiling num-traits v0.2.19
   Compiling tracing-core v0.1.33
   Compiling tinyvec_macros v0.1.1
   Compiling subtle v2.6.1
   Compiling linux-raw-sys v0.4.14
   Compiling http v1.1.0
   Compiling powerfmt v0.2.0
   Compiling tinyvec v1.6.1
   Compiling num-conv v0.1.0
   Compiling deranged v0.3.11
   Compiling simd-adler32 v0.3.7
   Compiling time-core v0.1.2
   Compiling either v1.13.0
   Compiling futures-util v0.3.31
   Compiling percent-encoding v2.3.1
   Compiling bitflags v2.6.0
   Compiling quote v1.0.36
   Compiling tracing v0.1.41
   Compiling strsim v0.11.1
   Compiling zstd-safe v7.1.0
   Compiling crossbeam-epoch v0.9.18
   Compiling indexmap v2.2.6
   Compiling form_urlencoded v1.2.1
   Compiling syn v2.0.89
   Compiling jobserver v0.1.31
   Compiling getrandom v0.2.15
   Compiling mio v1.0.1
   Compiling socket2 v0.5.7
   Compiling encoding_rs v0.8.34
   Compiling lockfree-object-pool v0.1.6
   Compiling unicode-bidi v0.3.15
   Compiling rayon-core v1.12.1
   Compiling crc-catalog v2.4.0
   Compiling cc v1.0.103
   Compiling cpufeatures v0.2.12
   Compiling bumpalo v3.16.0
   Compiling thiserror v2.0.3
   Compiling crc v3.2.1
   Compiling crossbeam-deque v0.8.5
   Compiling http-body v1.0.0
   Compiling unicode-normalization v0.1.23
   Compiling rand_core v0.6.4
   Compiling minimal-lexical v0.2.1
   Compiling ident_case v1.0.1
   Compiling tokio v1.42.0
   Compiling base64 v0.22.1
   Compiling byteorder v1.5.0
   Compiling crunchy v0.2.2
   Compiling rustls-pki-types v1.7.0
   Compiling zip v2.2.2
   Compiling num-integer v0.1.46
   Compiling rand_chacha v0.3.1
   Compiling lzma-rs v0.3.0
   Compiling nom v7.1.3
   Compiling wayland-sys v0.31.2
   Compiling sync_wrapper v1.0.1
   Compiling libloading v0.8.4
   Compiling mime v0.3.17
   Compiling tiny-keccak v2.0.2
   Compiling rustls-pemfile v2.1.2
   Compiling anyhow v1.0.86
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling inout v0.1.3
   Compiling constant_time_eq v0.3.1
   Compiling ipnet v2.9.0
   Compiling signal-hook-registry v1.4.2
   Compiling digest v0.10.7
   Compiling cipher v0.4.4
   Compiling idna v0.5.0
   Compiling deflate64 v0.1.9
   Compiling option-ext v0.2.0
   Compiling paste v1.0.15
   Compiling rustversion v1.0.17
   Compiling num-bigint v0.4.6
   Compiling parking_lot v0.12.3
   Compiling hmac v0.12.1
   Compiling sha1 v0.10.6
   Compiling aes v0.8.4
   Compiling zopfli v0.8.1
   Compiling rand v0.8.5
   Compiling pbkdf2 v0.12.2
   Compiling dlib v0.5.2
   Compiling time v0.3.36
   Compiling itertools v0.12.1
   Compiling flate2 v1.0.35
   Compiling serde_json v1.0.119
   Compiling arrayvec v0.7.6
   Compiling tdlib-rs-parser v1.0.5
   Compiling aligned-vec v0.5.0
   Compiling url v2.5.2
   Compiling built v0.7.3
   Compiling tdlib-rs-gen v1.0.5
   Compiling v_frame v0.3.8
   Compiling rayon v1.10.0
   Compiling quick-xml v0.31.0
   Compiling ucd-trie v0.1.6
   Compiling wayland-client v0.31.3
   Compiling heck v0.5.0
   Compiling rav1e v0.7.1
   Compiling signal-hook v0.3.17
   Compiling scoped-tls v1.0.1
   Compiling adler v1.0.2
   Compiling downcast-rs v1.2.1
   Compiling miniz_oxide v0.7.4
   Compiling const-random-macro v0.1.16
   Compiling simd_helpers v0.1.0
   Compiling spin v0.9.8
   Compiling openssl-sys v0.9.103
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling zstd-sys v2.0.11+zstd.1.5.6
   Compiling wayland-backend v0.3.4
   Compiling cfg_aliases v0.1.1
   Compiling imgref v1.10.1
   Compiling bitstream-io v2.4.2
   Compiling new_debug_unreachable v1.0.6
   Compiling regex-syntax v0.6.29
   Compiling quick-error v2.0.1
   Compiling noop_proc_macro v0.3.0
   Compiling weezl v0.1.8
   Compiling regex-syntax v0.8.4
   Compiling nix v0.28.0
   Compiling loop9 v0.1.5
   Compiling flume v0.11.0
   Compiling const-random v0.1.18
   Compiling avif-serialize v0.8.2
   Compiling dirs-sys v0.4.1
   Compiling bzip2 v0.4.4
   Compiling num-rational v0.4.2
   Compiling zune-inflate v0.2.54
   Compiling wayland-scanner v0.31.2
   Compiling fdeflate v0.3.4
   Compiling half v2.4.1
   Compiling bitflags v1.3.2
   Compiling jpeg-decoder v0.3.1
   Compiling bit_field v0.10.2
   Compiling color_quant v1.1.0
   Compiling zune-core v0.4.12
   Compiling overload v0.1.1
   Compiling lazy_static v1.5.0
   Compiling utf8parse v0.2.2
   Compiling av1-grain v0.2.3
   Compiling fixedbitset v0.4.2
   Compiling lebe v0.5.2
   Compiling bytemuck v1.16.1
   Compiling byteorder-lite v0.1.0
   Compiling iana-time-zone v0.1.60
   Compiling rgb v0.8.50
   Compiling unicode-segmentation v1.11.0
   Compiling http-body-util v0.1.2
   Compiling chrono v0.4.39
   Compiling qoi v0.4.1
   Compiling exr v1.72.0
   Compiling image-webp v0.2.0
   Compiling petgraph v0.6.5
   Compiling zune-jpeg v0.4.13
   Compiling anstyle-parse v0.2.4
   Compiling png v0.17.13
   Compiling sharded-slab v0.1.7
   Compiling nu-ansi-term v0.46.0
   Compiling gif v0.13.1
   Compiling tiff v0.9.1
   Compiling dirs v5.0.1
   Compiling signal-hook-mio v0.2.4
   Compiling dlv-list v0.5.2
   Compiling castaway v0.2.3
   Compiling tracing-log v0.2.0
   Compiling thread_local v1.1.8
   Compiling darling_core v0.20.9
   Compiling regex-automata v0.4.7
   Compiling unicode-width v0.1.13
   Compiling colorchoice v1.0.1
   Compiling winnow v0.6.20
   Compiling static_assertions v1.1.0
   Compiling anstyle-query v1.1.0
   Compiling regex-automata v0.1.10
   Compiling fastrand v2.1.0
   Compiling is_terminal_polyfill v1.70.0
   Compiling anstyle v1.0.8
   Compiling home v0.5.9
   Compiling maybe-rayon v0.1.1
   Compiling base64 v0.21.7
   Compiling compact_str v0.8.0
   Compiling unicode-truncate v1.0.0
   Compiling anstream v0.6.14
   Compiling ordered-multimap v0.7.3
   Compiling os_pipe v1.2.0
   Compiling lru v0.12.3
   Compiling hashlink v0.8.4
   Compiling itertools v0.13.0
   Compiling cassowary v0.3.0
   Compiling x11rb-protocol v0.13.1
   Compiling tokio-util v0.7.11
   Compiling arraydeque v0.5.1
   Compiling matchers v0.1.0
   Compiling tree_magic_mini v3.1.5
   Compiling trim-in-place v0.1.7
   Compiling unicode-width v0.2.0
   Compiling indoc v2.0.5
   Compiling clap_lex v0.7.4
   Compiling yaml-rust2 v0.9.0
   Compiling rust-ini v0.21.1
   Compiling h2 v0.4.5
   Compiling clap_builder v4.5.23
   Compiling convert_case v0.6.0
   Compiling crossbeam-channel v0.5.13
   Compiling icy_sixel v0.1.2
   Compiling pathdiff v0.2.1
   Compiling regex v1.10.5
   Compiling serde_derive v1.0.216
   Compiling openssl-macros v0.1.1
   Compiling pin-project-internal v1.1.5
   Compiling thiserror-impl v1.0.63
   Compiling tokio-macros v2.4.0
   Compiling tracing-attributes v0.1.28
   Compiling futures-macro v0.3.31
   Compiling zeroize_derive v1.4.2
   Compiling thiserror-impl v2.0.3
   Compiling displaydoc v0.2.5
   Compiling profiling-procmacros v1.0.15
   Compiling arg_enum_proc_macro v0.3.4
   Compiling darling_macro v0.20.9
   Compiling num-derive v0.4.2
   Compiling strum_macros v0.26.4
   Compiling derive-new v0.6.0
   Compiling instability v0.3.2
   Compiling clap_derive v4.5.18
   Compiling profiling v1.0.15
   Compiling async-trait v0.1.80
   Compiling zeroize v1.8.1
   Compiling darling v0.20.9
   Compiling serde_with_macros v3.8.1
   Compiling pest v2.7.10
   Compiling pin-project v1.1.5
   Compiling tower v0.4.13
   Compiling hyper v1.3.1
   Compiling tracing-subscriber v0.3.19
   Compiling strum v0.26.3
   Compiling clap v4.5.23
   Compiling hyper-util v0.1.5
   Compiling pest_meta v2.7.10
   Compiling tracing-appender v0.2.3
   Compiling tracing-error v0.2.1
   Compiling pest_generator v2.7.10
   Compiling pest_derive v2.7.10
   Compiling tokio-native-tls v0.3.1
   Compiling hyper-tls v0.6.0
   Compiling zstd v0.13.2
   Compiling futures-executor v0.3.31
   Compiling futures v0.3.31
   Compiling serde_urlencoded v0.7.1
   Compiling serde_with v3.8.1
   Compiling toml_datetime v0.6.6
   Compiling serde_spanned v0.6.6
   Compiling json5 v0.4.1
   Compiling toml_edit v0.22.14
   Compiling ron v0.8.1
   Compiling reqwest v0.12.9
   Compiling ravif v0.11.11
   Compiling image v0.25.5
   Compiling toml v0.8.14
   Compiling tdlib-rs v1.0.5
   Compiling config v0.15.4
   Compiling crossterm v0.28.1
   Compiling tempfile v3.10.1
   Compiling x11rb v0.13.1
   Compiling ratatui v0.29.0
   Compiling wayland-protocols v0.31.2
   Compiling wayland-protocols-wlr v0.2.0
   Compiling ratatui-image v3.0.0
   Compiling wl-clipboard-rs v0.8.1
   Compiling arboard v3.4.1
error: failed to run custom build command for `tdlib-rs v1.0.5`

Caused by:
  process didn't exit successfully: `/home/honbmml/tgt/target/debug/build/tdlib-rs-6ccb6ce8265d83ad/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs

  --- stderr
  thread 'main' panicked at /home/honbmml/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tdlib-rs-1.0.5/build.rs:163:40:
  called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: TimedOut }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[honbmml@Arch tgt]$ cargo build --features download-tdlib
   Compiling tdlib-rs v1.0.5
   Compiling tgt v1.0.0 (/home/honbmml/.local/share/Trash/files/tgt)
error: failed to run custom build command for `tgt v1.0.0 (/home/honbmml/.local/share/Trash/files/tgt)`

Caused by:
  process didn't exit successfully: `/home/honbmml/.local/share/Trash/files/tgt/target/debug/build/tgt-53768077e808ad4c/build-script-build` (exit status: 127)
  --- stderr
  /home/honbmml/.local/share/Trash/files/tgt/target/debug/build/tgt-53768077e808ad4c/build-script-build: error while loading shared libraries: libunwind.so.1: cannot open shared object file: No such file or directory

Method of Installation

Download from GitHub

tgt version

1.0.0

Operating System (including version and architecture)

Arch Linux

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

kitty 0.37.0

rustc and rustup target (including versions)

No response

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

The issue #32 can help to fix this problem.
Let me know :D

@hongballz
Copy link
Author

hongballz commented Dec 26, 2024

After doing so I still can't get it to work, so I tried it with the install with the script "cargo install tgt" like the person in #32 did but to no avail I still can't get tgt. Here's the error:

cargo install tgt
    Updating crates.io index
  Installing tgt v1.0.0
    Updating crates.io index
     Locking 447 packages to latest compatible versions
      Adding aligned-vec v0.5.0 (latest: v0.6.1)
      Adding base64 v0.21.7 (latest: v0.22.1)
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding bzip2 v0.4.4 (latest: v0.5.0)
      Adding cfg-expr v0.15.8 (latest: v0.17.2)
      Adding cfg_aliases v0.1.1 (latest: v0.2.1)
      Adding compact_str v0.7.1 (latest: v0.8.0)
      Adding config v0.14.1 (latest: v0.15.4)
      Adding core-foundation v0.9.4 (latest: v0.10.0)
      Adding core-graphics v0.23.2 (latest: v0.24.0)
      Adding core-graphics-types v0.1.3 (latest: v0.2.0)
      Adding crossterm v0.27.0 (latest: v0.28.1)
      Adding derive-new v0.6.0 (latest: v0.7.0)
      Adding dlv-list v0.5.2 (latest: v0.6.0)
      Adding fixedbitset v0.4.2 (latest: v0.5.7)
      Adding foreign-types v0.3.2 (latest: v0.5.0)
      Adding foreign-types-shared v0.1.1 (latest: v0.3.1)
      Adding generic-array v0.14.7 (latest: v1.1.1)
      Adding gethostname v0.4.3 (latest: v0.5.0)
      Adding hashbrown v0.12.3 (latest: v0.15.2)
      Adding hashbrown v0.14.5 (latest: v0.15.2)
      Adding hashlink v0.8.4 (latest: v0.10.0)
      Adding indexmap v1.9.3 (latest: v2.7.0)
      Adding itertools v0.12.1 (latest: v0.13.0)
      Adding linux-raw-sys v0.4.14 (latest: v0.6.5)
      Adding matchers v0.1.0 (latest: v0.2.0)
      Adding mio v0.8.11 (latest: v1.0.3)
      Adding nix v0.28.0 (latest: v0.29.0)
      Adding nu-ansi-term v0.46.0 (latest: v0.50.1)
      Adding quick-xml v0.36.2 (latest: v0.37.1)
      Adding ratatui v0.27.0 (latest: v0.29.0)
      Adding ratatui-image v1.0.5 (latest: v4.1.0)
      Adding regex-automata v0.1.10 (latest: v0.4.9)
      Adding regex-syntax v0.6.29 (latest: v0.8.5)
      Adding rust-ini v0.20.0 (latest: v0.21.1)
      Adding security-framework v2.11.1 (latest: v3.1.0)
      Adding system-deps v6.2.2 (latest: v7.0.3)
      Adding target-lexicon v0.12.16 (latest: v0.13.1)
      Adding thiserror v1.0.69 (latest: v2.0.9)
      Adding thiserror-impl v1.0.69 (latest: v2.0.9)
      Adding tinystr v0.7.6 (latest: v0.8.0)
      Adding unicode-truncate v1.1.0 (latest: v2.0.0)
      Adding unicode-width v0.1.14 (latest: v0.2.0)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.3+wasi-0.2.2)
      Adding wayland-protocols v0.31.2 (latest: v0.32.5)
      Adding wayland-protocols-wlr v0.2.0 (latest: v0.3.5)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-registry v0.2.0 (latest: v0.3.0)
      Adding windows-strings v0.1.0 (latest: v0.2.0)
      Adding windows-sys v0.48.0 (latest: v0.59.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding windows-targets v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
      Adding wl-clipboard-rs v0.8.1 (latest: v0.9.1)
      Adding writeable v0.5.5 (latest: v0.6.0)
      Adding yaml-rust2 v0.8.1 (latest: v0.9.0)
      Adding zerocopy v0.7.35 (latest: v0.8.14)
      Adding zerocopy-derive v0.7.35 (latest: v0.8.14)
      Adding zerovec v0.10.4 (latest: v0.11.0)
      Adding zerovec-derive v0.10.3 (latest: v0.11.0)
   Compiling proc-macro2 v1.0.92
   Compiling unicode-ident v1.0.14
   Compiling libc v0.2.169
   Compiling cfg-if v1.0.0
   Compiling pkg-config v0.3.31
   Compiling shlex v1.3.0
   Compiling autocfg v1.4.0
   Compiling serde v1.0.216
   Compiling version_check v0.9.5
   Compiling log v0.4.22
   Compiling once_cell v1.20.2
   Compiling typenum v1.17.0
   Compiling smallvec v1.13.2
   Compiling memchr v2.7.4
   Compiling vcpkg v0.2.15
   Compiling allocator-api2 v0.2.21
   Compiling fnv v1.0.7
   Compiling itoa v1.0.14
   Compiling equivalent v1.0.1
   Compiling foldhash v0.1.4
   Compiling stable_deref_trait v1.2.0
   Compiling thiserror v2.0.9
   Compiling openssl v0.10.68
   Compiling httparse v1.9.5
   Compiling bytes v1.9.0
   Compiling pin-project-lite v0.2.15
   Compiling native-tls v0.2.12
   Compiling futures-core v0.3.31
   Compiling litemap v0.7.4
   Compiling futures-sink v0.3.31
   Compiling writeable v0.5.5
   Compiling parking_lot_core v0.9.10
   Compiling scopeguard v1.2.0
   Compiling generic-array v0.14.7
   Compiling zstd-safe v7.2.1
   Compiling byteorder v1.5.0
   Compiling crossbeam-utils v0.8.21
   Compiling icu_locid_transform_data v1.5.0
   Compiling slab v0.4.9
   Compiling lock_api v0.4.12
   Compiling num-traits v0.2.19
   Compiling hashbrown v0.15.2
   Compiling tracing-core v0.1.33
   Compiling futures-io v0.3.31
   Compiling strsim v0.11.1
   Compiling pin-utils v0.1.0
   Compiling icu_properties_data v1.5.0
   Compiling simd-adler32 v0.3.7
   Compiling futures-task v0.3.31
   Compiling http v1.2.0
   Compiling foreign-types-shared v0.1.1
   Compiling ident_case v1.0.1
   Compiling foreign-types v0.3.2
   Compiling bitflags v2.6.0
   Compiling icu_normalizer_data v1.5.0
   Compiling atomic-waker v1.1.2
   Compiling utf8_iter v1.0.4
   Compiling quote v1.0.38
   Compiling futures-util v0.3.31
   Compiling utf16_iter v1.0.5
   Compiling try-lock v0.2.5
   Compiling subtle v2.6.1
   Compiling either v1.13.0
   Compiling rustix v0.38.42
   Compiling write16 v1.0.0
   Compiling want v0.3.1
   Compiling futures-channel v0.3.31
   Compiling tracing v0.1.41
   Compiling openssl-probe v0.1.5
   Compiling zip v2.2.2
   Compiling syn v2.0.91
   Compiling indexmap v2.7.0
   Compiling percent-encoding v2.3.1
   Compiling linux-raw-sys v0.4.14
   Compiling crossbeam-epoch v0.9.18
   Compiling crc32fast v1.4.2
   Compiling adler2 v2.0.0
   Compiling form_urlencoded v1.2.1
   Compiling tower-service v0.3.3
   Compiling ryu v1.0.18
   Compiling powerfmt v0.2.0
   Compiling rustversion v1.0.18
   Compiling jobserver v0.1.32
   Compiling getrandom v0.2.15
   Compiling mio v1.0.3
   Compiling socket2 v0.5.8
   Compiling cpufeatures v0.2.16
   Compiling minimal-lexical v0.2.1
   Compiling crc-catalog v2.4.0
   Compiling rayon-core v1.12.1
   Compiling rand_core v0.6.4
   Compiling miniz_oxide v0.8.2
   Compiling crc v3.2.1
   Compiling cc v1.2.5
   Compiling http-body v1.0.1
   Compiling crossbeam-deque v0.8.6
   Compiling deranged v0.3.11
   Compiling nom v7.1.3
   Compiling lockfree-object-pool v0.1.6
   Compiling serde_json v1.0.134
   Compiling tokio v1.42.0
   Compiling crunchy v0.2.2
   Compiling rustls-pki-types v1.10.1
   Compiling thiserror v1.0.69
   Compiling time-core v0.1.2
   Compiling num-conv v0.1.0
   Compiling paste v1.0.15
   Compiling bumpalo v3.16.0
   Compiling lzma-rs v0.3.0
   Compiling num-integer v0.1.46
   Compiling wayland-sys v0.31.5
   Compiling ahash v0.8.11
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling inout v0.1.3
   Compiling flate2 v1.0.35
   Compiling signal-hook-registry v1.4.2
   Compiling digest v0.10.7
   Compiling cipher v0.4.4
   Compiling rustls-pemfile v2.2.0
   Compiling zopfli v0.8.1
   Compiling sync_wrapper v1.0.2
   Compiling encoding_rs v0.8.35
   Compiling hmac v0.12.1
   Compiling parking_lot v0.12.3
   Compiling sha1 v0.10.6
   Compiling aes v0.8.4
   Compiling libloading v0.8.6
   Compiling ipnet v2.10.1
   Compiling pbkdf2 v0.12.2
   Compiling mime v0.3.17
   Compiling tdlib-rs-parser v1.0.5
   Compiling base64 v0.22.1
   Compiling constant_time_eq v0.3.1
   Compiling tiny-keccak v2.0.2
   Compiling deflate64 v0.1.9
   Compiling anyhow v1.0.95
   Compiling time v0.3.37
   Compiling dlib v0.5.2
   Compiling tdlib-rs-gen v1.0.5
   Compiling num-bigint v0.4.6
   Compiling built v0.7.5
   Compiling heck v0.5.0
   Compiling arrayvec v0.7.6
   Compiling aligned-vec v0.5.0
   Compiling rayon v1.10.0
   Compiling v_frame v0.3.8
   Compiling quick-xml v0.36.2
   Compiling downcast-rs v1.2.1
   Compiling unicode-segmentation v1.12.0
   Compiling wayland-client v0.31.7
   Compiling scoped-tls v1.0.1
   Compiling signal-hook v0.3.17
   Compiling ucd-trie v0.1.7
   Compiling rav1e v0.7.1
   Compiling const-random-macro v0.1.16
   Compiling castaway v0.2.3
   Compiling simd_helpers v0.1.0
   Compiling itertools v0.12.1
   Compiling new_debug_unreachable v1.0.6
   Compiling imgref v1.11.0
   Compiling quick-error v2.0.1
   Compiling static_assertions v1.1.0
   Compiling bitstream-io v2.6.0
   Compiling cfg_aliases v0.1.1
   Compiling regex-syntax v0.6.29
   Compiling weezl v0.1.8
   Compiling option-ext v0.2.0
   Compiling regex-syntax v0.8.5
   Compiling noop_proc_macro v0.3.0
   Compiling const-random v0.1.18
   Compiling nix v0.28.0
   Compiling loop9 v0.1.5
   Compiling dirs-sys v0.4.1
   Compiling avif-serialize v0.8.2
   Compiling mio v0.8.11
   Compiling openssl-sys v0.9.104
   Compiling zstd-sys v2.0.13+zstd.1.5.6
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling http-body-util v0.1.2
   Compiling wayland-backend v0.3.7
   Compiling itertools v0.13.0
   Compiling fdeflate v0.3.7
   Compiling zune-inflate v0.2.54
   Compiling num-rational v0.4.2
   Compiling wayland-scanner v0.31.5
   Compiling half v2.4.1
   Compiling bitflags v1.3.2
   Compiling bzip2 v0.4.4
   Compiling jpeg-decoder v0.3.1
   Compiling bit_field v0.10.2
   Compiling unicode-width v0.1.14
   Compiling color_quant v1.1.0
   Compiling lebe v0.5.2
   Compiling lazy_static v1.5.0
   Compiling av1-grain v0.2.3
   Compiling rgb v0.8.50
   Compiling iana-time-zone v0.1.61
   Compiling bytemuck v1.21.0
   Compiling byteorder-lite v0.1.0
   Compiling zune-core v0.4.12
   Compiling overload v0.1.1
   Compiling utf8parse v0.2.2
   Compiling diff v0.1.13
   Compiling yansi v1.0.1
   Compiling fixedbitset v0.4.2
   Compiling zune-jpeg v0.4.14
   Compiling qoi v0.4.1
   Compiling image-webp v0.2.0
   Compiling anstyle-parse v0.2.6
   Compiling nu-ansi-term v0.46.0
   Compiling petgraph v0.6.5
   Compiling tiff v0.9.1
   Compiling chrono v0.4.39
   Compiling pretty_assertions v1.4.1
   Compiling exr v1.73.0
   Compiling sharded-slab v0.1.7
   Compiling gif v0.13.1
   Compiling synstructure v0.13.1
   Compiling darling_core v0.20.10
   Compiling regex-automata v0.1.10
   Compiling maybe-rayon v0.1.1
   Compiling tokio-util v0.7.13
   Compiling regex-automata v0.4.9
   Compiling unicode-truncate v1.1.0
   Compiling png v0.17.16
   Compiling signal-hook-mio v0.2.4
   Compiling dirs v5.0.1
   Compiling dlv-list v0.5.2
   Compiling tracing-log v0.2.0
   Compiling lru v0.12.5
   Compiling thread_local v1.1.8
   Compiling indoc v2.0.5
   Compiling winnow v0.6.20
   Compiling is_terminal_polyfill v1.70.1
   Compiling anstyle-query v1.1.2
   Compiling fastrand v2.3.0
   Compiling h2 v0.4.7
   Compiling colorchoice v1.0.3
   Compiling cassowary v0.3.0
   Compiling matchers v0.1.0
   Compiling anstyle v1.0.10
   Compiling tree_magic_mini v3.1.6
   Compiling anstream v0.6.18
   Compiling compact_str v0.8.0
   Compiling os_pipe v1.2.1
   Compiling clap_lex v0.7.4
   Compiling x11rb-protocol v0.13.1
   Compiling base64 v0.21.7
   Compiling regex v1.11.1
   Compiling unicode-width v0.2.0
   Compiling arraydeque v0.5.1
   Compiling clap_builder v4.5.23
   Compiling compact_str v0.7.1
   Compiling convert_case v0.6.0
   Compiling crossbeam-channel v0.5.14
   Compiling serde_derive v1.0.216
   Compiling zerofrom-derive v0.1.5
   Compiling yoke-derive v0.7.5
   Compiling zerovec-derive v0.10.3
   Compiling displaydoc v0.2.5
   Compiling zerocopy-derive v0.7.35
   Compiling icu_provider_macros v1.5.0
   Compiling thiserror-impl v2.0.9
   Compiling openssl-macros v0.1.1
   Compiling zeroize_derive v1.4.2
   Compiling tracing-attributes v0.1.28
   Compiling futures-macro v0.3.31
   Compiling tokio-macros v2.4.0
   Compiling thiserror-impl v1.0.69
   Compiling darling_macro v0.20.10
   Compiling profiling-procmacros v1.0.16
   Compiling num-derive v0.4.2
   Compiling arg_enum_proc_macro v0.3.4
   Compiling strum_macros v0.26.4
   Compiling profiling v1.0.16
   Compiling zeroize v1.8.1
   Compiling zerocopy v0.7.35
   Compiling darling v0.20.10
   Compiling derive-new v0.6.0
   Compiling stability v0.2.1
   Compiling serde_with_macros v3.12.0
   Compiling instability v0.3.5
   Compiling clap_derive v4.5.18
   Compiling zerofrom v0.1.5
   Compiling yoke v0.7.5
   Compiling zerovec v0.10.4
   Compiling ppv-lite86 v0.2.20
   Compiling hyper v1.5.2
   Compiling pest v2.7.15
   Compiling async-trait v0.1.83
   Compiling hashbrown v0.14.5
   Compiling tracing-subscriber v0.3.19
   Compiling rand_chacha v0.3.1
   Compiling rand v0.8.5
   Compiling icy_sixel v0.1.3
   Compiling pathdiff v0.2.3
   Compiling tinystr v0.7.6
   Compiling icu_collections v1.5.0
   Compiling icu_locid v1.5.0
   Compiling hyper-util v0.1.10
   Compiling ordered-multimap v0.7.3
   Compiling hashlink v0.8.4
   Compiling pest_meta v2.7.15
   Compiling strum v0.26.3
   Compiling dyn-clone v1.0.17
   Compiling tracing-appender v0.2.3
   Compiling tracing-error v0.2.1
   Compiling rust-ini v0.20.0
   Compiling yaml-rust2 v0.8.1
   Compiling icu_provider v1.5.0
   Compiling clap v4.5.23
   Compiling icu_locid_transform v1.5.0
   Compiling pest_generator v2.7.15
   Compiling tokio-native-tls v0.3.1
   Compiling futures-executor v0.3.31
   Compiling hyper-tls v0.6.0
   Compiling futures v0.3.31
   Compiling icu_properties v1.5.1
   Compiling pest_derive v2.7.15
   Compiling zstd v0.13.2
   Compiling icu_normalizer v1.5.0
   Compiling toml_datetime v0.6.8
   Compiling serde_spanned v0.6.8
   Compiling serde_urlencoded v0.7.1
   Compiling serde_with v3.12.0
   Compiling json5 v0.4.1
   Compiling ron v0.8.1
   Compiling crossterm v0.27.0
   Compiling ratatui v0.29.0
   Compiling toml_edit v0.22.22
   Compiling idna_adapter v1.2.0
   Compiling idna v1.0.3
   Compiling url v2.5.4
   Compiling ratatui v0.27.0
   Compiling ravif v0.11.11
   Compiling reqwest v0.12.9
   Compiling image v0.25.5
   Compiling toml v0.8.19
   Compiling config v0.14.1
   Compiling tdlib-rs v1.0.5
   Compiling tempfile v3.14.0
   Compiling x11rb v0.13.1
   Compiling crossterm v0.28.1
   Compiling ratatui-image v1.0.5
   Compiling wayland-protocols v0.31.2
   Compiling wayland-protocols-wlr v0.2.0
   Compiling wl-clipboard-rs v0.8.1
   Compiling arboard v3.4.1
error: failed to run custom build command for `tdlib-rs v1.0.5`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installODrXQU/release/build/tdlib-rs-d119893cbc20ba55/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs

  --- stderr
  thread 'main' panicked at /home/honbmml/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tdlib-rs-1.0.5/build.rs:163:40:
  called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: TimedOut }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `tdlib-rs v1.0.5`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installODrXQU/release/build/tdlib-rs-d119893cbc20ba55/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs

  --- stderr
  thread 'main' panicked at /home/honbmml/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tdlib-rs-1.0.5/build.rs:163:40:
  called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: TimedOut }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: failed to compile `tgt v1.0.0`, intermediate artifacts can be found at `/tmp/cargo-installODrXQU`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

@FedericoBruzzone
Copy link
Owner

    // Create the request
    let response = reqwest::blocking::get(&url).unwrap();

    // Check if the response status is successful
    if response.status().is_success() {
        // Create a file to write to
        let mut dest = File::create(&zip_path).unwrap();

        // Get the response bytes and write to the file
        let content = response.bytes().unwrap();

The latter line let content = response.bytes().unwrap(); is the line number 163 in the tdlib-rs-1.0.5/build.rs file.
I'm quite sure that the problem is related to you Internet Connection, could it be?

@hongballz
Copy link
Author

Going into he build.rs file of tdlib-rs-1.0.5 this was what I saw:

// Create the request
let response = reqwest::blocking::get(&url).unwrap();

// Check if the response status is successful
if response.status().is_success() {
    // Create a file to write to
    let mut dest = File::create(&zip_path).unwrap();

    // Get the response bytes and write to the file
    let content = response.bytes().unwrap();
} else {
      panic!(
              "[{}] Failed to download file: {}\n{}\n{}",
              "Your OS or architecture may be unsupported.",
              "Please try using the 'pkg-config' or 'local-tdlib' features.",
              response.status(),
       )
}

So I tried doing it the local-tdlib way, got tdlib from the generated instruction. I entered "export LOCAL_TDLIB_PATH=$PATH:/home/honbmml/Applications/td" into .bashrc, only to be returned with:

error: failed to run custom build command for tgt v1.0.0 (/home/honbmml/Applications/tgt)

Caused by:
process didn't exit successfully: /home/honbmml/Applications/tgt/target/debug/build/tgt-53768077e808ad4c/build-script-build (exit status: 127)
--- stderr
/home/honbmml/Applications/tgt/target/debug/build/tgt-53768077e808ad4c/build-script-build: error while loading shared libraries: libunwind.so.1: cannot open shared object file: No such file or directory

So I went and entered the two command of #32 again but it still output the same error.

@hongballz hongballz reopened this Dec 27, 2024
@FedericoBruzzone
Copy link
Owner

Can you show me the output of these two commands:

ls -lha /usr/lib64/libunwind*
ls -lha /usr/lib/libunwind*

@hongballz
Copy link
Author

Here sir:

ls -lha /usr/lib64/libunwind*
lrwxrwxrwx 1 root root 27 May 11 2024 /usr/lib64/libunwind-coredump.so -> libunwind-coredump.so.0.0.0
lrwxrwxrwx 1 root root 27 May 11 2024 /usr/lib64/libunwind-coredump.so.0 -> libunwind-coredump.so.0.0.0
-rwxr-xr-x 1 root root 26K May 11 2024 /usr/lib64/libunwind-coredump.so.0.0.0
lrwxrwxrwx 1 root root 19 May 11 2024 /usr/lib64/libunwind-generic.so -> libunwind-x86_64.so
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib64/libunwind-ptrace.so -> libunwind-ptrace.so.0.0.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib64/libunwind-ptrace.so.0 -> libunwind-ptrace.so.0.0.0
-rwxr-xr-x 1 root root 23K May 11 2024 /usr/lib64/libunwind-ptrace.so.0.0.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib64/libunwind-setjmp.so -> libunwind-setjmp.so.0.0.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib64/libunwind-setjmp.so.0 -> libunwind-setjmp.so.0.0.0
-rwxr-xr-x 1 root root 13K May 11 2024 /usr/lib64/libunwind-setjmp.so.0.0.0
lrwxrwxrwx 1 root root 18 May 11 2024 /usr/lib64/libunwind.so -> libunwind.so.8.1.0
lrwxrwxrwx 1 root root 18 May 11 2024 /usr/lib64/libunwind.so.8 -> libunwind.so.8.1.0
-rwxr-xr-x 1 root root 62K May 11 2024 /usr/lib64/libunwind.so.8.1.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib64/libunwind-x86_64.so -> libunwind-x86_64.so.8.1.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib64/libunwind-x86_64.so.8 -> libunwind-x86_64.so.8.1.0
-rwxr-xr-x 1 root root 70K May 11 2024 /usr/lib64/libunwind-x86_64.so.8.1.0

and

ls -lha /usr/lib/libunwind*
lrwxrwxrwx 1 root root 27 May 11 2024 /usr/lib/libunwind-coredump.so -> libunwind-coredump.so.0.0.0
lrwxrwxrwx 1 root root 27 May 11 2024 /usr/lib/libunwind-coredump.so.0 -> libunwind-coredump.so.0.0.0
-rwxr-xr-x 1 root root 26K May 11 2024 /usr/lib/libunwind-coredump.so.0.0.0
lrwxrwxrwx 1 root root 19 May 11 2024 /usr/lib/libunwind-generic.so -> libunwind-x86_64.so
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib/libunwind-ptrace.so -> libunwind-ptrace.so.0.0.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib/libunwind-ptrace.so.0 -> libunwind-ptrace.so.0.0.0
-rwxr-xr-x 1 root root 23K May 11 2024 /usr/lib/libunwind-ptrace.so.0.0.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib/libunwind-setjmp.so -> libunwind-setjmp.so.0.0.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib/libunwind-setjmp.so.0 -> libunwind-setjmp.so.0.0.0
-rwxr-xr-x 1 root root 13K May 11 2024 /usr/lib/libunwind-setjmp.so.0.0.0
lrwxrwxrwx 1 root root 18 May 11 2024 /usr/lib/libunwind.so -> libunwind.so.8.1.0
lrwxrwxrwx 1 root root 18 May 11 2024 /usr/lib/libunwind.so.8 -> libunwind.so.8.1.0
-rwxr-xr-x 1 root root 62K May 11 2024 /usr/lib/libunwind.so.8.1.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib/libunwind-x86_64.so -> libunwind-x86_64.so.8.1.0
lrwxrwxrwx 1 root root 25 May 11 2024 /usr/lib/libunwind-x86_64.so.8 -> libunwind-x86_64.so.8.1.0
-rwxr-xr-x 1 root root 70K May 11 2024 /usr/lib/libunwind-x86_64.so.8.1.0

@FedericoBruzzone
Copy link
Owner

As you can see in these dirs there isn't the file libunwind.so.1.
Are you sure that the commands in #32 are succeeded? sudo is required.

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