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

-Csplit-debuginfo=unpacked is unstable on this platform #2368

Open
paul-hansen opened this issue Nov 30, 2022 · 4 comments
Open

-Csplit-debuginfo=unpacked is unstable on this platform #2368

paul-hansen opened this issue Nov 30, 2022 · 4 comments
Labels
bug Something is broken

Comments

@paul-hansen
Copy link

paul-hansen commented Nov 30, 2022

Describe the bug

When compiling the master branch on Windows I get this error:

error: `-Csplit-debuginfo=unpacked` is unstable on this platform

Related issue: rust-lang/rust#103976
You can work around this by commenting out this line:

split-debuginfo = "unpacked" # faster debug builds on mac

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/emilk/egui.git
  2. cd egui
  3. cargo build
  4. build fails with above error.

Expected behavior

It compiles

Desktop (please complete the following information):

  • OS: Windows
  • Version: 11 22H2 22621.819

Additional context
I'm mainly opening this so other people can find it as it took me a bit to track down the cause. I'll leave it up to you if you want to remove that line from the project or wait to see if they fix it (see related issue above).

@paul-hansen paul-hansen added the bug Something is broken label Nov 30, 2022
@paul-hansen
Copy link
Author

If you want to remove this from the project's cargo.toml, you can still add it locally as a mac user by adding it to your .cargo/config.toml (note this is config.toml not cargo.toml). you can add that to the project's .gitignore so it can be specified specifically for this project, or it can be added to in a parent directory.

@paul-hansen
Copy link
Author

Looks like there are a couple related PRs that should fix this in the future though so no worries if you don't want to spend time on it. Again, mainly just opening this for discovery by other people running into it.
rust-lang/rust#104104
rust-lang/cargo#11347

@lucasjinreal
Copy link

error: -Csplit-debuginfo=unpacked is unstable on this platform

How to disable?

@paul-hansen
Copy link
Author

egui has it enabled in their project's cargo.toml file. You would need to remove this line from egui's cargo.toml file:

split-debuginfo = "unpacked" # faster debug builds on mac

I updated my original message to point to the correct line.

rustytsuki added a commit to rustytsuki/egui that referenced this issue Feb 1, 2023
# split-debuginfo = "unpacked" # faster debug builds on mac emilk#2368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants