Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Building the Rust library faild

Open
#35 1 comment 0 reactions 0 assignees View on GitHub

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
Tech stack
android, rust

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/rust-android-gradle

All issues in mozilla/rust-android-gradle

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.