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

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.

Change History (2)

comment:1 in reply to:  description Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

MacPorts should be improved so that only compilers that offer stdatomic.h are selected.

#62688

comment:2 Changed 4 years ago by Marcel Bochtler <marcel.bochtler@…>

Resolution: fixed
Status: assignedclosed

In 18c88df839d3c074c28569146f66bc3c7b01b0ac/macports-ports (master):

scrcpy: Ensure that c11 compatible compiler is used

Closes: #62687

Note: See TracTickets for help on using tickets.