Skip to content
Tcl Source Code View Ticket
Login

View Ticket

32-bit zlib1.dll now depends on libgcc_s_sjlj-1.dll

Closed / Fixed1b6f81955c1058ca710f074f6e3ca054969d8a48Created 301 days agoUpdated 301 days ago
Descriptionwiki2026-02-05 07:45:59
Reported by Ashok:
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 dependency

Import 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

Referenced by3
jan.nijtmanswiki2026-02-05 07:50:42

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?

apnadkarniplain2026-02-05 08:20:16
That seemed to do the trick. Build and installs Thanks.
jan.nijtmanswiki2026-02-05 09:00:44

Fixed [here]

Thanks, Ashok, for reporting this.

jan.nijtmanswiki2026-02-05 09:30:40

[reported|https://github.com/madler/zlib/pull/1158] upstream as well.

jan.nijtmanswiki2026-02-05 09:31:23

reported upstream as well.

Log in (anonymous is fine) to add a comment.