Skip to content

Cannot compile for wasm32-unknown-unknown target #5

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

Closed
AlephAlpha opened this issue May 31, 2021 · 4 comments · Fixed by #6
Closed

Cannot compile for wasm32-unknown-unknown target #5

AlephAlpha opened this issue May 31, 2021 · 4 comments · Fixed by #6

Comments

@AlephAlpha
Copy link
Contributor

thread 'rustc' panicked at 'Failed to get crate data for crate15', compiler/rustc_metadata/src/creader.rs:136:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.52.1 (9bc8c42bb 2021-05-09) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: could not compile `lazy-regex`
@Canop
Copy link
Owner

Canop commented May 31, 2021

How exactly are you launching the compilation ?

@AlephAlpha
Copy link
Contributor Author

AlephAlpha commented May 31, 2021

I just cloned this repo, and then compiled it with cargo build.

git clone https://github.com/Canop/lazy-regex.git
cd lazy-regex
rustup target add wasm32-unknown-unknown
cargo build --target=wasm32-unknown-unknown

@Canop
Copy link
Owner

Canop commented May 31, 2021

Thanks, I reproduce the problem

@Canop
Copy link
Owner

Canop commented May 31, 2021

I submitted a rustc issue: rust-lang/rust#85847

@Canop Canop closed this as completed in #6 May 31, 2021
Canop added a commit to Canop/broot that referenced this issue May 31, 2021
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

Successfully merging a pull request may close this issue.

2 participants