Building the Rust library faild
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- build-system, mobile-dev
Research direction
Start with the dependency change in Cargo.toml and the app:cargoBuildArm entry point. Reproduce the reported build and inspect the OpenSSL build output, including the openssl-src path shown in the panic. Done means the Rust library builds successfully for the Android ARM task without the missing-header errors.
Written by the indexing model from the issue text.
Description
When I add reqwest in Cargo.toml compilation error
--- stderr
crypto/aes/aes_ecb.c:10:10: fatal error: 'assert.h' file not found
#include <assert.h>
^~~~~~~~~~
In file included from crypto/aes/aes_ofb.c:10:
include/openssl/aes.h:15:11: fatal error: 'stddef.h' file not found
include <stddef.h>
^~~~~~~~~~
In file included from crypto/aes/aes_cbc.c:10:
include/openssl/aes.h:15:11: fatal error: 'stddef.h' file not found
include <stddef.h>
^~~~~~~~~~
In file included from crypto/aes/aes_wrap.c:10:
include/internal/cryptlib.h:13:11: fatal error: 'stdlib.h' file not found
include <stdlib.h>
^~~~~~~~~~
In file included from crypto/aes/aes_misc.c:11:
include/openssl/aes.h:15:11: fatal error: 'stddef.h' file not found
include <stddef.h>
^~~~~~~~~~
In file included from crypto/aes/aes_ige.c:10:
include/internal/cryptlib.h:13:11: fatal error: 'stdlib.h' file not found
include <stdlib.h>
^~~~~~~~~~
1 error generated.
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [crypto/aes/aes_ofb.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [crypto/aes/aes_ecb.o] Error 1
make[1]: *** [crypto/aes/aes_cbc.o] Error 1
In file included from crypto/aes/aes_cfb.c:10:
include/openssl/aes.h:15:11: fatal error: 'stddef.h' file not found
include <stddef.h>
^~~~~~~~~~
make[1]: *** [crypto/aes/aes_misc.o] Error 1
1 error generated.
make[1]: *** [crypto/aes/aes_cfb.o] Error 1
1 error generated.
1 error generated.
make[1]: *** [crypto/aes/aes_wrap.o] Error 1
make[1]: *** [crypto/aes/aes_ige.o] Error 1
make: *** [build_libs] Error 2
thread 'main' panicked at '
Error building OpenSSL:
Command: "make" "build_libs"
Exit status: exit code: 2
', /Users/shuais/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-src-111.9.0+1.1.1g/src/lib.rs:379:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Task :app:cargoBuildArm FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:cargoBuildArm'.
Process 'command 'cargo'' finished with non-zero exit value 101
- Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/rust-android-gradle
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla/rust-android-gradle#174 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mozilla/rust-android-gradle#166 · 1 comment · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla/rust-android-gradle#163 · 2 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mozilla/rust-android-gradle#158 · 7 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
mozilla/rust-android-gradle#152 · 1 comment ·
All issues in mozilla/rust-android-gradle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
recloudstream/cloudstream#3226 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
aws/aws-crt-kotlin#309 ·
Maintainers usually reply within 3 days
-
OAI-PMH
Difficulty 2/5 1-3 hours Newbie friendliness 78/100