32-bit zlib1.dll now depends on libgcc_s_sjlj-1.dll
Looking into the main branch failure, it appears the failure is indeed very recent, introduced with the zlib update. The new 32-bit Windows version checked into the repository has the following dependencyImport from module libgcc_s_sjlj-1.dll : Function __moddi3
This dependency is not there prior to the zlib update. zlib1 then fails to load as libgcc_s_sjlj-1.dll is not present.
Jan, could you take a look as you’re most familiar the zlib builds? Presumably it has something to do with SEH vs SJLJ in MinGW. Maybe the builds should be using SEH ?
/Ashok
02c648b778Fix [1b6f81955c]: 32-bit zlib1.dll now depends on libgcc_s_sjlj-1.dll check-in2026-02-05 07:58:586207efe28dFix [1b6f81955c]: 32-bit zlib1.dll now depends on libgcc_s_sjlj-1.dll check-in2026-02-05 07:57:33b5f93b564bFix [1b6f81955c]: 32-bit zlib1.dll now depends on libgcc_s_sjlj-1.dll check-in2026-02-05 07:56:28
The difference between the zlib-1.3.1.2 build and the zlib-1.3.1 build is only that I used gcc-13.4 now while the earlier build used an earlier gcc (cross-) compiler. This dependency can be removed using the -static-libgcc linker option.
Can you confirm that [this] fixes it for you?
That seemed to do the trick. Build and installs Thanks.
Fixed [here]
Thanks, Ashok, for reporting this.
[reported|https://github.com/madler/zlib/pull/1158] upstream as well.
reported upstream as well.