Skip to content

c2rust: Use released version - #215

Closed
chrysn wants to merge 3 commits into
RIOT-OS:masterfrom
chrysn-pull-requests:released-c2rust
Closed

c2rust: Use released version#215
chrysn wants to merge 3 commits into
RIOT-OS:masterfrom
chrysn-pull-requests:released-c2rust

Conversation

@chrysn

@chrysn chrysn commented Nov 4, 2022

Copy link
Copy Markdown
Member

This reduces the dependency on a particular GitHub branch that I was already about to remove after immunant/c2rust#693 was done.

Still marked as a draft as it depends on immunant/c2rust#690 (but that has all its blockers gone already).

@chrysn chrysn self-assigned this Nov 4, 2022

@kaspar030 kaspar030 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK.

@chrysn chrysn closed this Jan 17, 2023
@chrysn
chrysn deleted the released-c2rust branch January 17, 2023 13:01
@chrysn
chrysn restored the released-c2rust branch January 17, 2023 13:01
@chrysn

chrysn commented Jan 17, 2023

Copy link
Copy Markdown
Member Author

Reopening after accidentally having deleted the branch.

@chrysn chrysn reopened this Jan 17, 2023
@chrysn
chrysn marked this pull request as ready for review February 2, 2023 07:57
@chrysn

chrysn commented Feb 2, 2023

Copy link
Copy Markdown
Member Author

Huh, saying that this is not where I'd have expected the error to show up would be putting it mildly -- I'm having a look at why this fails, but it may take a while.

@chrysn

chrysn commented Feb 2, 2023

Copy link
Copy Markdown
Member Author

I have no clue what caused the build failure, and can not reproduce the issue locally (after building the container in podman and using BOARDS="arduino-uno esp32-wroom-32 hifive1b msb-430h native samr21-xpro" make -C examples/rust-gcoap BUILD_IN_DOCKER=1 DOCKER=podman DOCKER_IMAGE=localhost/riotbuild:latest buildtest to run the very test that CI should have run).

Let's see if it was a random glitch (like, file system error?), restarting the build test.

@chrysn

chrysn commented Feb 3, 2023

Copy link
Copy Markdown
Member Author

Seems that builds break due to files left over from other runs. Switching to draft PR to prevent accidental merging just because a test happens to fix it.

@chrysn
chrysn marked this pull request as draft February 3, 2023 06:36
@chrysn

chrysn commented Feb 3, 2023

Copy link
Copy Markdown
Member Author

I suspect now that this is due to changes in some base image, and would break in master just as well.

I still can't make progress for lack of a way to reproduce it (works locally), so I'm triggering a master rebuild to cut down the space.

Comment thread .github/workflows/build.yml Outdated
Comment on lines +135 to +142
# Something left directories that break things
# A git clean wouldn't remove repositories
rm -rf RIOT/build
# These files can't be removed?
ls -ld tests/pkg_nanopb/bin/native/core_lib
ls -l tests/pkg_nanopb/bin/native/core_lib/atomic_c11.d
rm -rf tests/pkg_nanopb/bin/native/core_lib
(cd RIOT && git clean -fxd)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This got addressed by #290 and RIOT-OS/RIOT#22631

Comment thread riotbuild/Dockerfile
RUN \
echo 'Installing C2Rust' >&2 && \
CARGO_HOME=/opt/rustup/.cargo cargo install --no-track --locked c2rust --git https://github.com/chrysn-pull-requests/c2rust --branch riscv-vector-types && \
CARGO_HOME=/opt/rustup/.cargo cargo install --no-track --locked c2rust --version 0.17.0 && \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And somewhere along the way this was already done, with #283 we're at 0.22.1 anyways.

@crasbe

crasbe commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Everything has been addressed by other PRs, so this can be closed.

@crasbe crasbe closed this Aug 29, 2026
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.

4 participants