[MacPorts] #60429: cfm: fatal error: 'stdatomic.h' file not found

MacPorts noreply at macports.org
Sun May 3 22:08:56 UTC 2020


#60429: cfm: fatal error: 'stdatomic.h' file not found
------------------------+------------------------
 Reporter:  ryandesign  |      Owner:  WillEccles
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  cfm
------------------------+------------------------
 cfm fails to build on Lion because it can't find the stdadomic.h header.
 See
 [https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/22828/steps
 /install-port/logs/stdio this log]:

 {{{
 cc -O3 -std=c11 -Wall -W -pedantic -D_XOPEN_SOURCE=700 cfm.c -o cfm
 cfm.c:19:10: fatal error: 'stdatomic.h' file not found
 #include <stdatomic.h>
          ^
 1 error generated.
 }}}

 Lion's clang is supposed to support C11, but
 [https://stackoverflow.com/questions/26440606/xcode-and-c11-stdatomic-h
 apparently] this header was missing until Xcode 7. You could combat this
 using:

 {{{
 PortGroup compiler_blacklist_versions 1.0
 }}}

 near the top of the Portfile after the PortSystem line, and

 {{{
 compiler.blacklist-append {clang < 700}
 }}}

 near the end of the file. However, compiler blacklisting will have no
 effect until the port is [ticket:60428 using the right compiler].

-- 
Ticket URL: <https://trac.macports.org/ticket/60429>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list