Skip to content

Not able to compile on Windows in MinGW anymore #28639

Closed
@nhowell

Description

@nhowell
$ make
...
compile: x86_64-pc-windows-gnu/rustllvm/ArchiveWrapper.o
link: x86_64-pc-windows-gnu/rt/rustllvm.lib
rustc: x86_64-pc-windows-gnu/stage0/bin/rustlib/x86_64-pc-windows-gnu/lib/librustc_llvm
C:/Users/Nick/GitHub/rust/x86_64-pc-windows-gnu/rt/llvmdeps.rs:78:38: 78:54 error: #[link(name = "")] given with empty name
C:/Users/Nick/GitHub/rust/x86_64-pc-windows-gnu/rt/llvmdeps.rs:78 #[cfg_attr(not(target_env = "msvc"), link(name = ""))]
                                                                                                       ^~~~~~~~~~~~~~~~
note: in expansion of include!
src/librustc_llvm/lib.rs:2336:5: 2336:47 note: expansion site
error: aborting due to previous error
/c/Users/Nick/GitHub/rust/mk/target.mk:164: recipe for target 'x86_64-pc-windows-gnu/stage0/bin/rustlib/x86_64-pc-windows-gnu/lib/stamp.rustc_llvm' failed
make: *** [x86_64-pc-windows-gnu/stage0/bin/rustlib/x86_64-pc-windows-gnu/lib/stamp.rustc_llvm] Error 101

I suspect this commit (here's the PR, too) might be to blame, but I don't know enough about it to be sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions