Comments (2)
I'm having trouble reproducing the same error that you're getting. My build is also failing, but it seems to be progressing further than the one you reported.
Your error looks like the message we get when certain clang/llvm libraries are not installed on the host. Verify that you have libclang1
installed. Our User Guide has some instructions for it here, there's also some guidance in bindgen's User Guide (which might be out-dated now?).
Another option would be to install the bindgen-cli
and set the AWS_LC_SYS_EXTERNAL_BINDGEN=1
environment variable to force our build to use that instead of our internal bindings generation.
Let me know if either of these options work for you.
Note: We do verify our build in CI for a few android-related targets (arm-linux-androideabi
, armv7-linux-androideabi
, and aarch64-linux-android
) but we build using cross-rs.
from aws-lc-rs.
Ok, I was able to get the build succeed on my Ubuntu 22.04 (x86-64) host:
I installed Ubuntu's android-sdk
package and downloaded the r26d NDK. I exported the following two environment variables:
export ANDROID_NDK_ROOT=/home/justsmth/android-ndk/android-ndk-r26d
export ANDROID_SDK_ROOT=/usr/lib/android-sdk
From the aws-lc-rs/aws-lc-rs
subdirectory, I ran the build command:
❯ cargo ndk --target x86_64-linux-android build
Building x86_64 (x86_64-linux-android)
Compiling libc v0.2.154
Compiling fs_extra v1.3.0
Compiling dunce v1.0.4
Compiling paste v1.0.14
Compiling aws-lc-rs v1.7.1 (/home/justsmth/repos/aws-lc-rs/aws-lc-rs)
Compiling mirai-annotations v1.12.0
Compiling untrusted v0.7.1
Compiling zeroize v1.7.0
Compiling jobserver v0.1.26
Compiling cc v1.0.94
Compiling cmake v0.1.50
Compiling aws-lc-sys v0.16.0 (/home/justsmth/repos/aws-lc-rs/aws-lc-sys)
warning: [email protected]: Generating bindings - external bindgen. Platform: x86_64-linux-android
Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.76s
(This was using the "external" bindgen-cli.)
from aws-lc-rs.
Related Issues (20)
- Add `-Z minimal-versions` CI integration test
- feature request: RSA key generation support HOT 1
- Remove CMake requirement for builds HOT 2
- HPKE base mode support or ephemeral-static ECDH API HOT 3
- MSRV not respected on aarch64-apple-darwin
- Fails to build on Apple Silicon M2 HOT 9
- aws-lc-sys --features ssl,bindgen failed to build HOT 3
- Please document the licensing of aws-lc HOT 2
- AWS-LC’s libcrypto means, is it support for libcrypto of OpenSSL library added?
- Remove NASM requirement for windows builds
- Link to guide on bindgen requirement HOT 2
- Build fails for some targets because of missing _ISOC11_SOURCE preprocessor definition HOT 2
- Consolidate FFI bindings HOT 4
- Build fails for iOS simulator on x86_64 HOT 2
- Build failed at target: aarch64-pc-windows-msvc HOT 16
- Support streaming API for CBC HOT 1
- Compilation Errors on `x86_64-pc-windows-gnu` Target due to Uninitialized Variables in `aws-lc` HOT 4
- Linux -> Mac cannot cross compile aws-lc-sys HOT 6
- Cross build for target x86_64-pc-windows-gnu failed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-lc-rs.