Skip to content

Cargo can't compile crates when under NTFS on LinuxΒ #13526

Open
@SpaceFox1

Description

@SpaceFox1

Problem

When trying to run cargo build on a project sitting on an NTFS drive on Linux, it will randomly fail at a random package. However, running the same command on the same project but now located on an ext4 drive will always output on a perfect build on the same system.

Steps

  1. Have two partitions (or drives) being one a standard Linux system and the other a basic data-only NTFS drive.
  2. Clone a basic project with a reasonable amount of creates as dependencies on both drives.
  3. Try to run cargo build on both, on the standard drive it will compile successfully, on the NTFS one it will very likely fail to build.

Possible Solution(s)

No response

Notes

Issue originally reported on the Zulip platform. Being posted here after 1-week of no reply's back.

Issue tested on Arch Linux, with the following fstab configuration:

/dev/sda1             /home/space_fox/MassHD ntfs3 umask=000,dmask=027,fmask=137,user,users,relatime,rw,exec,uid=1000,gid=1000 0 0

This is the first time I have faced a drive related issue ever since I started used that fstab configuration, having used many apps, other languages, and even having system depended files like the wallpaper stored on it.

Version

cargo 1.76.0 (c84b36747 2024-01-18)
release: 1.76.0
commit-hash: c84b367471a2db61d2c2c6aab605b14130b8a31b
commit-date: 2024-01-18
host: x86_64-unknown-linux-gnu
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.5.0-DEV (sys:0.4.70+curl-8.5.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Arch Linux Rolling Release [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-filesystemArea: issues with filesystemsC-bugCategory: bugO-linuxOS: LinuxS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions