Useless warning about cache on Termux

Termux is a Linux environment on Android. It has the latest Rust in its repository. However, when compiling, I always get

warning: hard linking files in the incremental compilation cache failed. copying files instead. consider moving the cache directory to a file system which supports hard linking in session dir

Termux can only offer what Google or Samsung allow it to. And such a file system is not there. This means the message is kinda wrong and certainly annoying. Especially when trying things on the road, where I have to use the built in screen. This takes up more than a third of available screen space when the keyboard is showing.

As this is a rare environment in the broad Rust world, automatic detection of such file systems would be overblown. But some way of turning it off manually, would be welcome.

There's an existing issue here: Filesystem warning supress-ability · Issue #75997 · rust-lang/rust · GitHub

1 Like

I don't have a environment to test this, but does it help if you turn off incremental compilation? this can be done using cargo profile setting or environment variable. see:

https://doc.rust-lang.org/cargo/reference/profiles.html#incremental

That issue seems to be stuck. But

export RUSTFLAGS='-C incremental="false"'

did remove it. Thanks!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.