Git Product home page Git Product logo

Comments (9)

jrfonseca avatar jrfonseca commented on July 26, 2024

The libwinpthread-1.dll dependency is unintentional. DrMingw should either not depend on it (ie, use Win32 threads as opposed to Posix threads) or statically link libwinpthread-1.dll.

It happened between 0.9.7 and 0.9.8, likely due to the new MinGW compiler toolchain from d9a82b4.

I'll need to figure a solution, and add logic to prevent this from silently happening again.

from drmingw.

jrfonseca avatar jrfonseca commented on July 26, 2024

Going through git history, I'm starting to recollect: 3450a15 should have ensured winpthreads are statically linked...

from drmingw.

alvinhochun avatar alvinhochun commented on July 26, 2024

Also worth noting that, when compiling with the llvm-mingw toolchain, it uses libc++ instead of libstdc++. The winpthread library is available in the toolchain, but libc++ does not actually use winpthreads.

from drmingw.

alvinhochun avatar alvinhochun commented on July 26, 2024

If you would like to to stick to GCC, mingw-builds still provides toolchains without posix threads: https://github.com/niXman/mingw-builds-binaries/releases

from drmingw.

jrfonseca avatar jrfonseca commented on July 26, 2024

Thanks @alvinhochun

I'm building with LLVM/Clang for Arm, but still building with GCC for x86.

The odd thing here is that when I build locally libwinpthread-1.dll is statically linked. I need to dig further..

from drmingw.

jrfonseca avatar jrfonseca commented on July 26, 2024

After a few experiments, I've narrowed down the issue. It only happens on Release builds (only used for producing the binaries), and never on the Debug builds (used for continuous testing and integration.) Why, I haven't yet figured out. I need to reproduce locally first.

from drmingw.

jrfonseca avatar jrfonseca commented on July 26, 2024

Fixed in https://github.com/jrfonseca/drmingw/releases/tag/0.9.9

from drmingw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.