coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

libstdbuf: output filename collision

Open drinkcat opened this issue 9 months ago • 2 comments

$ cargo test --workspace
warning: output filename collision.
The lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)` has the same output filename as the lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)`.
Colliding filename is: /home/drinkcat/dev/coreutils/coreutils/target/debug/deps/liblibstdbuf.so
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.

Sounds like we should rename our library target.

drinkcat avatar Mar 25 '25 14:03 drinkcat

Nah, we're just colliding with ourselves:

The lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)` has the same output filename as
the lib target `libstdbuf` in package `uu_stdbuf_libstdbuf v0.0.30 (/home/drinkcat/dev/coreutils/coreutils/src/uu/stdbuf/src/libstdbuf)`.

See https://github.com/rust-lang/cargo/issues/6313 .

In particular this comment: https://github.com/rust-lang/cargo/issues/6313#issuecomment-1170307703 seems to be similar.

I guess we can just ignore this until it becomes an actual error.

drinkcat avatar Mar 26 '25 12:03 drinkcat

This is fixed by 35634b46a0acfc9028743bf023c133a4d0135f13 and should be closed.

Ecordonnier avatar Jun 07 '25 20:06 Ecordonnier