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

Mustang doesn't compile with latest nightly #138

Closed
sunfishcode opened this issue Sep 7, 2022 · 6 comments
Closed

Mustang doesn't compile with latest nightly #138

sunfishcode opened this issue Sep 7, 2022 · 6 comments

Comments

@sunfishcode
Copy link
Owner

Compiling mustang with the latest nightly gets these errors:

inlinable function call in a function with debug info must have a !dbg location
  call void @_Unwind_Resume(ptr %81) #15
inlinable function call in a function with debug info must have a !dbg location
  call void @_Unwind_Resume(ptr %101) #15
inlinable function call in a function with debug info must have a !dbg location
  call void @_Unwind_Resume(ptr %144) #15
inlinable function call in a function with debug info must have a !dbg location
  call void @_Unwind_Resume(ptr %111) #15
LLVM ERROR: Broken module found, compilation aborted!
@sunfishcode
Copy link
Owner Author

Compiling with --release works.
Compiling with the 2022-08-07 snapshot works.

@sunfishcode
Copy link
Owner Author

This might be due to rust-lang/rust#100783.

@Urgau
Copy link

Urgau commented Sep 7, 2022

The upstream issue was rust-lang/rust#101121.

Normally fixed in the 3 latest nightlies (starting from 4/5 September).

@Urgau
Copy link

Urgau commented Sep 7, 2022

Running cargo +nightly run -Z build-std --target=mustang/target-specs/x86_64-mustang-linux-gnu.json --example hello works for me on the two latest nightlies (rustc 1.65.0-nightly (78a891d36 2022-09-05) and rustc 1.65.0-nightly (78a891d36 2022-09-06)).

@sunfishcode
Copy link
Owner Author

Ah, thanks! My rustc wasn't updated because rustup was holding it back because there isn't a new miri build. #137 is now using the latest nightly.

@sunfishcode
Copy link
Owner Author

This appears fixed in #140.

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

No branches or pull requests

2 participants