Skip to content

libstdbuf: output filename collision #7578

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

Open
drinkcat opened this issue Mar 25, 2025 · 1 comment
Open

libstdbuf: output filename collision #7578

drinkcat opened this issue Mar 25, 2025 · 1 comment

Comments

@drinkcat
Copy link
Contributor

$ 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
Copy link
Contributor Author

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 rust-lang/cargo#6313 .

In particular this comment: rust-lang/cargo#6313 (comment) seems to be similar.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant