Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

cargo failed to compile wrangler #1759

Closed
junyussh opened this issue Feb 6, 2021 · 6 comments
Closed

cargo failed to compile wrangler #1759

junyussh opened this issue Feb 6, 2021 · 6 comments

Comments

@junyussh
Copy link

junyussh commented Feb 6, 2021

🐛 Bug Report

Environment

  • operating system: Arch Linux
  • output of rustc -V: rustc 1.51.0-nightly (04caa632d 2021-01-30)
  • output of node -v:
  • output of wrangler -V:
  • contents of wrangler.toml

Steps to reproduce

I run this command to install wrangler.

cargo install wrangler

And it throw errors:

error: internal compiler error: failed to process buffered lint here
   --> src/tail/session.rs:205:19
    |
205 |         Err(e) => failure::bail!(http::format_error(e, Some(&tail_help))),
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/compiler/rustc_lint/src/early.rs:384:18
    = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: internal compiler error: failed to process buffered lint here
   --> src/tail/session.rs:118:17
    |
118 |                 failure::bail!(http::format_error(e, Some(&tail_help)))
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/compiler/rustc_lint/src/early.rs:384:18
    = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: internal compiler error: failed to process buffered lint here
  --> src/tail/tunnel.rs:54:13
   |
54 | ...   failure::bail!("failed to kill cloudflared: {}\ncloudflared will eventually exit, or you can explicitly kill it by running `kill {}`", e, pid)
   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/compiler/rustc_lint/src/early.rs:384:18
   = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: internal compiler error: failed to process buffered lint here
   --> src/tail/session.rs:187:5
    |
187 |     failure::bail!("Could not extract tunnel url from cloudflared")
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: delayed at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/compiler/rustc_lint/src/early.rs:384:18
    = note: this error: internal compiler error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

thread 'rustc' panicked at 'no errors encountered even though `delay_span_bug` issued', compiler/rustc_errors/src/lib.rs:974:13
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.51.0-nightly (04caa632d 2021-01-30) running on x86_64-unknown-linux-gnu

note: compiler flags: -C opt-level=3 -C embed-bitcode=no --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 `wrangler`

What did you expect to see?

What did you see instead?

@ObsidianMinor
Copy link
Contributor

This is an internal compiler error caused by rust-lang/rust#81531.

@junyussh
Copy link
Author

junyussh commented Feb 8, 2021

So I have to wait rust to release a newer version to fix this problem?

@ObsidianMinor
Copy link
Contributor

It may already be fixed. Try updating your nightly compiler.

@junyussh
Copy link
Author

junyussh commented Feb 8, 2021

I've updated the nightly compiler, and I found my compiler is already the latest nightly version, which this issue used. Maybe Rust hasn't released a new version containing this PR right now.

@ObsidianMinor
Copy link
Contributor

If you want to install wrangler and force use stable cargo, you can use

cargo +stable install wrangler

@ObsidianMinor
Copy link
Contributor

I'm going to close this issue since it's an issue with rustc nightly, not with wrangler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants