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

aws-lc-sys build failed. Please enable the 'bindgen' feature on aws-lc-rs or aws-lc-sys #2149

Closed
danausx opened this issue Mar 8, 2024 · 1 comment

Comments

@danausx
Copy link

danausx commented Mar 8, 2024

Problem:

I am attempting to build for other targets and getting;

error: failed to run custom build command for `aws-lc-sys v0.13.3`

Caused by:
  process didn't exit successfully: `... target/debug/build/aws-lc-sys-c4d96c61b4c2dabf/build-script-main` (exit status: 101)
  --- stdout
  cargo:rustc-cfg=use_bindgen_generated

  --- stderr
  thread 'main' panicked at ... .cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.13.3/builder/main.rs:286:5:
  aws-lc-sys build failed. Please enable the 'bindgen' feature on aws-lc-rs or aws-lc-sys

I'm using:

[dependencies]
s2n-quic = { version = "1.33.0", default-features = false, features = ["provider-address-token-default", "provider-tls-rustls"] }
tokio = { version = "1.0", features = ["full"] }
libc = "0.2"
rcgen = "0.12.1"
bytes = "1.5.0"
reqwest = {version = "0.11", features = ["json"]}
swift-bridge = {version = "0.1.52", features = ["async"]}

[lib]
crate-type = ["staticlib"]
name = "quic_network_lib"


[build-dependencies]
swift-bridge-build = {version = "0.1.52"}

On an x86_64 macOS.

How to interpret this? I am unsure on how to proceed.

@camshaft
Copy link
Contributor

camshaft commented Mar 8, 2024

This is an AWS-LC limitation. If you're doing cross-compilation, you'll need to take a dependency in your application and enable the bindgen feature: https://aws.github.io/aws-lc-rs/platform_support.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants