Skip to content

Prepare for release of new versions of cortex-m-semihosting and panic-semihosting #270

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

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

adamgreig
Copy link
Member

For the next step in #263 (review), this PR increases the version number for panic-semihosting and cortex-m-semihosting. For c-m-sh this is a breaking change to include #269.

Both projects seem to build just fine with cortex-m master, so I anticipate they should work fine with the to-be-released 0.7, hence increasing the acceptable cortex-m version range.

The CHANGELOG links are a bit troublesome, so I've added new tags to this repo c-m-sh-v0.3.5 and p-sh-v0.5.3 which point to the merge commit, and I'll tag new c-m-sh-v0.4.0 and p-sh-v0.5.4 after this is merged.

@rust-highfive
Copy link

r? @jonas-schievink

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m labels Oct 14, 2020
Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

LGTM.

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 14, 2020

Build succeeded:

@bors bors bot merged commit a6be560 into master Oct 14, 2020
@bors bors bot deleted the bump-semihosting branch October 14, 2020 22:42
@twitchyliquid64
Copy link

Looks like this broke us, but I'm not entirely sure why?

[xxx@xxx]:/tmp> git clone https://github.com/atsamd-rs/atsamd
Cloning into 'atsamd'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 133631 (delta 20), reused 28 (delta 4), pack-reused 133557
Receiving objects: 100% (133631/133631), 37.17 MiB | 28.83 MiB/s, done.
Resolving deltas: 100% (119612/119612), done.)   
[xxx@xxx]:/tmp> cd atsamd/boards/metro_m
atsamd/boards/metro_m0
[xxx@xxx]:/tmp/atsamd/boards/metro_m0> cargo build --examples --features=unproven
    Updating crates.io index
   Compiling version_check v0.9.2
   Compiling typenum v1.12.0
   Compiling cortex-m v0.6.3
   Compiling semver-parser v0.7.0
   Compiling stable_deref_trait v1.2.0
   Compiling proc-macro2 v1.0.24
   Compiling vcell v0.1.2
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.44
   Compiling bitfield v0.13.2
   Compiling autocfg v1.0.1
   Compiling cortex-m-rt v0.6.13
   Compiling r0 v0.2.2
   Compiling byteorder v1.3.4
   Compiling nb v1.0.0
   Compiling void v1.0.2
   Compiling atsamd21g18a v0.7.0 (/tmp/atsamd/pac/atsamd21g18a)
   Compiling hashbrown v0.9.1
   Compiling proc-macro-hack v0.5.18
   Compiling heapless v0.5.6
   Compiling cortex-m-semihosting v0.4.0
   Compiling cortex-m v0.5.10
   Compiling metro_m0 v0.7.0 (/tmp/atsamd/boards/metro_m0)
   Compiling rand_core v0.5.1
   Compiling cortex-m-semihosting v0.3.5
   Compiling aligned v0.2.0
   Compiling rtic-core v0.3.0
   Compiling jlink_rtt v0.1.0
   Compiling panic-halt v0.2.0
   Compiling volatile-register v0.2.0
   Compiling nb v0.1.3
   Compiling embedded-hal v0.2.4
   Compiling semver v0.9.0
   Compiling sx1509 v0.2.0
error: failed to run custom build command for `cortex-m-semihosting v0.4.0`

Caused by:
  process didn't exit successfully: `/tmp/atsamd/boards/metro_m0/target/debug/build/cortex-m-semihosting-17563cdabaed1cca/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-semihosting-0.4.0/build.rs:11:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

warning: build failed, waiting for other jobs to finish...
error: build failed

@korken89
Copy link
Contributor

We are seeing the same breakage in RTIC.

adamgreig pushed a commit that referenced this pull request Jan 12, 2022
270: Add GitHub actions for CI r=adamgreig a=therealprof

This changes CI from Travis CI to GHA which should not only vastly simplify the maintenance (by getting rid of pulling custom binaries from japaric's repository) but also speeds up the CI process and adds rustfmt as well as clippy checks for good measure.

There's still room for optimisation but this has taken me long enough and plenty of sweat to get to this stage so my recommendation would be to merge it.

Co-authored-by: Daniel Egger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants