Skip to content

output filename collision on windows #15086

@rgbav

Description

@rgbav

Problem

This seems to be a known issue. I just want to report, in case it is not known on windows.
The problem occured on the starter project (https://github.com/leptos-rs/start)

warning: output filename collision.
The bin target `leptos-portfolio` in package `leptos-portfolio v0.1.0 (D:\Repos\leptos-portfolio)` has the same output filename as the lib target `leptos_portfolio` in package `leptos-portfolio v0.1.0 (D:\Repos\leptos-portfolio)`.
Colliding filename is: D:\Repos\leptos-portfolio\target\debug\deps\leptos_portfolio.pdb
The output filenames should be unique.
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>.
If this looks unexpected, it may be a bug in Cargo. Please file a bug report at
https://github.com/rust-lang/cargo/issues/ with as much information as you
can provide.
cargo 1.83.0 (5ffbef321 2024-10-29) running on `x86_64-pc-windows-msvc` target `x86_64-pc-windows-msvc`
First unit: Unit { pkg: Package { id: PackageId { name: "leptos-portfolio", version: "0.1.0", source: "D:\\Repos\\leptos-portfolio" }, ..: ".." }, target: TargetInner { name: "leptos-portfolio", doc: true, ..: with_path("D:\\Repos\\leptos-portfolio\\src/main.rs", Edition2021) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: ["ssr"], rustflags: [], rustdocflags: [], links_overrides: {}, artifact: false, artifact_target_for_features: None, is_std: false, dep_hash: 14176037005699255033 }
Second unit: Unit { pkg: Package { id: PackageId { name: "leptos-portfolio", version: "0.1.0", source: "D:\\Repos\\leptos-portfolio" }, ..: ".." }, target: TargetInner { name_inferred: true, ..: lib_target("leptos_portfolio", ["cdylib", "rlib"], "D:\\Repos\\leptos-portfolio\\src\\lib.rs", Edition2021) }, profile: Profile { ..: default_dev() }, kind: Host, mode: Build, features: ["ssr"], rustflags: [], rustdocflags: [], links_overrides: {}, artifact: false, artifact_target_for_features: None, is_std: false, dep_hash: 12242921020153376879 }

Steps

  1. Use Windows
  2. cargo leptos new --git https://github.com/leptos-rs/start
  3. cargo leptos watch

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.83.0 (5ffbef321 2024-10-29)
release: 1.83.0
commit-hash: 5ffbef3211a8c378857905775a15c5b32a174d3b
commit-date: 2024-10-29
host: x86_64-pc-windows-msvc
libgit2: 1.8.1 (sys:0.19.0 vendored)
libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:Schannel)
os: Windows 10.0.22631 (Windows 11 Professional) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layoutArea: target output directory layout, naming, and organizationC-bugCategory: bugO-windowsOS: WindowsS-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