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 }}
Repository navigation
Linking against gcc_s is problematic on windows #456
As noted in the comment, this extra-libraries entry was introduced as a mitigation for GHC #19900, which is fundamentally a GHC runtime linker bug. However, as we see here, the medicine is worse than the disease as now all binaries link against libgcc_s.dll. This is problematic as libgcc_s is a component of msys2, which in general GHC does not depend upon (beyond the msys2 toolchain which is included in the GHC binary distribution for Windows) and won't be in the Windows library/executable search path (PATH) (this is the same issue seen in haskell/bytestring#497).
Consequently, I think we should remove the extra-libraries entry. This will regress #19900 but we can mitigate it in the short term by ensuring that we do not depend upon operations supplied by libgcc, as is done in #453. Once the linking bug is resolving we can reintroduce use of the builtin.
Activity
bgamari commentedon Jul 15, 2022
As noted in the comment, this
extra-librariesentry was introduced as a mitigation for GHC #19900, which is fundamentally a GHC runtime linker bug. However, as we see here, the medicine is worse than the disease as now all binaries link againstlibgcc_s.dll. This is problematic aslibgcc_sis a component of msys2, which in general GHC does not depend upon (beyond the msys2 toolchain which is included in the GHC binary distribution for Windows) and won't be in the Windows library/executable search path (PATH) (this is the same issue seen in haskell/bytestring#497).Consequently, I think we should remove the
extra-librariesentry. This will regress #19900 but we can mitigate it in the short term by ensuring that we do not depend upon operations supplied bylibgcc, as is done in #453. Once the linking bug is resolving we can reintroduce use of the builtin.Bodigrim commentedon Jul 19, 2022
Fixed in #453.