Skip to content

fix(build): resolve Windows DLL loading and GLIBC compatibility issues#39

Merged
ronaldtse merged 1 commit intomainfrom
fix/windows-dll-glibc-issues
Feb 20, 2026
Merged

fix(build): resolve Windows DLL loading and GLIBC compatibility issues#39
ronaldtse merged 1 commit intomainfrom
fix/windows-dll-glibc-issues

Conversation

@ronaldtse
Copy link
Copy Markdown
Contributor

Summary

This PR fixes two critical issues with the native gem builds:

Changes

Windows DLL Loading Fix

  • Added libiconv_recipe.rb to build libiconv as a static library
  • Integrated libiconv into the libarchive build process
  • Added libiconv 1.18 configuration to ext/configuration.yml

GLIBC Compatibility Fix

  • Changed Linux glibc builds from ubuntu-latest to ubuntu-22.04:
    • x86_64-linux, x86_64-linux-gnu
    • aarch64-linux, aarch64-linux-gnu
  • musl builds remain on ubuntu-latest (they don't use glibc)

Additional Fixes

  • Fixed CMake flag typos (:: to :) for ENABLE_ZLIB, ENABLE_EXPAT, ENABLE_LZO, ENABLE_CPIO
  • Updated workflow inspection steps to fail if no compiled libraries are found
  • Fixed library detection to properly handle multiple file types

Test Plan

  • Verify all platform builds pass in CI
  • Verify Windows gems load successfully without DLL errors
  • Verify Linux gems work on Ubuntu 22.04+ and Debian 12+
  • Verify inspection steps properly detect and validate compiled libraries

Fixes #35
Fixes #38

- Add libiconv as static library dependency to fix Windows Error 126
  (missing libiconv-2.dll dependency)
- Update Linux glibc builds to use ubuntu-22.04 for GLIBC 2.35 compatibility
- Fix CMake flag typos (:: to :) for ENABLE_ZLIB, ENABLE_EXPAT, ENABLE_LZO, ENABLE_CPIO
- Update inspection steps to fail if no compiled libraries found
- Fix workflow library detection to handle multiple file types correctly

closes #35, closes #38
@ronaldtse ronaldtse merged commit 219fa1a into main Feb 20, 2026
93 checks passed
@ronaldtse ronaldtse deleted the fix/windows-dll-glibc-issues branch February 20, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime failure due to cannot find compiled library on Debian/Ubuntu/Windows Compiled library failed to load on Windows 2025 Docker container

1 participant