Skip to content

Windows mingw - libwinpthread-1.dll #126

Closed
@MSP-Greg

Description

@MSP-Greg

Re the recent failures in Windows mingw builds, it's related to changes in libwinpthread, which is included in the 'bundled' dll files.

Ruby 3.4 shows that date_core.so is not loading libwinpthread.

Ruby 3.3 shows that its included date_core.so is not loading libwinpthread.

If one installs 3.4.1 on Ruby 3.3, it shows that date_core.so is loading libwinpthread. Using the bundled file, it fails with 'The specified procedure could not be found'. If one updates the bundled dll file, it loads fine.

So, given that mingw build tools provide standard tools and packages, and also a 'posix/*unix' emulation layer, I'm guessing that recently more functions were added. I assume this is also why ruby head has had commits like ruby/ruby#13304, which contains 'Detect clock_gettime and clock_getres for winpthreads'...

Lastly, @ntkme and I are rewriting the code that provides Windows build tools for setup-ruby, and I suspect we'll downgrade the packages related to libwinpthread for older Ruby versions (along with downgrading to gcc 14).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions