Skip to content

Error compiling Rustc with MinGW #16536

Closed

Description

@xmasotto

I've been trying to compile rustc on Windows...

  • LLVM and the other submodules finished compiling
  • recent snapshot tarball was downloaded
  • morestack.lib was built
  • compiler-rt.lib was built

But when trying to build lib/stamp.core (which is the first time rustc.exe is invoked), make spits out the following error message:

i686-pc-mingw32/stage0/bin/rustc.exe --cfg stage0  -O --cfg rtopt --cfg debug -C prefer-dynamic -Z no-landing-pads --target=i686-pc-mingw32 -C link-args="-Wl,--large-address-aware" -W warnings -L "i686-pc-mingw32/rt" -L "c:\Users\xmasotto\coding\rust\i686-pc-mingw32\llvm\Release+Asserts/lib" -L ""  --out-dir i686-pc-mingw32/stage0/bin/rustlib/i686-pc-mingw32/lib -C extra-filename=-4e7c5e5c /c/Users/xmasotto/coding/rust/src/libcore/lib.rs
make: *** [i686-pc-mingw32/stage0/bin/rustlib/i686-pc-mingw32/lib/stamp.core] Error 34

Here's a more detailed log:
http://pastebin.com/nYT2cX4M

Any ideas on what's happening here?

Activity

  1. changed the title [-]Make error compiling rustc with MinGW[/-] [+]Error compiling rustc with MinGW[/+] on Aug 16, 2014
  2. changed the title [-]Error compiling rustc with MinGW[/-] [+]Error compiling Rustc with MinGW[/+] on Aug 16, 2014
  3. andrew-d commented on Aug 17, 2014

    @andrew-d
    Contributor

    "error 34" is ENOENT - effectively, "No such file or directory". Just offhand, can you check if the various paths in that command actually exist? E.g. does c:\Users\xmasotto\coding\rust\i686-pc-mingw32\llvm\Release+Asserts/lib exist? Also, it looks like the path to LLVM is given as a Windows-style path, and the path to the Rust source is given as a Unix-y path - I wonder if that might be the issue...

  4. xmasotto commented on Aug 20, 2014

    @xmasotto
    Author

    Fixed when I switched from Msys 1.0 to Msys 2.0 - thanks!

  5. added a commit that references this issue on Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions