I'm compiling Rust on Windows using mingw_64 and GCC. I get the following error:
error: couldn't load codegen backend "E:\rust_git\rust\build\x86_64-pc-windows-gnu\stage1\lib\rustlib\x86_64-pc-windows-gnu\codegen-backends\rustc_codegen_llvm-llvm.dll": "The specified procedure could not be found. (os error 127)"
Unlike How do I fix the error "couldn't load codegen backend" on macOS?, the file rustc_codegen_llvm-llvm.dll
does live in the correct directory.
libgcc*.dll
,ibstdc++*.dll
) – rubenvbldd
utility on the executable (or the mentioned dll) and see if it finds all the dependent DLLs (and where it gets them from). Then figure out if the build procedure can logically find them in the same locations (i.e. are the found DLLs in PATH or next to the executables being run?) – rubenvb