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] Getting error while building: failed to run custom build command for openssl-sys v0.9.60 #10387

Open
anupam-io opened this issue Aug 26, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@anupam-io
Copy link

🐛 Bug

To reproduce

Code snippet to reproduce
Build Diem CLI client and connect to the testnet not working properly in Ubuntu. I thought there is an issue with my Linux version, but I installed fresh ubuntu, and the issue still persists.

Stack trace/error message

sam@sam:~/diem$ ./scripts/cli/start_cli_testnet.sh
Building and running client in debug mode.
    Updating git repository `https://github.com/diem/diem-devtools`
  Downloaded ahash v0.3.8
  Downloaded rand_xoshiro v0.4.0
  Downloaded untrusted v0.7.1
  Downloaded maplit v1.0.2
  Downloaded indexmap v1.7.0
  Downloaded arrayvec v0.5.2
  Downloaded tracing-futures v0.2.5
  Downloaded ucd-trie v0.1.3
  Downloaded unicode-width v0.1.8
  Downloaded version_check v0.9.2
  Downloaded itoa v0.4.7
  Downloaded httpdate v1.0.1
  Downloaded ureq v1.5.4
  Downloaded include_dir_impl v0.6.0
  Downloaded bitmaps v2.1.0
  Downloaded idna v0.2.2
  Downloaded quick-error v2.0.0
  Downloaded chunked_transfer v1.4.0
  Downloaded bstr v0.2.15
  Downloaded linked-hash-map v0.5.4
  Downloaded tracing-serde v0.1.2
  Downloaded log v0.4.14
  Downloaded colored v2.0.0
  Downloaded walkdir v2.3.1
  Downloaded unic-common v0.9.0
  Downloaded codespan-reporting v0.11.1
  Downloaded crossbeam-epoch v0.9.3
  Downloaded tungstenite v0.12.0
  Downloaded dirs-next v2.0.0
  Downloaded fixedbitset v0.2.0
  Downloaded dashmap v3.11.10
  Downloaded fake-simd v0.1.2
  Downloaded webpki v0.21.4
  Downloaded include_dir v0.6.0
  Downloaded instant v0.1.10
  Downloaded jobserver v0.1.21
  Downloaded anyhow v1.0.40
  Downloaded memoffset v0.6.1
  Downloaded ed25519 v1.0.3
  Downloaded memchr v2.4.0
  Downloaded unicode-xid v0.2.2
  Downloaded matchers v0.0.1
  Downloaded unicode-bidi v0.3.4
  Downloaded erased-serde v0.3.13
  Downloaded tungstenite v0.13.0
  Downloaded tracing-subscriber v0.2.18
  Downloaded headers-core v0.2.0
  Downloaded hyper v0.14.11
  Downloaded ipnet v2.3.0
  Downloaded url v2.2.2
  Downloaded h2 v0.3.3
  Downloaded unicode-normalization v0.1.17
  Downloaded want v0.3.0
  Downloaded unic-char-range v0.9.0
  Downloaded matches v0.1.8
  Downloaded match_cfg v0.1.0
  Downloaded bitflags v1.2.1
  Downloaded async-trait v0.1.48
  Downloaded utf-8 v0.7.5
  Downloaded unic-char-property v0.9.0
  Downloaded block-buffer v0.7.3
  Downloaded unic-ucd-segment v0.9.0
  Downloaded unicase v2.6.0
  Downloaded zeroize v1.2.0
  Downloaded warp v0.3.0
  Downloaded yaml-rust v0.4.5
  Downloaded base64ct v0.2.1
  Downloaded backtrace v0.3.56
  Downloaded bincode v1.3.3
  Downloaded bit-set v0.5.2
  Downloaded bcs v0.1.2
  Downloaded bit-vec v0.6.3
  Downloaded adler v1.0.2
  Downloaded variant_count v1.1.0
  Downloaded base64 v0.13.0
  Downloaded hyper-tls v0.5.0
  Downloaded aes-gcm v0.8.0
  Downloaded block-padding v0.2.1
  Downloaded block-padding v0.1.5
  Downloaded keccak v0.1.0
  Downloaded block-buffer v0.9.0
  Downloaded lock_api v0.4.4
  Downloaded hmac v0.10.1
  Downloaded parking_lot v0.11.1
  Downloaded mime_guess v2.0.3
  Downloaded miniz_oxide v0.4.4
  Downloaded ref-cast v1.0.6
  Downloaded ref-cast-impl v1.0.6
  Downloaded rayon-core v1.9.0
  Downloaded ouroboros v0.9.3
  Downloaded hostname v0.3.1
  Downloaded mime v0.3.16
  Downloaded itertools v0.10.0
  Downloaded hkdf v0.10.0
  Downloaded ignore v0.4.17
  Downloaded openssl-sys v0.9.60
  Downloaded rustyline v8.0.0
  Downloaded mio v0.7.13
  Downloaded rayon v1.5.0
  Downloaded subtle v2.4.0
  Downloaded vec_map v0.8.2
  Downloaded tokio-rustls v0.22.0
  Downloaded tiny-keccak v2.0.2
  Downloaded serde-generate v0.19.1
  Downloaded typenum v1.12.0
  Downloaded syn v0.15.44
  Downloaded serde_json v1.0.64
  Downloaded ouroboros_macro v0.9.3
  Downloaded scoped-tls v1.0.0
  Downloaded twoway v0.1.8
  Downloaded ansi_term v0.12.1
  Downloaded wait-timeout v0.2.0
  Downloaded autocfg v1.0.1
  Downloaded thread_local v1.1.3
  Downloaded rusty-fork v0.3.0
  Downloaded pkg-config v0.3.19
  Downloaded get_if_addrs v0.5.3
  Downloaded polyval v0.4.5
  Downloaded const-random v0.1.13
  Downloaded qstring v0.7.2
  Downloaded prometheus v0.12.0
  Downloaded sha-1 v0.9.4
  Downloaded scopeguard v1.1.0
  Downloaded rand_core v0.6.2
  Downloaded sharded-slab v0.1.1
  Downloaded signature v1.3.0
  Downloaded native-tls v0.2.7
  Downloaded rand_xorshift v0.3.0
  Downloaded synstructure v0.12.4
  Downloaded socket2 v0.4.1
  Downloaded safemem v0.3.3
  Downloaded byteorder v1.4.3
  Downloaded proc-macro2 v0.4.30
  Downloaded prost v0.8.0
  Downloaded pest_generator v2.1.3
  Downloaded once_cell v1.8.0
  Downloaded proc-macro-error v1.0.4
  Downloaded proc-macro-hack v0.5.19
  Downloaded tokio-native-tls v0.3.0
  Downloaded standback v0.2.15
  Downloaded num-rational v0.4.0
  Downloaded num v0.4.0
  Downloaded num-traits v0.2.14
  Downloaded password-hash v0.1.1
  Downloaded plotters-backend v0.3.0
  Downloaded serde v1.0.127
  Downloaded regex v1.4.3
  Downloaded serde_urlencoded v0.7.0
  Downloaded aead v0.3.2
  Downloaded rustls v0.19.0
  Downloaded tokio-tungstenite v0.14.0
  Downloaded globwalk v0.8.1
  Downloaded serde_yaml v0.8.17
  Downloaded openssl-probe v0.1.2
  Downloaded multipart v0.17.1
  Downloaded textwrap v0.13.4
  Downloaded remove_dir_all v0.5.3
  Downloaded pretty v0.10.0
  Downloaded opaque-debug v0.2.3
  Downloaded pin-project-lite v0.2.7
  Downloaded num-bigint v0.4.0
  Downloaded structopt v0.3.21
  Downloaded libc v0.2.99
  Downloaded tinyvec v1.1.1
  Downloaded percent-encoding v2.1.0
  Downloaded num_cpus v1.13.0
  Downloaded pin-project-internal v1.0.8
  Downloaded ppv-lite86 v0.2.10
  Downloaded tower-service v0.3.1
  Downloaded prost-derive v0.8.0
  Downloaded ryu v1.0.5
  Downloaded termcolor v1.1.2
  Downloaded fnv v1.0.7
  Downloaded sized-chunks v0.6.5
  Downloaded object v0.23.0
  Downloaded mirai-annotations v1.10.1
  Downloaded hashbrown v0.11.2
  Downloaded quick-error v1.2.3
  Downloaded futures-macro v0.3.16
  Downloaded parking_lot_core v0.8.3
  Downloaded pbkdf2 v0.7.3
  Downloaded nix v0.20.0
  Downloaded num-integer v0.1.44
  Downloaded slug v0.1.4
  Downloaded tokio-stream v0.1.4
  Downloaded parse-zoneinfo v0.3.0
  Downloaded pest v2.1.3
  Downloaded thiserror v1.0.24
  Downloaded clap v2.33.3
  Downloaded serde-name v0.1.1
  Downloaded proptest-derive v0.3.0
  Downloaded opaque-debug v0.3.0
  Downloaded bytes v1.0.1
  Downloaded spin v0.5.2
  Downloaded sha-1 v0.8.2
  Downloaded plotters-svg v0.3.0
  Downloaded nibble_vec v0.1.0
  Downloaded tokio-util v0.6.7
  Downloaded difference v2.0.0
  Downloaded reqwest v0.11.2
  Downloaded quote v0.6.13
  Downloaded ansi_term v0.11.0
  Downloaded enum_dispatch v0.3.5
  Downloaded crypto-mac v0.10.0
  Downloaded ed25519-dalek-fiat v0.1.0
  Downloaded sha3 v0.9.1
  Downloaded chrono v0.4.19
  Downloaded rand_chacha v0.2.2
  Downloaded rand v0.8.3
  Downloaded lazy_static v1.4.0
  Downloaded serde-reflection v0.3.2
  Downloaded signal-hook-registry v1.4.0
  Downloaded radix_trie v0.2.1
  Downloaded futures-core v0.3.16
  Downloaded getrandom v0.2.2
  Downloaded futures-task v0.3.16
  Downloaded num-complex v0.4.0
  Downloaded textwrap v0.11.0
  Downloaded byte-tools v0.3.1
  Downloaded headers v0.3.4
  Downloaded cc v1.0.67
  Downloaded rand_chacha v0.3.0
  Downloaded futures v0.3.12
  Downloaded http-body v0.4.3
  Downloaded generic-array v0.12.4
  Downloaded futures-util v0.3.16
  Downloaded crunchy v0.2.2
  Downloaded dirs-sys-next v0.1.2
  Downloaded crossbeam-utils v0.8.3
  Downloaded digest v0.9.0
  Downloaded openssl v0.10.32
  Downloaded dtoa v0.4.7
  Downloaded crossbeam-channel v0.5.1
  Downloaded form_urlencoded v1.0.1
  Downloaded endian-type v0.1.2
  Downloaded regex-automata v0.1.9
  Downloaded futures-channel v0.3.16
  Downloaded futures-sink v0.3.16
  Downloaded futures-io v0.3.16
  Downloaded futures-executor v0.3.12
  Downloaded either v1.6.1
  Downloaded cpuid-bool v0.1.2
  Downloaded syn v1.0.74
  Downloaded ctr v0.6.0
  Downloaded toml v0.5.8
  Downloaded tinyvec_macros v0.1.0
  Downloaded proc-macro-nested v0.1.7
  Downloaded pin-utils v0.1.0
  Downloaded serde_derive v1.0.127
  Downloaded serde_bytes v0.11.5
  Downloaded tempfile v3.2.0
  Downloaded tracing-attributes v0.1.15
  Downloaded slab v0.4.4
  Downloaded fail v0.4.0
  Downloaded generic-array v0.14.4
  Downloaded getrandom v0.1.16
  Downloaded im v15.0.0
  Downloaded structopt-derive v0.4.14
  Downloaded globset v0.4.6
  Downloaded hex v0.4.3
  Downloaded httparse v1.4.1
  Downloaded zeroize_derive v1.0.1
  Downloaded proptest v1.0.0
  Downloaded smawk v0.3.1
  Downloaded thiserror-impl v1.0.24
  Downloaded rustc-demangle v0.1.18
  Downloaded num-derive v0.3.3
  Downloaded internment v0.5.0
  Downloaded tokio-macros v1.3.0
  Downloaded stable_deref_trait v1.2.0
  Downloaded num-iter v0.1.42
  Downloaded heck v0.3.2
  Downloaded smallvec v1.6.1
  Downloaded sha2 v0.9.3
  Downloaded same-file v1.0.6
  Downloaded tokio-tungstenite v0.13.0
  Downloaded hashbrown v0.9.1
  Downloaded http v0.2.4
  Downloaded regex-syntax v0.6.23
  Downloaded tokio v1.9.0
  Downloaded fiat-crypto v0.1.6
  Downloaded foreign-types v0.3.2
  Downloaded digest v0.8.1
  Downloaded rand_core v0.5.1
  Downloaded fs2 v0.4.3
  Downloaded cfg-if v0.1.10
  Downloaded glob v0.3.0
  Downloaded const-random-macro v0.1.13
  Downloaded deunicode v0.4.3
  Downloaded cpuid-bool v0.2.0
  Downloaded Inflector v0.11.4
  Downloaded addr2line v0.14.1
  Downloaded aes v0.6.0
  Downloaded crossbeam-deque v0.8.0
  Downloaded cfg-if v1.0.0
  Downloaded aho-corasick v0.7.15
  Downloaded cipher v0.2.5
  Downloaded quote v1.0.9
  Downloaded rand v0.7.3
  Downloaded ahash v0.4.7
  Downloaded aes-soft v0.6.4
  Downloaded typed-arena v2.0.1
  Downloaded buf_redux v0.8.4
  Downloaded tracing-log v0.1.2
  Downloaded universal-hash v0.4.0
  Downloaded utf8parse v0.2.0
  Downloaded try-lock v0.2.3
  Downloaded unicode-segmentation v1.7.1
  Downloaded tracing-core v0.1.18
  Downloaded unic-segment v0.9.0
  Downloaded unicode-xid v0.1.0
  Downloaded unic-ucd-version v0.9.0
  Downloaded humansize v1.1.0
  Downloaded ghash v0.3.1
  Downloaded codespan v0.11.1
  Downloaded c_linked_list v1.1.1
  Downloaded x25519-dalek-fiat v0.1.0
  Downloaded foreign-types-shared v0.1.1
  Downloaded pin-project v1.0.8
  Downloaded proc-macro2 v1.0.28
  Downloaded tracing v0.1.26
  Downloaded input_buffer v0.4.0
  Downloaded rust_decimal v1.10.3
  Downloaded petgraph v0.5.1
  Downloaded sct v0.6.0
  Downloaded pest_derive v2.1.0
  Downloaded pest_meta v2.1.3
  Downloaded tera v1.7.1
  Downloaded simplelog v0.9.0
  Downloaded static_assertions v1.1.0
  Downloaded plotters v0.3.0
  Downloaded curve25519-dalek-fiat v0.1.0
  Downloaded chrono-tz v0.5.3
  Downloaded gimli v0.23.0
  Downloaded encoding_rs v0.8.28
  Downloaded ring v0.16.20
  Downloaded 336 crates (29.0 MB) in 43.37s (largest was `ring` at 5.1 MB)
   Compiling proc-macro2 v1.0.28
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.74
   Compiling libc v0.2.99
   Compiling autocfg v1.0.1
   Compiling cfg-if v1.0.0
   Compiling serde_derive v1.0.127
   Compiling serde v1.0.127
   Compiling version_check v0.9.2
   Compiling lazy_static v1.4.0
   Compiling once_cell v1.8.0
   Compiling memchr v2.4.0
   Compiling typenum v1.12.0
   Compiling log v0.4.14
   Compiling getrandom v0.2.2
   Compiling fnv v1.0.7
   Compiling bitflags v1.2.1
   Compiling itoa v0.4.7
   Compiling proc-macro-hack v0.5.19
   Compiling byteorder v1.4.3
   Compiling regex-syntax v0.6.23
   Compiling ppv-lite86 v0.2.10
   Compiling opaque-debug v0.3.0
   Compiling scopeguard v1.1.0
   Compiling smallvec v1.6.1
   Compiling pin-project-lite v0.2.7
   Compiling block-padding v0.2.1
   Compiling futures-core v0.3.16
   Compiling subtle v2.4.0
   Compiling cpuid-bool v0.1.2
   Compiling hashbrown v0.11.2
   Compiling adler v1.0.2
   Compiling gimli v0.23.0
   Compiling futures-sink v0.3.16
   Compiling ryu v1.0.5
   Compiling rustc-demangle v0.1.18
   Compiling proc-macro-nested v0.1.7
   Compiling futures-channel v0.3.16
   Compiling percent-encoding v2.1.0
   Compiling futures-task v0.3.16
   Compiling anyhow v1.0.40
   Compiling matches v0.1.8
   Compiling crunchy v0.2.2
   Compiling object v0.23.0
   Compiling tiny-keccak v2.0.2
   Compiling pkg-config v0.3.19
   Compiling tinyvec_macros v0.1.0
   Compiling httparse v1.4.1
   Compiling futures-io v0.3.16
   Compiling base64 v0.13.0
   Compiling slab v0.4.4
   Compiling serde_json v1.0.64
   Compiling pin-utils v0.1.0
   Compiling proc-macro2 v0.4.30
   Compiling remove_dir_all v0.5.3
   Compiling getrandom v0.1.16
   Compiling quick-error v1.2.3
   Compiling unicode-xid v0.1.0
   Compiling unicode-width v0.1.8
   Compiling syn v0.15.44
   Compiling either v1.6.1
   Compiling openssl v0.10.32
   Compiling foreign-types-shared v0.1.1
   Compiling native-tls v0.2.7
   Compiling utf-8 v0.7.5
   Compiling openssl-probe v0.1.2
   Compiling spin v0.5.2
   Compiling mime v0.3.16
   Compiling untrusted v0.7.1
   Compiling try-lock v0.2.3
   Compiling httpdate v1.0.1
   Compiling tower-service v0.3.1
   Compiling encoding_rs v0.8.28
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.2
   Compiling safemem v0.3.3
   Compiling strsim v0.8.0
   Compiling termcolor v1.1.2
   Compiling ipnet v2.3.0
   Compiling plotters-backend v0.3.0
   Compiling scoped-tls v1.0.0
   Compiling fixedbitset v0.2.0
   Compiling mirai-annotations v1.10.1
   Compiling hex v0.4.3
   Compiling ref-cast v1.0.6
   Compiling fiat-crypto v0.1.6
   Compiling signature v1.3.0
   Compiling unicode-segmentation v1.7.1
   Compiling same-file v1.0.6
   Compiling cpuid-bool v0.2.0
   Compiling bit-vec v0.6.3
   Compiling difference v2.0.0
   Compiling static_assertions v1.1.0
   Compiling quick-error v2.0.0
   Compiling stable_deref_trait v1.2.0
   Compiling cfg-if v0.1.10
   Compiling ahash v0.4.7
   Compiling keccak v0.1.0
   Compiling maplit v1.0.2
   Compiling prometheus v0.12.0
   Compiling ucd-trie v0.1.3
   Compiling unic-common v0.9.0
   Compiling unic-char-range v0.9.0
   Compiling match_cfg v0.1.0
   Compiling ansi_term v0.12.1
   Compiling chunked_transfer v1.4.0
   Compiling async-trait v0.1.48
   Compiling linked-hash-map v0.5.4
   Compiling arrayvec v0.5.2
   Compiling deunicode v0.4.3
   Compiling glob v0.3.0
   Compiling typed-arena v2.0.1
   Compiling humansize v1.1.0
   Compiling dtoa v0.4.7
   Compiling rayon-core v1.9.0
   Compiling smawk v0.3.1
   Compiling base64ct v0.2.1
   Compiling endian-type v0.1.2
   Compiling diem-global-constants v0.1.0 (/home/sam/diem/config/global-constants)
   Compiling diem-metrics v0.1.0 (/home/sam/diem/common/metrics)
   Compiling c_linked_list v1.1.1
   Compiling utf8parse v0.2.0
   Compiling instant v0.1.10
   Compiling tracing-core v0.1.18
   Compiling sharded-slab v0.1.1
   Compiling thread_local v1.1.3
   Compiling lock_api v0.4.4
   Compiling generic-array v0.14.4
   Compiling unicase v2.6.0
   Compiling standback v0.2.15
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling im v15.0.0
   Compiling num-traits v0.2.14
   Compiling indexmap v1.7.0
   Compiling num-integer v0.1.44
   Compiling miniz_oxide v0.4.4
   Compiling tokio v1.9.0
   Compiling futures-macro v0.3.16
   Compiling futures-util v0.3.16
   Compiling crossbeam-utils v0.8.3
   Compiling memoffset v0.6.1
   Compiling num-bigint v0.4.0
   Compiling num-rational v0.4.0
   Compiling num-iter v0.1.42
   Compiling rayon v1.5.0
   Compiling nibble_vec v0.1.0
   Compiling unicode-bidi v0.3.4
   Compiling form_urlencoded v1.0.1
   Compiling qstring v0.7.2
   Compiling tinyvec v1.1.1
   Compiling textwrap v0.11.0
   Compiling itertools v0.10.0
   Compiling foreign-types v0.3.2
   Compiling plotters-svg v0.3.0
   Compiling walkdir v2.3.1
   Compiling bit-set v0.5.2
   Compiling regex-automata v0.1.9
   Compiling hashbrown v0.9.1
   Compiling heck v0.3.2
   Compiling unic-ucd-version v0.9.0
   Compiling pest v2.1.3
   Compiling unic-char-property v0.9.0
   Compiling addr2line v0.14.1
   Compiling yaml-rust v0.4.5
   Compiling slug v0.1.4
   Compiling pretty v0.10.0
   Compiling textwrap v0.13.4
   Compiling radix_trie v0.2.1
   Compiling unic-ucd-segment v0.9.0
   Compiling unicode-normalization v0.1.17
   Compiling matchers v0.0.1
   Compiling quote v1.0.9
   Compiling aho-corasick v0.7.15
   Compiling twoway v0.1.8
   Compiling buf_redux v0.8.4
   Compiling pest_meta v2.1.3
   Compiling quote v0.6.13
   Compiling bitmaps v2.1.0
   Compiling unic-segment v0.9.0
   Compiling jobserver v0.1.21
   Compiling num_cpus v1.13.0
   Compiling parking_lot_core v0.8.3
   Compiling signal-hook-registry v1.4.0
   Compiling time v0.1.44
   Compiling wait-timeout v0.2.0
   Compiling socket2 v0.4.1
   Compiling atty v0.2.14
   Compiling hostname v0.3.1
   Compiling dirs-sys-next v0.1.2
   Compiling nix v0.20.0
   Compiling get_if_addrs v0.5.3
   Compiling fs2 v0.4.3
   Compiling mime_guess v2.0.3
   Compiling petgraph v0.5.1
   Compiling idna v0.2.2
   Compiling crossbeam-epoch v0.9.3
   Compiling crossbeam-channel v0.5.1
   Compiling regex v1.4.3
   Compiling rand_core v0.6.2
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling cipher v0.2.5
   Compiling universal-hash v0.4.0
   Compiling crypto-mac v0.10.0
   Compiling aead v0.3.2
   Compiling const-random-macro v0.1.13
   Compiling cc v1.0.67
   Compiling plotters v0.3.0
   Compiling num-complex v0.4.0
   Compiling parking_lot v0.11.1
   Compiling rand_core v0.5.1
   Compiling clap v2.33.3
   Compiling colored v2.0.0
   Compiling dirs-next v2.0.0
   Compiling crossbeam-deque v0.8.0
   Compiling url v2.2.2
   Compiling rand_chacha v0.3.0
   Compiling rand_xorshift v0.3.0
   Compiling password-hash v0.1.1
   Compiling sha-1 v0.9.4
   Compiling sha2 v0.9.3
   Compiling sha3 v0.9.1
   Compiling polyval v0.4.5
   Compiling hmac v0.10.1
   Compiling aes-soft v0.6.4
   Compiling ctr v0.6.0
   Compiling rand_chacha v0.2.2
   Compiling rand_xoshiro v0.4.0
   Compiling sized-chunks v0.6.5
   Compiling Inflector v0.11.4
   Compiling parse-zoneinfo v0.3.0
   Compiling const-random v0.1.13
   Compiling rand v0.8.3
   Compiling ghash v0.3.1
   Compiling hkdf v0.10.0
   Compiling pbkdf2 v0.7.3
   Compiling openssl-sys v0.9.60
   Compiling ring v0.16.20
   Compiling aes v0.6.0
   Compiling rand v0.7.3
   Compiling ahash v0.3.8
   Compiling synstructure v0.12.4
   Compiling pest_generator v2.1.3
   Compiling tempfile v3.2.0
   Compiling aes-gcm v0.8.0
   Compiling dashmap v3.11.10
The following warnings were emitted during compilation:

warning: build/expando.c:4:24: error: pasting "RUST_VERSION_OPENSSL_" and "(" does not give a valid preprocessing token
warning:     4 | #define VERSION2(n, v) RUST_VERSION_##n##_##v
warning:       |                        ^~~~~~~~~~~~~
warning: build/expando.c:5:23: note: in expansion of macro ‘VERSION2’
warning:     5 | #define VERSION(n, v) VERSION2(n, v)
warning:       |                       ^~~~~~~~
warning: build/expando.c:10:1: note: in expansion of macro ‘VERSION’
warning:    10 | VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
warning:       | ^~~~~~~

error: failed to run custom build command for `openssl-sys v0.9.60`

Caused by:
  process didn't exit successfully: `/home/sam/diem/target/debug/build/openssl-sys-c41cc9686eac1328/build-script-main` (exit code: 101)
  --- stdout
  cargo:rustc-cfg=const_fn
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
  OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
  OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_DIR
  OPENSSL_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=SYSROOT
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rustc-link-lib=ssl
  cargo:rustc-link-lib=crypto
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  OPT_LEVEL = Some("0")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  CC_x86_64-unknown-linux-gnu = None
  CC_x86_64_unknown_linux_gnu = None
  HOST_CC = None
  CC = None
  CFLAGS_x86_64-unknown-linux-gnu = None
  CFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CFLAGS = None
  CFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/usr/include" "-Wall" "-Wextra" "-E" "build/expando.c"
  cargo:warning=build/expando.c:4:24: error: pasting "RUST_VERSION_OPENSSL_" and "(" does not give a valid preprocessing token
  cargo:warning=    4 | #define VERSION2(n, v) RUST_VERSION_##n##_##v
  cargo:warning=      |                        ^~~~~~~~~~~~~
  cargo:warning=build/expando.c:5:23: note: in expansion of macro ‘VERSION2’
  cargo:warning=    5 | #define VERSION(n, v) VERSION2(n, v)
  cargo:warning=      |                       ^~~~~~~~
  cargo:warning=build/expando.c:10:1: note: in expansion of macro ‘VERSION’
  cargo:warning=   10 | VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
  cargo:warning=      | ^~~~~~~
  exit code: 1

  --- stderr
  thread 'main' panicked at '
  Header expansion error:
  Error { kind: ToolExecError, message: "Command \"cc\" \"-O0\" \"-ffunction-sections\" \"-fdata-sections\" \"-fPIC\" \"-g\" \"-fno-omit-frame-pointer\" \"-m64\" \"-I\" \"/usr/include\" \"-Wall\" \"-Wextra\" \"-E\" \"build/expando.c\" with args \"cc\" did not execute successfully (status code exit code: 1)." }

  Failed to find OpenSSL development headers.

  You can try fixing this setting the `OPENSSL_DIR` environment variable
  pointing to your OpenSSL installation or installing OpenSSL headers package
  specific to your distribution:

      # On Ubuntu
      sudo apt-get install libssl-dev
      # On Arch Linux
      sudo pacman -S openssl
      # On Fedora
      sudo dnf install openssl-devel

  See rust-openssl README for more information:

      https://github.com/sfackler/rust-openssl#linux
  ', /home/sam/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.60/build/main.rs:141:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

Expected Behavior

System information

Please complete the following information:

rustup 1.25.1 (bb60b1e89 2022-07-12)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.52.1 (9bc8c42bb 2021-05-09)`
  • Computer OS
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.1 LTS
    Release: 22.04
    Codename: jammy

Additional context

The dev setup command ./scripts/dev_setup.sh is also failing:

sam@sam:~/diem$ ./scripts/dev_setup.sh
Welcome to Diem!

This script will download and install the necessary dependencies needed to
build, test and inspect Diem Core.

Based on your selection, these tools will be included:
Build tools (since -t or no option was provided):
  * Rust (and the necessary components, e.g. rust-fmt, clippy)
  * CMake
  * Clang
  * grcov
  * lcov
  * pkg-config
  * libssl-dev
  * sccache
  * if linux, gcc-powerpc-linux-gnu
If you'd prefer to install these dependencies yourself, please exit this script
now with Ctrl-C.
Proceed with installing necessary dependencies? (y/N) > y
Updating apt-get......
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 https://cli.github.com/packages stable InRelease                                                    
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease                                                    
Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy-security InRelease                                
Hit:7 https://ppa.launchpadcontent.net/slgobinath/safeeyes/ubuntu jammy InRelease              
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease
Reading package lists... Done
Installing ca-certificates......
Installing ca-certificates.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20211016).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
apt-get install result code: 0
curl is already installed
Installing build-essential.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
apt-get install result code: 0
cmake is already installed
clang is already installed
Installing llvm.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
llvm is already the newest version (1:14.0-55~exp2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
apt-get install result code: 0
Installing gcc-powerpc-linux-gnu.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gcc-powerpc-linux-gnu is already the newest version (4:11.2.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
apt-get install result code: 0
Installing libssl-dev.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libssl-dev is already the newest version (3.0.2-0ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
apt-get install result code: 0
pkg-config is already installed
installing rust.
Installing Rust......
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.52.1 (9bc8c42bb 2021-05-09)`
Rustup is already installed, version: rustup 1.25.1 (bb60b1e89 2022-07-12)
1.52.1 rust toolchain already installed
info: component 'rustfmt' for target 'x86_64-unknown-linux-gnu' is up to date
info: component 'clippy' for target 'x86_64-unknown-linux-gnu' is up to date
    Updating git repository `https://github.com/facebookincubator/cargo-guppy`
  Installing cargo-guppy v0.1.0 (https://github.com/facebookincubator/cargo-guppy?rev=39ec940f36b0a0df96a330243d127cbe2db9f919#39ec940f)
    Updating crates.io index
error: failed to compile `cargo-guppy v0.1.0 (https://github.com/facebookincubator/cargo-guppy?rev=39ec940f36b0a0df96a330243d127cbe2db9f919#39ec940f)`, intermediate artifacts can be found at `/tmp/cargo-install7uiatA`

Caused by:
  failed to download `indexmap v1.9.1`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/home/sam/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.9.1/Cargo.toml`

Caused by:
  feature `edition2021` is required

  this Cargo does not support nightly features, but if you
  switch to nightly channel you can add
  `cargo-features = ["edition2021"]` to enable this feature
@anupam-io anupam-io added the bug Something isn't working label Aug 26, 2022
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

1 participant