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-rs #376

Open
0xADD1E opened this issue Dec 19, 2024 · 0 comments
Open

aws-lc-rs #376

0xADD1E opened this issue Dec 19, 2024 · 0 comments

Comments

@0xADD1E
Copy link

0xADD1E commented Dec 19, 2024

When attempting to build a project making use of the aws-lc-rs crate, the build.rs script fails due to expecting (but not finding) the environment variable allowing it to locate the aws-lc-sys (or aws-lc-fips) library.

A minimal setup to reproduce this is available at https://github.com/0xADD1E/min-aws-lc-rs-borked and an excerpt from the build log is as follows.

@nix { "action": "setPhase", "phase": "configurePhase" }
Running cd .
Building build.rs (aws_lc_rs)
Running rustc --crate-name build_script_build build.rs --crate-type bin -C opt-level=3 -C codegen-units=1 --edition 2021 --cfg feature="aws-lc-sys" --cfg feature="prebuilt-nasm" --out-dir target/build/aws-lc-rs --emit=dep-info,link -L dependency=target/buildDeps --cap-lints allow --color always
thread 'main' panicked at build.rs:59:5:
missing DEP_AWS_LC_ include
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: build_script_build::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The source of this - https://github.com/aws/aws-lc-rs/blob/c4b8050ba1cdb45835d1460b69fc758b0b63f206/aws-lc-rs/build.rs#L27 - seems perfectly reasonable, but it's not clear how (or if) crate overrides would be used to fix this or if another method is needed.

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

1 participant