Opened 4 years ago
Closed 4 years ago
#62687 closed defect (fixed)
scrcpy: fatal error: 'stdatomic.h' file not found
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | MarcelBochtler (Marcel Bochtler) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | ||
Port: | scrcpy |
Description
../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.
Change History (2)
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 4 years ago by Marcel Bochtler <marcel.bochtler@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Replying to ryandesign:
#62688