[MacPorts] #67220: mimalloc broken on 10.6: error: stdatomic.h: No such file or directory, etc.

MacPorts noreply at macports.org
Tue Apr 11 09:53:49 UTC 2023


#67220: mimalloc broken on 10.6: error: stdatomic.h: No such file or directory,
etc.
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  mohd-akram
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:  snowleopard, leopard, powerpc,
      Port:  mimalloc    |  rosetta
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 I see it's building with gcc-4.2 whereas stdatomic.h is a C11 thing which
 gcc-4.2 won't understand. Xcode clang 700 and later support stdatomic.h.
 Not sure what version of gcc introduced support for it. At least the
 following should be added to the Portfile:

 {{{
 PortGroup legacysupport 1.1
 }}}
 {{{
 compiler.c_standard 2011
 # stdatomic.h
 compiler.blacklist-append {clang < 700}
 }}}

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


More information about the macports-tickets mailing list