-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
cargo build && cargo check cause "the compiler unexpectedly panicked" #40755
Comments
error: Could not compile Caused by: |
The issue was resolved by adding absent time dependence into Cargo.toml and installing libsqlite3-dev:
|
I'd like to work on this. |
I believe this should have been fixed by #40542. Please try with a nightly newer than |
You're right - it's fixed in the latest nightly. |
How I faced it:
$ rustup update
$ cargo new sqlite_demo --bin
Created binary (application)
sqlite_demo
projectrust$ rustc --version
rustc 1.16.0 (30cf806 2017-03-10)
$ cd sqlite_demo/
Add rusqlite dependency into Cargo.toml:
$ cargo build
Downloading libsqlite3-sys v0.7.1
Downloading lru-cache v0.1.0
Downloading time v0.1.36
Downloading pkg-config v0.3.9
Downloading linked-hash-map v0.2.1
Blocking waiting for file lock on libc-0.2.21.crate
Compiling libc v0.2.21
Compiling time v0.1.36
Compiling bitflags v0.7.0
Compiling linked-hash-map v0.2.1
Compiling lru-cache v0.1.0
Compiling pkg-config v0.3.9
Compiling libsqlite3-sys v0.7.1
Compiling rusqlite v0.10.1
Compiling sqlite_demo v0.1.0 (file:///home/seb/workspace/rust/sqlite_demo)
Finished dev [unoptimized + debuginfo] target(s) in 47.84 secs
copy/paste content of main.rs from the demo (http://jgallagher.github.io/rusqlite/rusqlite/index.html):
$ cargo check
Compiling bitflags v0.7.0
Compiling linked-hash-map v0.2.1
Compiling lru-cache v0.1.0
Compiling libc v0.2.21
Compiling time v0.1.36
Compiling libsqlite3-sys v0.7.1
Compiling rusqlite v0.10.1
Compiling sqlite_demo v0.1.0 (file:///home/seb/workspace/rust/sqlite_demo)
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/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'called
Option::unwrap()
on aNone
value', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcore/option.rs:323note: Run with
RUST_BACKTRACE=1
for a backtrace.error: Could not compile
sqlite_demo
.To learn more, run the command again with --verbose.
$ rustc --version --verbose
rustc 1.16.0 (30cf806 2017-03-10)
binary: rustc
commit-hash: 30cf806
commit-date: 2017-03-10
host: x86_64-unknown-linux-gnu
release: 1.16.0
LLVM version: 3.9
The text was updated successfully, but these errors were encountered: