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

Compilation Error on Debug Builds #168

Closed
CryZe opened this issue May 7, 2018 · 7 comments
Closed

Compilation Error on Debug Builds #168

CryZe opened this issue May 7, 2018 · 7 comments

Comments

@CryZe
Copy link

CryZe commented May 7, 2018

I'm still getting compilation errors when compiling in debug mode with the latest nightly:

   ...
   Compiling parking_lot v0.5.5
LLVM ERROR: out of memory
error: Could not compile `num-rational`.

This happens consistently on multiple PCs. Release Builds work just fine.

To reproduce build the livesplit-core crate with cargo build -p cdylib --target wasm32-unknown-unknown

@mgattozzi
Copy link
Contributor

cc/ @alexcrichton

@alexcrichton
Copy link
Contributor

This looks like an LLVM issue, which is a bit more clear to identify if LLVM with assertions enabled is used --

UNREACHABLE executed at /checkout/src/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp:252!

I'll work on minimizing this and submitting a bug to upstream LLVM

@alexcrichton
Copy link
Contributor

This may have been fixed by https://bugs.llvm.org/show_bug.cgi?id=36564 which we haven't cherry-picked yet, testing now

@alexcrichton
Copy link
Contributor

Ok confirmed to be fix by that, I'll go do the backport now.

@alexcrichton
Copy link
Contributor

rust-lang/rust#50514

alexcrichton referenced this issue in alexcrichton/rust May 10, 2018
This pulls in a fix for https://bugs.llvm.org/show_bug.cgi?id=36564 which has
already landed in upstream LLVM and should...

Closes rust-lang-nursery/rust-wasm#168
alexcrichton referenced this issue in alexcrichton/rust May 10, 2018
Pull in a wasm fix from LLVM upstream

This pulls in a fix for https://bugs.llvm.org/show_bug.cgi?id=36564 which has
already landed in upstream LLVM and should...

Closes rust-lang-nursery/rust-wasm#168
alexcrichton referenced this issue in alexcrichton/rust May 10, 2018
Pull in a wasm fix from LLVM upstream

This pulls in a fix for https://bugs.llvm.org/show_bug.cgi?id=36564 which has
already landed in upstream LLVM and should...

Closes rust-lang-nursery/rust-wasm#168
@alexcrichton
Copy link
Contributor

Confirmed fixed on nightly!

@CryZe
Copy link
Author

CryZe commented May 11, 2018

Thank you guys :D

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

3 participants