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

Updates for Xtensa enabled 1.83 compiler #2615

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

Conversation

MabezDev
Copy link
Member

Thank you for your contribution!

We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the Migration Guide.
  • My changes are in accordance to the esp-rs API guidelines

Extra:

Pull Request Details 📖

Description

Please provide a clear and concise description of your changes, including the motivation behind these changes. The context is crucial for the reviewers.

Testing

Describe how you tested your changes.

@MabezDev MabezDev added the skip-changelog No changelog modification needed label Nov 26, 2024
@MabezDev MabezDev changed the title Test Xtensa enabled 1.83 compiler Updates for Xtensa enabled 1.83 compiler Nov 28, 2024
@@ -70,6 +70,7 @@ jobs:
- uses: esp-rs/[email protected]
with:
ldproxy: false
version: 1.83.0.0
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO remove these once CI goes green and post compiler release

@@ -772,7 +772,7 @@ fn lint_package(path: &Path, args: &[&str], fix: bool) -> Result<()> {
// build in release to reuse example artifacts
let cargo_args = builder.arg("--release");
let cargo_args = if fix {
cargo_args.arg("--fix").arg("--lib")
cargo_args.arg("--fix").arg("--lib").arg("--allow-dirty")
Copy link
Member

Choose a reason for hiding this comment

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

Thank you, keep forgetting to add this 😅

@jessebraham
Copy link
Member

Any updates here?

@MabezDev
Copy link
Member Author

MabezDev commented Dec 6, 2024

Nothing yet, the LLVM issue is being looked into still. Our last resort is still available, which is to bump the MSRV.

@MabezDev
Copy link
Member Author

MabezDev commented Dec 9, 2024

Issue is fixed 🎉 , needs to make its way to github and I'll start the release builds

@MabezDev
Copy link
Member Author

Well, it's fixed... but we're still in a situation where MSRV is failing because the bug that I found whilst trying to avoid bumping MSRV also affects the MSRV toolchain 🙃.

I think we have a few options here:

  • Bump MSRV + keep these changes (no more naked fns)
  • Bump MSRV + revert changes to xtensa lx (back to naked fns)
  • Backport the patch to $MSRV toolchain and cut a release from there

Thoughts?

@bjoernQ
Copy link
Contributor

bjoernQ commented Dec 10, 2024

Getting rid of naked functions sounds best to me.

Not ideal to bump MSRV to 1.83 however.

Not sure how much effort option 3 would be

@@ -20,7 +20,7 @@ use crate::cfg_asm;
// `Context` struct in context.rs
global_asm!(
"
.set XT_STK_PC, 0
.set XT_STK_PC, 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Obviously nothing important, but what did that one space do to you? :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants