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

os error 45 on macOS 10.13.4 #55733

Closed
ghost opened this issue Nov 6, 2018 · 1 comment
Closed

os error 45 on macOS 10.13.4 #55733

ghost opened this issue Nov 6, 2018 · 1 comment
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-macos Operating system: macOS T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@ghost
Copy link

ghost commented Nov 6, 2018

I was just trying to use cargo as per the instructions here:

https://doc.rust-lang.org/book/2018-edition/ch01-03-hello-cargo.html#creating-a-project-with-cargo

and the compiler panicked. This user does not have sudo access, and compiling directly with rustc works perfectly.

I tried this code:

fn main() { println!("Hello, world!"); }

I expected to see this happen:

Successful compilation.

Instead, this happened:

error: incremental compilation: could not create session directory lock file: Operation not supported (os error 45)

thread 'main' panicked at 'librustc/session/mod.rs:802: Trying to get session directory from IncrCompSession `NotInitialized`', librustc/util/bug.rs:47:26
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: aborting due to previous error


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

note: rustc 1.30.0 (da5f414c2 2018-10-24) running on x86_64-apple-darwin

note: compiler flags: -C debuginfo=2 -C incremental --crate-type bin

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

error: Could not compile `hello_cargo`.

Meta

rustc 1.30.0 (da5f414c2 2018-10-24) binary: rustc commit-hash: da5f414c2c0bfe5198934493f04c676e2b23ff2e commit-date: 2018-10-24 host: x86_64-apple-darwin release: 1.30.0 LLVM version: 8.0

Backtrace:

Compiling hello_cargo v0.1.0 (/nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo)
     Running `rustc --crate-name hello_cargo src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8ff1e17b8b58b3f4 -C extra-filename=-8ff1e17b8b58b3f4 --out-dir /nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo/target/debug/deps -C incremental=/nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo/target/debug/incremental -L dependency=/nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo/target/debug/deps`
error: incremental compilation: could not create session directory lock file: Operation not supported (os error 45)

thread 'main' panicked at 'librustc/session/mod.rs:802: Trying to get session directory from IncrCompSession `NotInitialized`', librustc/util/bug.rs:47:26
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: aborting due to previous error


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

note: rustc 1.30.0 (da5f414c2 2018-10-24) running on x86_64-apple-darwin

note: compiler flags: -C debuginfo=2 -C incremental --crate-type bin

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

error: Could not compile `hello_cargo`.

Caused by:
  process didn't exit successfully: `rustc --crate-name hello_cargo src/main.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=8ff1e17b8b58b3f4 -C extra-filename=-8ff1e17b8b58b3f4 --out-dir /nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo/target/debug/deps -C incremental=/nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo/target/debug/incremental -L dependency=/nfs/2018/a/arherrer/projects/rustlang-book/hello_cargo/target/debug/deps` (exit code: 101)
@ghost ghost changed the title Os error 45 on macOS 10.13.4 os error 45 on macOS 10.13.4 Nov 6, 2018
@estebank estebank added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-macos Operating system: macOS A-incr-comp Area: Incremental compilation labels Jan 19, 2019
@jonas-schievink jonas-schievink added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. and removed I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. labels Mar 29, 2019
@Enselic
Copy link
Member

Enselic commented Aug 22, 2023

Triage: In #49773 it is discussed to make rustc more resilient towards lack of support for file locks on some file systems. Closing this as a duplicate of #49773.

@Enselic Enselic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-macos Operating system: macOS T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants