Skip to content

Make not building "rustc-stage1"; crt2.o is not a directory. #31293

Closed
@jagourq

Description

@jagourq

Running make -j4 rustc-stage1 in msys2 appears to build LLVM for stage 0 before exiting. Running the command a second time results in:

cp C:/Program Files/mingw-w64/x86_64-4.9.3-win32-seh-rt_v4-rev1/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o x86_64-pc-windows-gnu/rt/crt2.o

cp: target ‘x86_64-pc-windows-gnu/rt/crt2.o’ is not a directory

/home/James/rust/mk/rt.mk:375: recipe for target 'x86_64-pc-windows-gnu/rt/crt2.o' failed
make: *** [x86_64-pc-windows-gnu/rt/crt2.o] Error 1

I don't remember what I did differently, but once running the command a second time caused make to complain that it did not know what rustc-stage1 was.

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