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
When the stable-i686-pc-windows-gnu toolchain's bin directory is at the beginning of the PATH variable (as will happen when using rustup), MSYS2 x86 gcc versions 11.3 and higher fail.
This can be reproduced
on the MSYS2 MinGW x86 terminal
install mingw-w64-i686-gcc package version 11.3 or higher (I tested with 11.3.0-2)
include the toolchain's bin directory at the beginning of the PATH, for example with
When the stable-i686-pc-windows-gnu toolchain's bin directory is at the beginning of the PATH variable (as will happen when using rustup), MSYS2 x86 gcc versions 11.3 and higher fail.
This can be reproduced
on the MSYS2 MinGW x86 terminal
install mingw-w64-i686-gcc package version 11.3 or higher (I tested with 11.3.0-2)
include the toolchain's bin directory at the beginning of the PATH, for example with
try to compile a simple c file, for example
gcc a.c
with a.c containing onlyint main () { return 0; }
No a.exe is generated. Repeating with gcc version 11.2 (I tested with 11.2.0-9) will generate a.exe.
With the latest MSYS2 gcc (12.1.0-3) the problem is still there with no a.exe generated.
If libgcc_s_dw2-1.dll is removed from the toolchain's bin directory, a.exe is generated.
(I first thought it was a rustup 1.25 issue and opened rust-lang/rustup#3045, but then I realized the issue is here, or maybe in MSYS2/gcc.)
The text was updated successfully, but these errors were encountered: