napi-rs / napi-rs/napi-rs

Github Action's Linux GNU build fails with missing <stdatomic.h>

Open
#3,238 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7.9k
Forks
412
Avg merge
1d 20h
Merged PRs (30d)
64

Description

When targeting linux-gnu (64 & x86), I'm encountering the following error in the Github action:

warning: aws-lc-sys@0.39.1: In file included from /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/crypto/asn1/asn1_lib.c:14:0:
warning: aws-lc-sys@0.39.1: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/crypto/asn1/../internal.h:488:23: fatal error: stdatomic.h: No such file or directory
warning: aws-lc-sys@0.39.1:  #include <stdatomic.h>

All build scripts point to using std=11 so I'm not too sure what to make of this one. My apologies if it's a trivial fix :)

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by inspecting the GitHub Actions Linux GNU job and the build scripts that configure the C11 standard, then reproduce the failure for 64-bit x86. Check how the aws-lc-sys dependency is compiled and verify that the workflow completes without the missing stdatomic.h error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, linux, rust
Domain
build-system, ci-cd, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.