Tcl Source Code

View Ticket
Login
Ticket UUID: 1b6f81955c1058ca710f074f6e3ca054969d8a48
Title: 32-bit zlib1.dll now depends on libgcc_s_sjlj-1.dll
Type: Bug Created on: 2026-02-05 07:45:59
Submitter: jan.nijtmans Assigned to: jan.nijtmans
Subsystem: 81. Bundled Packages Severity: Important
Priority: 5 Medium Last modified: 2026-02-05 09:31:23
Status: Closed Closed by: jan.nijtmans
Resolution: Fixed Closed on: 2026-02-05 09:31:23
Version:
Description:

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

User Comments:
jan.nijtmans added on 2026-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 [4716fdfc4b716ea3|this] fixes it for you?


apnadkarni added on 2026-02-05 08:20:16:
That seemed to do the trick. Build and installs Thanks.

jan.nijtmans added on 2026-02-05 09:00:44:

Fixed [02c648b7787a4051|here]

Thanks, Ashok, for reporting this.


jan.nijtmans added on 2026-02-05 09:30:40:

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


jan.nijtmans added on 2026-02-05 09:31:23:

reported upstream as well.