[MacPorts] #62687: scrcpy: fatal error: 'stdatomic.h' file not found

MacPorts noreply at macports.org
Mon Apr 12 21:57:50 UTC 2021


#62687: scrcpy: fatal error: 'stdatomic.h' file not found
------------------------+----------------------------
 Reporter:  ryandesign  |      Owner:  MarcelBochtler
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.4
 Keywords:              |       Port:  scrcpy
------------------------+----------------------------
 https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/144087/steps
 /install-port/logs/stdio
 {{{
 ../Genymobile-scrcpy-5a6af85/app/src/fps_counter.h:4:10: fatal error:
 'stdatomic.h' file not found
 #include <stdatomic.h>
          ^
 1 error generated.
 }}}
 I see that this is being compiled with `-std=c11` and <stdatomic.h> is a
 C11 header. The compiler didn't complain about `-std=c11` being unknown
 and is supposed to be C11 compatible, but Xcode didn't actually include
 this header until later so it's not truly C11 compatible after all.

 Add:
 {{{
 compiler.c_standard 2011
 }}}
 to tell MacPorts that the code requires a C11 compiler. MacPorts should be
 improved so that only compilers that offer stdatomic.h are selected. Until
 that's done, manually add blacklisting as per #60429.

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


More information about the macports-tickets mailing list