You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.
The mingw build of rust ships with libstdc++-6.dll and libgcc_s_seh-1.dll in the bin path. This can conflict with a system (mingw/msys) installed version of those DLLs, and can cause weird errors -- for example, trying to build rust-bindgen against the system libclang.dll results in a bindgen.exe that doesn't start, because it tries to use rustc's libstdc++-6.dll, whereas libclang.dll needs a newer/different libstdc++.
A solution for this is to use manifest files and move these two DLLs to a private directory that's not in the path. In the rustc bin dir:
The mingw build of rust ships with libstdc++-6.dll and libgcc_s_seh-1.dll in the bin path. This can conflict with a system (mingw/msys) installed version of those DLLs, and can cause weird errors -- for example, trying to build rust-bindgen against the system libclang.dll results in a bindgen.exe that doesn't start, because it tries to use rustc's libstdc++-6.dll, whereas libclang.dll needs a newer/different libstdc++.
A solution for this is to use manifest files and move these two DLLs to a private directory that's not in the path. In the rustc bin dir:
rustc.exe.manifest
:Rust.PrivateRuntime.manifest
:And then moving
libstdc++-6.dll
andlibgcc_s_seh-1.dll
to a newrustc/bin/rust-private/
directory.(Note to manually test this out, you have to
touch rustc.exe
after creatingrustc.exe.manifest
, otherwise the manifest won't be read.)The text was updated successfully, but these errors were encountered: