Repository navigation
Linking error with aws_lc_rs #1520
Copy link
Copy link
Open
Description
Minimal example:
main.rs
use rustls::crypto::aws_lc_rs;
fn main() {
aws_lc_rs::default_provider().install_default().unwrap();
}
Dependencies
[dependencies]
rustls = "0.23"
Output
Details
Compiling cg_cliff_aws v0.1.0 (/home/abdullah/Playground/cg_cliff_aws)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/home/abdullah/.bun/bin:/home/abdullah/.deno/bin:/usr/local/bin:/home/abdullah/.cargo/bin:/home/abdullah/.local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustce2e3vq/symbols.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.0777s42xku25421nwy4qe38n2.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.0dzmm44ywrc835tf0bqf6ud7o.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.0z9w22ub9wch3pcteabu1z2tx.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.6eg69v76gvrb37tcwjpp8fwdo.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.6sh8tdll40qa8u9rctcybn913.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.729lck5ofpw06scvnf8f0vsej.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.8toousg1ur9wzp7zdfmmvo3n2.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.a5antqf94hfflyktlnvqyior2.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.dipv19pco0l5o02vnkfoc1q6c.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.72l01ov682gq6p1wtfb0f7opi.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.8kchf0xuqakhz8uccdal5nir9.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.e0rfaa2pb5mk3gc1vb2101hak.rcgu.o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785.allocator_shim.rcgu.o" "-Wl,--as-needed" "-L" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps" "-L" "/home/abdullah/Playground/cg_cliff_aws/target/debug/build/aws-lc-sys-816718c73182be1c/out" "-L" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libsubtle-ec7df09a4e81bd17.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libwebpki-6dc04b06e5a0c0de.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libuntrusted-705722a98e2d31de.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libmirai_annotations-a83ad549279bfd4e.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_sys-0d0de56ce1041172.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libonce_cell-aa94287bf24dddf5.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libzeroize-03cdf82c44926b08.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls_pki_types-b3f455607e6f8992.rlib" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/liblog-d173728f910512b6.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c6c045f3358c0b22.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-5c2158c1682442e0.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-404d0b40d67de09f.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-e07eeabf48db885c.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-c92423f648579064.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-8dab5299a97564ae.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-65891f932666bb65.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-b2634d236d77b88a.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-38ef4997455a5e72.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-b2e6b39d803e65fe.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-0864893dee726241.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-e599f337a82d59c4.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-acbe32895031f6bc.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-e21e611894cf2844.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-7b90a2705bcf265b.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-1f7e19b44251c73e.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f72b956e24d1de70.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-632ae0f28c5e55ff.rlib" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-4d7d16bbf0636a40.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/home/abdullah/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/home/abdullah/Playground/cg_cliff_aws/target/debug/deps/cg_cliff_aws-1ddb1ec623ac5785" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.13.rcgu.o): in function `aws_lc_rs::agreement::ec_key_ecdh':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:700: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:702: undefined reference to `aws_lc_0_20_0_EVP_PKEY_derive_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:706: undefined reference to `aws_lc_0_20_0_EVP_PKEY_derive_set_peer'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:713: undefined reference to `aws_lc_0_20_0_EVP_PKEY_derive'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.13.rcgu.o): in function `aws_lc_rs::agreement::x25519_diffie_hellman':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:731: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:733: undefined reference to `aws_lc_0_20_0_EVP_PKEY_derive_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:738: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new_raw_public_key'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:746: undefined reference to `aws_lc_0_20_0_EVP_PKEY_derive_set_peer'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:753: undefined reference to `aws_lc_0_20_0_EVP_PKEY_derive'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::evp_key_generate':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:470: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new_id'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:472: undefined reference to `aws_lc_0_20_0_EVP_PKEY_keygen_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:476: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set_ec_paramgen_curve_nid'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:482: undefined reference to `aws_lc_0_20_0_EVP_PKEY_keygen'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::validate_evp_key':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:306: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get0_EC_KEY'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:310: undefined reference to `aws_lc_0_20_0_EC_KEY_check_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::ec_group_from_nid':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:525: undefined reference to `aws_lc_0_20_0_EC_GROUP_new_by_curve_name'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::ec_point_from_bytes':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:533: undefined reference to `aws_lc_0_20_0_EC_POINT_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:536: undefined reference to `aws_lc_0_20_0_EC_POINT_oct2point'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::ecdsa_asn1_to_fixed':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:577: undefined reference to `aws_lc_0_20_0_ECDSA_SIG_from_bytes'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:579: undefined reference to `aws_lc_0_20_0_ECDSA_SIG_get0_r'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:582: undefined reference to `aws_lc_0_20_0_ECDSA_SIG_get0_s'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::evp_pkey_from_public_point':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:404: undefined reference to `aws_lc_0_20_0_EC_GROUP_get_curve_name'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:405: undefined reference to `aws_lc_0_20_0_EC_KEY_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:406: undefined reference to `aws_lc_0_20_0_EC_KEY_set_group'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:409: undefined reference to `aws_lc_0_20_0_EC_KEY_set_public_key'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:413: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec.rs:415: undefined reference to `aws_lc_0_20_0_EVP_PKEY_assign_EC_KEY'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::key_pair::EcdsaKeyPair::sign':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec/key_pair.rs:215: undefined reference to `aws_lc_0_20_0_EVP_DigestSignInit'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::key_pair::get_signature_length':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec/key_pair.rs:246: undefined reference to `aws_lc_0_20_0_EVP_DigestSign'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ec::key_pair::compute_ecdsa_signature':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ec/key_pair.rs:269: undefined reference to `aws_lc_0_20_0_EVP_DigestSign'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::open_combined':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:226: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_open'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::seal_combined':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:320: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_seal'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::seal_combined':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:320: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_seal'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::seal_separate':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:405: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_seal_scatter'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::open_combined_randnonce':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:272: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_open_gather'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::seal_combined_randnonce':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:358: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_seal_scatter'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::seal_combined_randnonce':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:358: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_seal_scatter'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::aead::unbound_key::UnboundKey::seal_separate_randnonce':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/aead/unbound_key.rs:442: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_seal_scatter'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::hmac::Context::try_update':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:392: undefined reference to `aws_lc_0_20_0_HMAC_Update'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::hmac::Context::try_sign':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:427: undefined reference to `aws_lc_0_20_0_HMAC_Final'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::cipher::aes::encrypt_block_aes':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/cipher/aes.rs:25: undefined reference to `aws_lc_0_20_0_AES_ecb_encrypt'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::cipher::chacha::encrypt_chacha20':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/cipher/chacha.rs:73: undefined reference to `aws_lc_0_20_0_CRYPTO_chacha_20'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::digest::Context::try_finish':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:147: undefined reference to `aws_lc_0_20_0_EVP_DigestFinal'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::digest::Context::try_update':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:118: undefined reference to `aws_lc_0_20_0_EVP_DigestUpdate'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/librustls-f42a61d69be0e64b.rlib(rustls-f42a61d69be0e64b.rustls.327a604d04623843-cgu.15.rcgu.o): in function `aws_lc_rs::ed25519::Ed25519KeyPair::try_sign':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:380: undefined reference to `aws_lc_0_20_0_ED25519_sign'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::agreement::PrivateKey::from_private_key':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:301: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new_raw_private_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::agreement::PrivateKey::compute_public_key':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:415: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get_raw_public_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `<aws_lc_rs::agreement::PrivateKey as aws_lc_rs::encoding::AsDer<aws_lc_rs::encoding::EcPrivateKeyRfc5915Der>>::as_der':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:452: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get0_EC_KEY'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:455: undefined reference to `aws_lc_0_20_0_i2d_ECPrivateKey'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `<aws_lc_rs::agreement::PrivateKey as aws_lc_rs::encoding::AsBigEndian<aws_lc_rs::encoding::Curve25519SeedBin>>::as_be_bytes':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:500: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get_raw_private_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::agreement::generate_x25519':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:520: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new_id'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:522: undefined reference to `aws_lc_0_20_0_EVP_PKEY_keygen_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/agreement.rs:528: undefined reference to `aws_lc_0_20_0_EVP_PKEY_keygen'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::digest::digest_ctx::DigestContext::new':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest/digest_ctx.rs:17: undefined reference to `aws_lc_0_20_0_EVP_DigestInit_ex'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::digest::digest_ctx::DigestContext::new_uninit':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest/digest_ctx.rs:27: undefined reference to `aws_lc_0_20_0_EVP_MD_CTX_init'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `<aws_lc_rs::digest::digest_ctx::DigestContext as core::ops::drop::Drop>::drop':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest/digest_ctx.rs:53: undefined reference to `aws_lc_0_20_0_EVP_MD_CTX_cleanup'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::digest::digest_ctx::DigestContext::try_clone':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest/digest_ctx.rs:62: undefined reference to `aws_lc_0_20_0_EVP_MD_CTX_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest/digest_ctx.rs:63: undefined reference to `aws_lc_0_20_0_EVP_MD_CTX_copy'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::digest::Context::try_update':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:118: undefined reference to `aws_lc_0_20_0_EVP_DigestUpdate'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::digest::Context::try_finish':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:147: undefined reference to `aws_lc_0_20_0_EVP_DigestFinal'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::digest::match_digest_type':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:354: undefined reference to `aws_lc_0_20_0_EVP_sha3_512'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:353: undefined reference to `aws_lc_0_20_0_EVP_sha3_384'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:352: undefined reference to `aws_lc_0_20_0_EVP_sha3_256'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:351: undefined reference to `aws_lc_0_20_0_EVP_sha512_256'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:350: undefined reference to `aws_lc_0_20_0_EVP_sha512'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:349: undefined reference to `aws_lc_0_20_0_EVP_sha384'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:348: undefined reference to `aws_lc_0_20_0_EVP_sha256'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:347: undefined reference to `aws_lc_0_20_0_EVP_sha224'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/digest.rs:346: undefined reference to `aws_lc_0_20_0_EVP_sha1'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::rand::fill':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rand.rs:160: undefined reference to `aws_lc_0_20_0_RAND_bytes'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::cbb::LcCBB::new':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/cbb.rs:19: undefined reference to `aws_lc_0_20_0_CBB_init'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::cbb::LcCBB::into_buffer':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/cbb.rs:30: undefined reference to `aws_lc_0_20_0_CBB_finish'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.0.rcgu.o): in function `aws_lc_rs::cbb::LcCBB::new_fixed':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/cbb.rs:47: undefined reference to `aws_lc_0_20_0_CBB_init_fixed'
Truncated part of the output due to character limit.
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/key.rs:471: undefined reference to `aws_lc_0_20_0_RSA_generate_key_ex'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/key.rs:468: undefined reference to `aws_lc_0_20_0_RSA_generate_key_fips'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/key.rs:476: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/key.rs:478: undefined reference to `aws_lc_0_20_0_EVP_PKEY_assign_RSA'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.6.rcgu.o): in function `aws_lc_rs::rsa::key::key_size_bytes':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/key.rs:498: undefined reference to `aws_lc_0_20_0_EVP_PKEY_size'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.6.rcgu.o): in function `aws_lc_rs::rsa::key::key_size_bits':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/key.rs:505: undefined reference to `aws_lc_0_20_0_EVP_PKEY_bits'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::hmac::LcHmacCtx::try_clone':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:181: undefined reference to `aws_lc_0_20_0_HMAC_CTX_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:183: undefined reference to `aws_lc_0_20_0_HMAC_CTX_copy_ex'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<aws_lc_rs::hmac::LcHmacCtx as core::ops::drop::Drop>::drop':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:194: undefined reference to `aws_lc_0_20_0_HMAC_CTX_cleanup'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::hmac::Key::try_new':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:299: undefined reference to `aws_lc_0_20_0_HMAC_CTX_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/hmac.rs:301: undefined reference to `aws_lc_0_20_0_HMAC_Init_ex'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<aws_lc_rs::ed25519::EdDSAParameters as aws_lc_rs::signature::VerificationAlgorithm>::verify_sig':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:67: undefined reference to `aws_lc_0_20_0_ED25519_verify'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::ed25519::generate_key':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:153: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new_id'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:155: undefined reference to `aws_lc_0_20_0_EVP_PKEY_keygen_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:161: undefined reference to `aws_lc_0_20_0_EVP_PKEY_keygen'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::ed25519::Ed25519KeyPair::to_pkcs8':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:205: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new_raw_private_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::ed25519::Ed25519KeyPair::to_pkcs8v1':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:242: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new_raw_private_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::ed25519::Ed25519KeyPair::from_seed_and_public_key':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:274: undefined reference to `aws_lc_0_20_0_ED25519_keypair_from_seed'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::ed25519::Ed25519KeyPair::parse_pkcs8':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:340: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get_raw_private_key'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ed25519.rs:348: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get_raw_public_key'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::encoding::rfc8017::encode_public_key_der':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:69: undefined reference to `aws_lc_0_20_0_RSA_public_key_to_bytes'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::encoding::rfc8017::decode_public_key_der':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:88: undefined reference to `aws_lc_0_20_0_RSA_public_key_from_bytes'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:91: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:93: undefined reference to `aws_lc_0_20_0_EVP_PKEY_assign_RSA'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::encoding::rfc8017::decode_private_key_der':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:109: undefined reference to `aws_lc_0_20_0_RSA_parse_private_key'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:111: undefined reference to `aws_lc_0_20_0_EVP_PKEY_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encoding.rs:113: undefined reference to `aws_lc_0_20_0_EVP_PKEY_assign_RSA'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::encryption::OaepPublicEncryptingKey::encrypt':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:296: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:298: undefined reference to `aws_lc_0_20_0_EVP_PKEY_encrypt_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:312: undefined reference to `aws_lc_0_20_0_EVP_PKEY_encrypt'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::encryption::OaepPrivateDecryptingKey::decrypt':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:400: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_new'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:402: undefined reference to `aws_lc_0_20_0_EVP_PKEY_decrypt_init'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:416: undefined reference to `aws_lc_0_20_0_EVP_PKEY_decrypt'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::encryption::configure_oaep_crypto_operation':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:462: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set_rsa_padding'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:466: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set_rsa_oaep_md'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:470: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set_rsa_mgf1_md'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:490: undefined reference to `aws_lc_0_20_0_OPENSSL_malloc'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:498: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set0_rsa_oaep_label'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/encryption.rs:482: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set0_rsa_oaep_label'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::signature::RsaParameters::public_modulus_len':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:121: undefined reference to `aws_lc_0_20_0_RSA_bits'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::signature::compute_rsa_signature':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:223: undefined reference to `aws_lc_0_20_0_EVP_DigestSign'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::signature::configure_rsa_pkcs1_pss_padding':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:239: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set_rsa_padding'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:242: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_set_rsa_pss_saltlen'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::signature::verify_rsa_signature':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:257: undefined reference to `aws_lc_0_20_0_EVP_PKEY_get0_RSA'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:258: undefined reference to `aws_lc_0_20_0_RSA_get0_n'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:270: undefined reference to `aws_lc_0_20_0_EVP_DigestVerifyInit'
/usr/bin/ld: /home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:288: undefined reference to `aws_lc_0_20_0_EVP_DigestVerify'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `aws_lc_rs::rsa::signature::get_signature_length':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/rsa/signature.rs:308: undefined reference to `aws_lc_0_20_0_EVP_DigestSign'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::ec_group_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EC_GROUP_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::ec_point_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EC_POINT_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::ec_key_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EC_KEY_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::ecdsa_sig_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_ECDSA_SIG_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::bignum_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_BN_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::evp_pkey_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EVP_PKEY_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::evp_pkey_ctx_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EVP_PKEY_CTX_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::rsa_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_RSA_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::evp_aead_ctx_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EVP_AEAD_CTX_free'
/usr/bin/ld: /home/abdullah/Playground/cg_cliff_aws/target/debug/deps/libaws_lc_rs-0d0a8158570ff960.rlib(aws_lc_rs-0d0a8158570ff960.aws_lc_rs.d3c2fa32a44f7c83-cgu.7.rcgu.o): in function `<*mut aws_lc_sys::x86_64_unknown_linux_gnu_crypto::evp_cipher_ctx_st as aws_lc_rs::ptr::Pointer>::free':
/home/abdullah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-rs-1.8.1/src/ptr.rs:189: undefined reference to `aws_lc_0_20_0_EVP_CIPHER_CTX_free'
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 `cg_cliff_aws` (bin "cg_cliff_aws") due to 1 previous error
Tested on:
-cargo 1.81.0-nightly (4ed7bee47 2024-06-25)
-cargo 1.81.0-nightly (a2b58c3da 2024-07-16)
Edit(bjorn3): Wrap ouput in
Details
block.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
bjorn3 commentedon Jul 21, 2024
I don't see the C library of aws-lc mentioned anywhere in the linker invocation. Can you show the stdout/stderr of the build script of aws-lc-sys? You should be able to find it in the
target/debug/build/aws-lc-sys-816718c73182be1cdirectory.Alvenix commentedon Jul 21, 2024
The output is:
Details
``` cargo:rerun-if-env-changed=AWS_LC_SYS_NO_PREFIX cargo:rerun-if-env-changed=AWS_LC_SYS_INTERNAL_BINDGEN cargo:rerun-if-env-changed=AWS_LC_SYS_EXTERNAL_BINDGEN cargo:rerun-if-env-changed=AWS_LC_SYS_NO_ASM cargo:rustc-cfg=x86_64_unknown_linux_gnu cargo:rerun-if-env-changed=AWS_LC_SYS_CMAKE_BUILDER cargo:rerun-if-env-changed=AWS_LC_SYS_STATIC default_for Target: 'x86_64-unknown-linux-gnu' cargo:rerun-if-env-changed=CARGO_FEATURE_SSL default_for Target: 'x86_64-unknown-linux-gnu' cargo:rerun-if-env-changed=CARGO_FEATURE_SSL cargo:root=/home/abdullah/Playground/cg_cliff_aws/target/debug/build/aws-lc-sys-816718c73182be1c/out default_for Target: 'x86_64-unknown-linux-gnu' OPT_LEVEL = Some(0) TARGET = Some(x86_64-unknown-linux-gnu) OUT_DIR = Some(/home/abdullah/Playground/cg_cliff_aws/target/debug/build/aws-lc-sys-816718c73182be1c/out) HOST = Some(x86_64-unknown-linux-gnu) cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(true) CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2) cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None TARGET = Some(x86_64-unknown-linux-gnu) OPT_LEVEL = Some(0) HOST = Some(x86_64-unknown-linux-gnu) cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(true) cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 exit status: 0 cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = None cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rustc-link-lib=static=aws_lc_0_20_0_crypto cargo:rustc-link-search=native=/home/abdullah/Playground/cg_cliff_aws/target/debug/build/aws-lc-sys-816718c73182be1c/out cargo:rerun-if-env-changed=AWS_LC_SYS_INCLUDES cargo:include=/home/abdullah/Playground/cg_cliff_aws/target/debug/build/aws-lc-sys-816718c73182be1c/out/include cargo:libcrypto=aws_lc_0_20_0_crypto cargo:rerun-if-changed=builder/ cargo:rerun-if-changed=aws-lc/ ```stderr is empty.
Edit(bjorn3): Wrap ouput in
<details>block.bjorn3 commentedon Jul 21, 2024
Can you also build with
-vand show the arguments of the rustc process that tried to buildcg_cliff_aws?Alvenix commentedon Jul 21, 2024
Alvenix commentedon Jul 21, 2024
I forgot to note that I am using Ubuntu 22.04 LTS. (In case this is relevant to the issue)
bjorn3 commentedon Jul 27, 2024
I can reproduce this problem locally. What is strange however is that
libaws_lc_sys-42d3b07204d0fa98.rlibcontains all symbols that are supposedly not found. For whatever reason all files inside this archive are ignored by the linker it seems.-Clink-arg=-Wl,-t,-tshows that the archive itself is looked at, but not any of the object files within.bjorn3 commentedon Jul 27, 2024
Found the problem: aws-lc-sys is using the
\u{1}prefix for all symbols, which only cg_llvm supports: https://github.com/aws/aws-lc-rs/blob/5799bee7d145181276d9db805da019dabbccbf2c/aws-lc-sys/src/x86_64_unknown_linux_gnu_crypto.rs#L4350Edit: Seems like rust-bindgen has been doing this for 7 years. How did that not get noticed until now?
Edit2: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/.5Cx01.20in.20symbol.20names
0xAlcibiades commentedon Jan 18, 2025
Encountered this as well trying to use cranelift on a crate which depends on crates that depend on rustls, which is a large swath of the network ecosystem, this is a blocker to using cranelift for faster compiles in our dev loop
ActuallyHappening commentedon Jan 24, 2025
Yeah same as above, getting
rust-lld: error: undefined symbol: ␁aws_lc_0_25_0_EVP_PKEY_freeerrors using cranelift. not a major issue, just a blocker on using cranelift for faster iteration cyclesActuallyHappening commentedon Feb 12, 2025
Still getting this same issue with latest nightly
bjorn3 commentedon Feb 12, 2025
This still needs either a decision if we want to actually officially support
\u{1}or a change to bindgen to stop using\u{1}(rust-lang/rust-bindgen#2935).Logarithmus commentedon Feb 21, 2025
For those who encounter this issue, you can just do this:
For unknown reason,
rustlsdecided to use super-slow-to-compileaws-lc-sysinstead ofring. So when you disable default features, it will useringagain.simonsan commentedon Feb 22, 2025
@Logarithmus ring just got an unmaintained advisory: https://rustsec.org/advisories/RUSTSEC-2025-0007.html
ActuallyHappening commentedon Mar 26, 2025
Still want this to work
skewballfox commentedon Apr 3, 2025
Would this be fixed by rust-bindgen#3175 or are there other changes that would be necessary?
bjorn3 commentedon Apr 3, 2025
rust-lang/rust-bindgen#3175 is not going to work I think. I do have an idea for another method to fix this in rust-bindgen though.
ActuallyHappening commentedon Apr 9, 2025
Still interested in this being resolved
Gonna keep this alive by sheer force of will!
skewballfox commentedon Apr 9, 2025
If you don't mind documenting what you think the fix is (whether here or in rust-bindgen), I believe @ActuallyHappening just volunteered to, by sheer force of will, submit a PR.
Yen commentedon Sep 5, 2025
Also unable to compile our projects with cranelift. One of our dependencies is using the package directly and cannot be disabled.
Looking at the linked and related issues, it seems there is no clear consensus on if the packages need to change to avoid this, or the codegen needs to change to support it.
Could a decision be made on what actually needs to change to fix this and what project is responsible for doing so. Thanks
thefiddler commentedon Nov 11, 2025
Is there any way to donate or otherwise assist towards fixing this?
frederikhors commentedon Jan 4, 2026
reqwest 0.13is now unusable with cranelift even with all the Microsoft build Tools installed (cmake and company).cxw620 commentedon Jan 5, 2026
reqwestswitches to rustls backend by default since 0.13, you may switch back to native-tls manually to solve this temporarily.frederikhors commentedon Jan 7, 2026
@cxw620 you can't because of this: seanmonstar/reqwest#2931.
refactor: get rid of aws-lc-sys
kaankoken commentedon Apr 22, 2026
The workaround I found:
frederikhors commentedon Apr 22, 2026
@kaankoken I think every issue is now fixed. Can you create a minimal reproduction of your issue?
kaankoken commentedon Apr 22, 2026
Sure, I will try my best to share in a while
kaankoken commentedon Apr 22, 2026
@frederikhors minimal reproducible example: cranelift-awslc-repro
The spec:
thefiddler commentedon May 6, 2026
I can confirm this is still an issue.
As a workaround, I had to add LLVM workarounds for any crate whose object file emits a call to an aws-lc-sys symbol (directly or via an aws_lc_rs generic monomorphized in that crate) had to move to LLVM, e.g. rustls-webpki, jsonwebtoken-aws-lc, and my own code.
Without the overrides, the errors look like this:
It would be great to make this work correctly out of the box!
CathalMullan commentedon May 28, 2026
aws_lc_rstries to auto-detect Cranelift usage now, then changes how it emits bindings: https://github.com/aws/aws-lc-rs/blob/v1.17.0/builder/main.rs#L326-L336So the linking should work now.
If the auto-detect doesn't work, you can force the fix by setting
AWS_LC_SYS_NO_U1_BINDINGS="1"