Skip to content

Locking Cargo.lock fails with ENOSYS (Linux, Android) #10972

@theCapypara

Description

@theCapypara

Problem

Running cargo build or similiar commands fails with:

error: failed to lock file: /path/Cargo.lock

Caused by:
  Function not implemented (os error 38)

rustc version:

rustc 1.62.1
binary: rustc
commit-hash: unknown
commit-date: unknown
host: aarch64-linux-android
release: 1.62.1
LLVM version: 14.0.6

Steps

  1. Have Rust installed on Android via Termux (aarch64-linux-android)
  2. Run cargo build inside a project

Possible Solution(s)

No response

Notes

This is very odd, since the code (https://github.com/rust-lang/cargo/blame/master/src/cargo/util/flock.rs#L382) should check for this case and not fail. I am very unsure why it's still failing.

Version

cargo 1.62.1
release: 1.62.1
host: aarch64-linux-android
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:OpenSSL/3.0.0c)
os: Android [unknown bitness]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions