[MacPorts] #62488: py38-scipy - vodemodule.c - fatal error: 'threads.h' not found

MacPorts noreply at macports.org
Thu May 13 19:09:34 UTC 2021


#62488: py38-scipy -  vodemodule.c - fatal error: 'threads.h' not found
-------------------------+-----------------------
  Reporter:  dyne2meter  |      Owner:  michaelld
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.4
Resolution:              |   Keywords:  elcapitan
      Port:  py-scipy    |
-------------------------+-----------------------

Comment (by michaelld):

 Ah... OK so the compiler being used here is some version of GCC, which
 does not define `__STDC_NO_THREADS__`. And since `__GLIBC__` is also not
 defined then the 2nd macro combination succeeds & thus `#include
 <threads.h>` is the code ... which in theory should work since GCC should
 support it in C11 mode. Hmmm ...

 Also regarding the issue noted in that NumPy link:
 [https://github.com/numpy/numpy/pull/18357 A relevant PR has been merged]
 into the current 1.20 release that we're using in MP & that's what the
 noted issue & related PR are doing, just for "master". Clearly there needs
 to be more consideration given for macOS / Xcode / MP with regard to this
 issue when using GCC as the compiler ... almost a cross-build, but not
 exactly.

-- 
Ticket URL: <https://trac.macports.org/ticket/62488#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list