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

CI: no atomic ptr build testing #6

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

brody4hire
Copy link
Owner

  • this should fail with build error using built-in Arc due to missing atomic ptr functionality on this test target - want to ensure this will test that using portable_atomic_util::Arc will resolve this issue

@brody4hire brody4hire force-pushed the brody-no-atomic-ptr-build-ci-testing branch from dc87a2d to caa49d9 Compare February 4, 2025 02:46
Comment on lines 209 to 215
# WORKAROUND FIRST BUILD ISSUE FOR NOW
- run: cargo add once_cell -F critical-section -p rustls
- run: cargo add portable-atomic -F critical-section -p rustls

- name: cargo build (debug; no default features; no-std) # no std; no built-in provider; XXX TBD hashbrown - ???
run: cargo build --locked --no-default-features --target riscv32imc-unknown-none-elf
working-directory: rustls
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now fails as expected - see https://github.com/brody4hire/rustls/actions/runs/13127518610/job/36626561569?pr=6

error[E0433]: failed to resolve: could not find `sync` in `alloc`
   --> rustls/src/lib.rs:416:37
    |
416 |     pub(crate) type Arc<T> = alloc::sync::Arc<T>;
    |                                     ^^^^ could not find `sync` in `alloc`
    |
note: found an item that was configured out
   --> /rustc/f027438f8bc6b747528dca8b8de1304[35](https://github.com/brody4hire/rustls/actions/runs/13127518610/job/36626561569?pr=6#step:6:36)44d7238/library/alloc/src/lib.rs:246:9
note: the item is gated here
   --> /rustc/f0274[38](https://github.com/brody4hire/rustls/actions/runs/13127518610/job/36626561569?pr=6#step:6:39)f8bc6b747528dca8b8de13043544d7238/library/alloc/src/lib.rs:245:1

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

Successfully merging this pull request may close these issues.

1 participant