Git Product home page Git Product logo

Comments (6)

eli-schwartz avatar eli-schwartz commented on August 26, 2024

We don't actually use -l pthread, we use -pthread? Of course internally that's going to invoke -l pthread.

What does mcfgthread want in order to be used? I assume it can't possibly require "no extra argument" because then nothing actually instructs the code to use it. And that's a problem unless the compiler internally adds the requisite arguments via the spec file, as pthread is currently handled.

from meson.

Ericson2314 avatar Ericson2314 commented on August 26, 2024

We don't actually use -l pthread, we use -pthread? Of course internally that's going to invoke -l pthread.

Ah yes. I was just being silly reading

/nix/store/10lwr6m112g609x4qj8k4awl8pyk4qkh-x86_64-w64-mingw32-binutils-2.40/bin/x86_64-w64-mingw32-ld: cannot find -lpthread: No such file or directory

What does mcfgthread want in order to be used?...

@eli-schwartz To be honest, I am not really sure. I am not passing -lpthread and I am using std::thread, etc. The GCC libs are configure-time backed to use mcfgthread, so maybe that deals with it?

from meson.

eli-schwartz avatar eli-schwartz commented on August 26, 2024

What I would hope is that if it's configure-time changed to use mcfgthread then the specs would be changed to link with -l mcfgthread instead of -l pthread (it does look like mcfgthread provides a DLL!).

Do you need e.g. -D_REENTRANT defined in order to use mcfgthread?

from meson.

Ericson2314 avatar Ericson2314 commented on August 26, 2024

I don't know because I added mcfgthead to Nixpkgs to get std::thread in 2019 (?) and other people maintained it since. It is all automatic as far as I can tell :)

from meson.

Ericson2314 avatar Ericson2314 commented on August 26, 2024

Now that NixOS/nix#10855 is merged, I think it should be easier to try this out by making the threads dep unconditional and doing nix-build -A packages.x86_64-linux.nix-util-x86_64-w64-mingw32.dev

from meson.

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.