Skip to content

multiple definition of .weak.rustc_debug_gdb_scripts_section.default on windows in stdarch CI #155277

@folkertdev

Description

@folkertdev

With latest (2026-04-14, though our last succesful CI build is from the 13th) nightly we hit this linker error on windows when running stdarch CI

multiple definition of `.weak.rustc_debug_gdb_scripts_section.default'; D:\a\stdarch\stdarch\target\x86_64-pc-windows-gnu\debug\deps\stdarch_gen_arm-c2d4a4c482dd3e81.1nzalzaaigcyndp95lkud74oo.027raph.rcgu.o:1nzalzaaigcyndp95lkud74oo:(.debug_gdb_scripts+0x0): first defined here

rust-lang/stdarch#2081

https://triage.rust-lang.org/gha-logs/rust-lang/stdarch/71235814881?pr=2081#L2026-04-14T09:12:38.0816704Z-L2026-04-14T09:12:38.1054175Z

On my linux machine this works fine

cargo +nightly-2026-04-14-x86_64-unknown-linux-gnu build -p stdarch-gen-arm --target=x86_64-pc-windows-gnu

I can't debug or bisect this on windows, I don't have a windows machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuggersArea: debuggers themselves (gdc, lldb, cdb, WinDbg, etc.)C-bugCategory: This is a bug.E-needs-investigationCall for participation: This issues needs some investigation to determine current statusI-prioritizeIssue: Indicates that prioritization has been requested for this issue.O-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions