romanz / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
1.11k stars 411 forks source link

Build: /usr/bin/ld: cannot find -lstdc++: No such file or directory #1118

Open andrewtoth opened 4 days ago

andrewtoth commented 4 days ago

Have you read the documentation? Yes. (Please, read usage.md first if you did not.)

Did you double-check that you installed all dependencies? Yes. (Please, double check the dependencies if you didn't.)

Which command failed? cargo build

What was the error message?

Error message ``` error: linking with `cc` failed: exit status: 1 | = note: "cc" "-m64" "/tmp/rustctskYvc/symbols.o" "/home/user/workspace/electrs/target/release/deps/electrs-250752673ee44065.electrs.c1479c00-cgu.2.rcgu.o" "-Wl,--as-needed" "-L" "/home/user/workspace/electrs/target/release/deps" "-L" "/home/user/workspace/electrs/target/release/build/secp256k1-sys-8a2ae04305047b7d/out" "-L" "/home/user/workspace/electrs/target/release/build/electrs-librocksdb-sys-24208f03cab9ae05/out" "-L" "/home/user/workspace/electrs/target/release/build/electrs-librocksdb-sys-24208f03cab9ae05/out" "-L" "/home/user/workspace/electrs/target/release/build/zstd-sys-ca8c6179755e1de5/out" "-L" "/home/user/.rustup/toolchains/1.63.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustctskYvc/libelectrs_librocksdb_sys-b179cfd401e87235.rlib" "/tmp/rustctskYvc/libzstd_sys-9c19834f8389d65a.rlib" "/tmp/rustctskYvc/libsecp256k1_sys-49cb8d62e9ff32a8.rlib" "-Wl,--start-group" "-Wl,--end-group" "/home/user/.rustup/toolchains/1.63.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-c21be34a5cae8449.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/user/.rustup/toolchains/1.63.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/user/workspace/electrs/target/release/deps/electrs-250752673ee44065" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" = note: /usr/bin/ld: cannot find -lstdc++: No such file or directory collect2: error: ld returned 1 exit status ```

System OS name and version: PopOS 22.04 LTS (Ubuntu based) rustc version: 1.63.0 cargo version: 1.63.0

Compilation Linking: static Cross compilation: no Target architecture: x86_64

Additional context N/A

romanz commented 4 days ago

Tried to reproduce, but it seems to work with latest Pop OS 22.04 release:

$ wget https://iso.pop-os.org/22.04/amd64/intel/47/pop-os_22.04_amd64_intel_47.iso
$ sha256sum pop-os_22.04_amd64_intel_47.iso 
fb50ecb10f9c0171484d394c7f74d63951658c894765b4db0f342133354e6a7b  pop-os_22.04_amd64_intel_47.iso
Dependency installation (Rust 1.80 & Clang 14) ``` user@pop-os:~/electrs$ sudo apt install cargo clang Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: binfmt-support clang-14 lib32gcc-s1 lib32stdc++6 libc6-i386 libclang-common-14-dev libclang-cpp14 libclang1-14 libgc1 libllvm14 libncurses-dev libobjc-11-dev libobjc4 libpfm4 libtinfo-dev libz3-4 libz3-dev llvm-14 llvm-14-dev llvm-14-linker-tools llvm-14-runtime llvm-14-tools python3-pygments rustc Suggested packages: clang-14-doc ncurses-doc llvm-14-doc python-pygments-doc ttf-bitstream-vera The following NEW packages will be installed: binfmt-support cargo clang clang-14 lib32gcc-s1 lib32stdc++6 libc6-i386 libclang-common-14-dev libclang-cpp14 libclang1-14 libgc1 libllvm14 libncurses-dev libobjc-11-dev libobjc4 libpfm4 libtinfo-dev libz3-4 libz3-dev llvm-14 llvm-14-dev llvm-14-linker-tools llvm-14-runtime llvm-14-tools python3-pygments rustc 0 upgraded, 26 newly installed, 0 to remove and 57 not upgraded. Need to get 253 MB of archives. After this operation, 1,193 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://apt.pop-os.org/ubuntu jammy/main amd64 binfmt-support amd64 2.2.1-2 [55.8 kB] Get:2 http://apt.pop-os.org/release jammy/main amd64 rustc amd64 1.80.1~1723238629~22.04~9fd5d5f [131 MB] Get:3 http://apt.pop-os.org/release jammy/main amd64 cargo amd64 1.80.1~1723238629~22.04~9fd5d5f [9,469 kB] Get:4 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libllvm14 amd64 1:14.0.0-1ubuntu1.1 [24.0 MB] Get:5 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libclang-cpp14 amd64 1:14.0.0-1ubuntu1.1 [12.1 MB] Get:6 http://apt.pop-os.org/ubuntu jammy/main amd64 libgc1 amd64 1:8.0.6-1.1build1 [96.8 kB] Get:7 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libobjc4 amd64 12.3.0-1ubuntu1~22.04 [48.6 kB] Get:8 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libobjc-11-dev amd64 11.4.0-1ubuntu1~22.04 [196 kB] Get:9 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libc6-i386 amd64 2.35-0ubuntu3.8 [2,838 kB] Get:10 http://apt.pop-os.org/ubuntu jammy-security/main amd64 lib32gcc-s1 amd64 12.3.0-1ubuntu1~22.04 [63.9 kB] Get:11 http://apt.pop-os.org/ubuntu jammy-security/main amd64 lib32stdc++6 amd64 12.3.0-1ubuntu1~22.04 [740 kB] Get:12 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libclang-common-14-dev amd64 1:14.0.0-1ubuntu1.1 [5,975 kB] Get:13 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 llvm-14-linker-tools amd64 1:14.0.0-1ubuntu1.1 [1,355 kB] Get:14 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 libclang1-14 amd64 1:14.0.0-1ubuntu1.1 [6,792 kB] Get:15 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 clang-14 amd64 1:14.0.0-1ubuntu1.1 [81.2 kB] Get:16 http://apt.pop-os.org/ubuntu jammy/universe amd64 clang amd64 1:14.0-55~exp2 [3,558 B] Get:17 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libncurses-dev amd64 6.3-2ubuntu0.1 [381 kB] Get:18 http://apt.pop-os.org/ubuntu jammy-security/main amd64 libtinfo-dev amd64 6.3-2ubuntu0.1 [780 B] Get:19 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 llvm-14-runtime amd64 1:14.0.0-1ubuntu1.1 [484 kB] Get:20 http://apt.pop-os.org/ubuntu jammy-updates/main amd64 libpfm4 amd64 4.11.1+git32-gd0b85fb-1ubuntu0.1 [345 kB] Get:21 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 llvm-14 amd64 1:14.0.0-1ubuntu1.1 [12.7 MB] Get:22 http://apt.pop-os.org/ubuntu jammy-security/main amd64 python3-pygments all 2.11.2+dfsg-2ubuntu0.1 [750 kB] Get:23 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 llvm-14-tools amd64 1:14.0.0-1ubuntu1.1 [404 kB] Get:24 http://apt.pop-os.org/ubuntu jammy/universe amd64 libz3-4 amd64 4.8.12-1 [5,766 kB] Get:25 http://apt.pop-os.org/ubuntu jammy/universe amd64 libz3-dev amd64 4.8.12-1 [72.2 kB] Get:26 http://apt.pop-os.org/ubuntu jammy-security/universe amd64 llvm-14-dev amd64 1:14.0.0-1ubuntu1.1 [37.8 MB] Fetched 253 MB in 8s (29.8 MB/s) Selecting previously unselected package binfmt-support. (Reading database ... 210422 files and directories currently installed.) Preparing to unpack .../00-binfmt-support_2.2.1-2_amd64.deb ... Unpacking binfmt-support (2.2.1-2) ... Selecting previously unselected package rustc. Preparing to unpack .../01-rustc_1.80.1~1723238629~22.04~9fd5d5f_amd64.deb ... Unpacking rustc (1.80.1~1723238629~22.04~9fd5d5f) ... Selecting previously unselected package cargo. Preparing to unpack .../02-cargo_1.80.1~1723238629~22.04~9fd5d5f_amd64.deb ... Unpacking cargo (1.80.1~1723238629~22.04~9fd5d5f) ... Selecting previously unselected package libllvm14:amd64. Preparing to unpack .../03-libllvm14_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking libllvm14:amd64 (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package libclang-cpp14. Preparing to unpack .../04-libclang-cpp14_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking libclang-cpp14 (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package libgc1:amd64. Preparing to unpack .../05-libgc1_1%3a8.0.6-1.1build1_amd64.deb ... Unpacking libgc1:amd64 (1:8.0.6-1.1build1) ... Selecting previously unselected package libobjc4:amd64. Preparing to unpack .../06-libobjc4_12.3.0-1ubuntu1~22.04_amd64.deb ... Unpacking libobjc4:amd64 (12.3.0-1ubuntu1~22.04) ... Selecting previously unselected package libobjc-11-dev:amd64. Preparing to unpack .../07-libobjc-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ... Unpacking libobjc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ... Selecting previously unselected package libc6-i386. Preparing to unpack .../08-libc6-i386_2.35-0ubuntu3.8_amd64.deb ... Unpacking libc6-i386 (2.35-0ubuntu3.8) ... Selecting previously unselected package lib32gcc-s1. Preparing to unpack .../09-lib32gcc-s1_12.3.0-1ubuntu1~22.04_amd64.deb ... Unpacking lib32gcc-s1 (12.3.0-1ubuntu1~22.04) ... Selecting previously unselected package lib32stdc++6. Preparing to unpack .../10-lib32stdc++6_12.3.0-1ubuntu1~22.04_amd64.deb ... Unpacking lib32stdc++6 (12.3.0-1ubuntu1~22.04) ... Selecting previously unselected package libclang-common-14-dev. Preparing to unpack .../11-libclang-common-14-dev_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking libclang-common-14-dev (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package llvm-14-linker-tools. Preparing to unpack .../12-llvm-14-linker-tools_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking llvm-14-linker-tools (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package libclang1-14. Preparing to unpack .../13-libclang1-14_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking libclang1-14 (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package clang-14. Preparing to unpack .../14-clang-14_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking clang-14 (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package clang. Preparing to unpack .../15-clang_1%3a14.0-55~exp2_amd64.deb ... Unpacking clang (1:14.0-55~exp2) ... Selecting previously unselected package libncurses-dev:amd64. Preparing to unpack .../16-libncurses-dev_6.3-2ubuntu0.1_amd64.deb ... Unpacking libncurses-dev:amd64 (6.3-2ubuntu0.1) ... Selecting previously unselected package libtinfo-dev:amd64. Preparing to unpack .../17-libtinfo-dev_6.3-2ubuntu0.1_amd64.deb ... Unpacking libtinfo-dev:amd64 (6.3-2ubuntu0.1) ... Selecting previously unselected package llvm-14-runtime. Preparing to unpack .../18-llvm-14-runtime_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking llvm-14-runtime (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package libpfm4:amd64. Preparing to unpack .../19-libpfm4_4.11.1+git32-gd0b85fb-1ubuntu0.1_amd64.deb ... Unpacking libpfm4:amd64 (4.11.1+git32-gd0b85fb-1ubuntu0.1) ... Selecting previously unselected package llvm-14. Preparing to unpack .../20-llvm-14_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking llvm-14 (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package python3-pygments. Preparing to unpack .../21-python3-pygments_2.11.2+dfsg-2ubuntu0.1_all.deb ... Unpacking python3-pygments (2.11.2+dfsg-2ubuntu0.1) ... Selecting previously unselected package llvm-14-tools. Preparing to unpack .../22-llvm-14-tools_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking llvm-14-tools (1:14.0.0-1ubuntu1.1) ... Selecting previously unselected package libz3-4:amd64. Preparing to unpack .../23-libz3-4_4.8.12-1_amd64.deb ... Unpacking libz3-4:amd64 (4.8.12-1) ... Selecting previously unselected package libz3-dev:amd64. Preparing to unpack .../24-libz3-dev_4.8.12-1_amd64.deb ... Unpacking libz3-dev:amd64 (4.8.12-1) ... Selecting previously unselected package llvm-14-dev. Preparing to unpack .../25-llvm-14-dev_1%3a14.0.0-1ubuntu1.1_amd64.deb ... Unpacking llvm-14-dev (1:14.0.0-1ubuntu1.1) ... Setting up libncurses-dev:amd64 (6.3-2ubuntu0.1) ... Setting up python3-pygments (2.11.2+dfsg-2ubuntu0.1) ... Setting up libz3-4:amd64 (4.8.12-1) ... Setting up libpfm4:amd64 (4.11.1+git32-gd0b85fb-1ubuntu0.1) ... Setting up binfmt-support (2.2.1-2) ... update-binfmts: warning: python3.10 already enabled in kernel. Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service → /lib/systemd/syste m/binfmt-support.service. Setting up libgc1:amd64 (1:8.0.6-1.1build1) ... Setting up libllvm14:amd64 (1:14.0.0-1ubuntu1.1) ... Setting up rustc (1.80.1~1723238629~22.04~9fd5d5f) ... Setting up libc6-i386 (2.35-0ubuntu3.8) ... Setting up llvm-14-linker-tools (1:14.0.0-1ubuntu1.1) ... Setting up llvm-14-tools (1:14.0.0-1ubuntu1.1) ... Setting up libtinfo-dev:amd64 (6.3-2ubuntu0.1) ... Setting up libz3-dev:amd64 (4.8.12-1) ... Setting up libclang1-14 (1:14.0.0-1ubuntu1.1) ... Setting up libobjc4:amd64 (12.3.0-1ubuntu1~22.04) ... Setting up cargo (1.80.1~1723238629~22.04~9fd5d5f) ... Setting up llvm-14-runtime (1:14.0.0-1ubuntu1.1) ... Setting up lib32gcc-s1 (12.3.0-1ubuntu1~22.04) ... Setting up lib32stdc++6 (12.3.0-1ubuntu1~22.04) ... Setting up libclang-common-14-dev (1:14.0.0-1ubuntu1.1) ... Setting up libclang-cpp14 (1:14.0.0-1ubuntu1.1) ... Setting up llvm-14 (1:14.0.0-1ubuntu1.1) ... Setting up libobjc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ... Setting up llvm-14-dev (1:14.0.0-1ubuntu1.1) ... Setting up clang-14 (1:14.0.0-1ubuntu1.1) ... Setting up clang (1:14.0-55~exp2) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for libc-bin (2.35-0ubuntu3.8) ... ```
Build log ``` user@pop-os:~/electrs$ cargo build Updating crates.io index Downloaded autocfg v1.1.0 Downloaded base58ck v0.1.0 Downloaded sha2 v0.10.8 Downloaded bitcoin-io v0.1.2 Downloaded ascii v1.1.0 Downloaded arrayvec v0.7.4 Downloaded bitcoin-internals v0.3.0 Downloaded termcolor v1.4.1 Downloaded hex_lit v0.1.1 Downloaded fmt2io v1.0.0 Downloaded void v1.0.2 Downloaded peeking_take_while v0.1.2 Downloaded parse_arg v0.1.4 Downloaded chunked_transfer v1.5.0 Downloaded block-buffer v0.10.4 Downloaded bitflags v1.3.2 Downloaded bitcoincore-rpc-json v0.19.0 Downloaded toml_datetime v0.6.1 Downloaded thiserror v1.0.55 Downloaded cfg-if v1.0.0 Downloaded signal-hook-registry v1.4.1 Downloaded is-terminal v0.4.9 Downloaded lazycell v1.3.0 Downloaded jobserver v0.1.26 Downloaded pkg-config v0.3.28 Downloaded scopeguard v1.2.0 Downloaded serde_spanned v0.6.1 Downloaded shlex v1.3.0 Downloaded smallvec v1.13.1 Downloaded toml v0.5.11 Downloaded unicode-ident v1.0.12 Downloaded signal-hook v0.3.17 Downloaded quote v1.0.33 Downloaded rand_core v0.6.4 Downloaded unicode-segmentation v1.10.1 Downloaded toml_edit v0.19.1 Downloaded serde_derive v1.0.171 Downloaded syn v1.0.109 Downloaded serde_json v1.0.109 Downloaded regex v1.9.6 Downloaded zstd-sys v2.0.8+zstd.1.5.5 Downloaded rustix v0.38.40 Downloaded regex-syntax v0.7.5 Downloaded bitcoin v0.32.4 Downloaded rayon v1.10.0 Downloaded protobuf v2.28.0 Downloaded nom8 v0.2.0 Downloaded vcpkg v0.2.15 Downloaded syn v2.0.42 Downloaded serde v1.0.171 Downloaded secp256k1 v0.29.0 Downloaded rayon-core v1.12.1 Downloaded rand v0.8.5 Downloaded prometheus v0.13.3 Downloaded regex-automata v0.3.9 Downloaded bzip2-sys v0.1.11+1.0.8 Downloaded nom v7.1.3 Downloaded minimal-lexical v0.2.1 Downloaded memchr v2.6.4 Downloaded crossbeam-channel v0.5.13 Downloaded libc v0.2.162 Downloaded cc v1.0.83 Downloaded bindgen v0.63.0 Downloaded aho-corasick v1.1.2 Downloaded indexmap v1.9.3 Downloaded hashbrown v0.12.3 Downloaded ryu v1.0.16 Downloaded minreq v2.11.2 Downloaded proc-macro2 v1.0.71 Downloaded parking_lot v0.12.1 Downloaded log v0.4.22 Downloaded crossbeam-utils v0.8.18 Downloaded crossbeam-epoch v0.9.16 Downloaded clang-sys v1.6.1 Downloaded bitflags v2.4.1 Downloaded bech32 v0.11.0 Downloaded tiny_http v0.12.0 Downloaded typenum v1.17.0 Downloaded toml v0.7.1 Downloaded ppv-lite86 v0.2.17 Downloaded parking_lot_core v0.9.9 Downloaded lock_api v0.4.11 Downloaded libloading v0.7.4 Downloaded itoa v1.0.10 Downloaded getrandom v0.2.11 Downloaded env_logger v0.10.2 Downloaded jsonrpc v0.18.0 Downloaded crypto-common v0.1.6 Downloaded bitcoin_hashes v0.14.0 Downloaded rustc-hash v1.1.0 Downloaded rand_chacha v0.3.1 Downloaded cargo_toml v0.15.0 Downloaded bitcoin_slices v0.9.0 Downloaded memoffset v0.9.0 Downloaded lazy_static v1.4.0 Downloaded linux-raw-sys v0.4.14 Downloaded humantime v2.1.0 Downloaded httpdate v1.0.3 Downloaded hex-conservative v0.2.0 Downloaded fnv v1.0.7 Downloaded errno v0.3.8 Downloaded generic-array v0.14.7 Downloaded either v1.9.0 Downloaded dirs-sys-next v0.1.2 Downloaded dirs-next v2.0.0 Downloaded secp256k1-sys v0.10.0 Downloaded digest v0.10.7 Downloaded version_check v0.9.4 Downloaded thiserror-impl v1.0.55 Downloaded libz-sys v1.1.12 Downloaded glob v0.3.1 Downloaded crossbeam-deque v0.8.4 Downloaded cpufeatures v0.2.11 Downloaded cexpr v0.6.0 Downloaded bitcoin-units v0.1.1 Downloaded base64 v0.13.1 Downloaded anyhow v1.0.80 Downloaded bitcoincore-rpc v0.19.0 Downloaded electrs-rocksdb v0.19.0-e3 Downloaded configure_me_codegen v0.4.8 Downloaded configure_me v0.4.0 Downloaded electrs-librocksdb-sys v0.9.0-e3+7.8.3 Downloaded 122 crates (20.3 MB) in 2.16s (largest was `electrs-librocksdb-sys` at 3.5 MB) Compiling proc-macro2 v1.0.71 Compiling unicode-ident v1.0.12 Compiling libc v0.2.162 Compiling cfg-if v1.0.0 Compiling autocfg v1.1.0 Compiling serde v1.0.171 Compiling memchr v2.6.4 Compiling glob v0.3.1 Compiling quote v1.0.33 Compiling jobserver v0.1.26 Compiling getrandom v0.2.11 Compiling clang-sys v1.6.1 Compiling syn v2.0.42 Compiling cc v1.0.83 Compiling indexmap v1.9.3 Compiling typenum v1.17.0 Compiling version_check v0.9.4 Compiling bitcoin-internals v0.3.0 Compiling arrayvec v0.7.4 Compiling hex-conservative v0.2.0 Compiling generic-array v0.14.7 Compiling rand_core v0.6.4 Compiling secp256k1-sys v0.10.0 Compiling syn v1.0.109 Compiling ppv-lite86 v0.2.17 Compiling crossbeam-utils v0.8.18 Compiling minimal-lexical v0.2.1 Compiling regex-syntax v0.7.5 Compiling hashbrown v0.12.3 Compiling bitcoin-io v0.1.2 Compiling nom v7.1.3 Compiling serde_derive v1.0.171 Compiling rand_chacha v0.3.1 Compiling regex-automata v0.3.9 Compiling nom8 v0.2.0 Compiling memoffset v0.9.0 Compiling libloading v0.7.4 Compiling hex_lit v0.1.1 Compiling bindgen v0.63.0 Compiling lazy_static v1.4.0 Compiling serde_json v1.0.109 Compiling pkg-config v0.3.28 Compiling regex v1.9.6 Compiling zstd-sys v2.0.8+zstd.1.5.5 Compiling cexpr v0.6.0 Compiling serde_spanned v0.6.1 Compiling bitcoin_hashes v0.14.0 Compiling toml_datetime v0.6.1 Compiling toml_edit v0.19.1 Compiling rand v0.8.5 Compiling lazycell v1.3.0 Compiling shlex v1.3.0 Compiling bitflags v1.3.2 Compiling itoa v1.0.10 Compiling ryu v1.0.16 Compiling log v0.4.22 Compiling bitcoin v0.32.4 Compiling rustc-hash v1.1.0 Compiling peeking_take_while v0.1.2 Compiling toml v0.7.1 Compiling base58ck v0.1.0 Compiling bitcoin-units v0.1.1 Compiling lock_api v0.4.11 Compiling minreq v2.11.2 Compiling configure_me_codegen v0.4.8 Compiling parking_lot_core v0.9.9 Compiling rustix v0.38.40 Compiling bech32 v0.11.0 Compiling crossbeam-epoch v0.9.16 Compiling cargo_toml v0.15.0 Compiling aho-corasick v1.1.2 Compiling toml v0.5.11 Compiling block-buffer v0.10.4 Compiling crypto-common v0.1.6 Compiling bitflags v2.4.1 Compiling linux-raw-sys v0.4.14 Compiling rayon-core v1.12.1 Compiling thiserror v1.0.55 Compiling fmt2io v1.0.0 Compiling unicode-segmentation v1.10.1 Compiling scopeguard v1.2.0 Compiling void v1.0.2 Compiling smallvec v1.13.1 Compiling protobuf v2.28.0 Compiling electrs-librocksdb-sys v0.9.0-e3+7.8.3 Compiling digest v0.10.7 Compiling crossbeam-deque v0.8.4 Compiling thiserror-impl v1.0.55 Compiling cpufeatures v0.2.11 Compiling signal-hook v0.3.17 Compiling base64 v0.13.1 Compiling prometheus v0.13.3 Compiling anyhow v1.0.80 Compiling jsonrpc v0.18.0 Compiling sha2 v0.10.8 Compiling electrs v0.10.7 (/home/user/electrs) Compiling is-terminal v0.4.9 Compiling parking_lot v0.12.1 Compiling signal-hook-registry v1.4.1 Compiling dirs-sys-next v0.1.2 Compiling fnv v1.0.7 Compiling ascii v1.1.0 Compiling httpdate v1.0.3 Compiling chunked_transfer v1.5.0 Compiling humantime v2.1.0 Compiling parse_arg v0.1.4 Compiling termcolor v1.4.1 Compiling either v1.9.0 Compiling rayon v1.10.0 Compiling env_logger v0.10.2 Compiling configure_me v0.4.0 Compiling tiny_http v0.12.0 Compiling dirs-next v2.0.0 Compiling crossbeam-channel v0.5.13 Compiling secp256k1 v0.29.0 Compiling bitcoincore-rpc-json v0.19.0 Compiling bitcoin_slices v0.9.0 Compiling bitcoincore-rpc v0.19.0 Compiling electrs-rocksdb v0.19.0-e3 warning: unused imports: `Config` and `ResultExt` --> /home/user/electrs/target/debug/build/electrs-082b0c2496d8feee/out/configure_me_config.rs:2:21 | 2 | pub use super::{Config, ResultExt}; | ^^^^^^ ^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: `electrs` (lib) generated 1 warning (run `cargo fix --lib -p electrs` to apply 1 suggestion) Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 31s ```
romanz commented 4 days ago

Also works with Rust 1.63 (via rustup):

user@pop-os:~/electrs$ rustc --version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
user@pop-os:~/electrs$ cargo --version
cargo 1.63.0 (fd9c4297c 2022-07-01)