Subject: bug#39003: 27.0.60; MacOS build fails; probably after pthread_setname_np change

From: Robert Pluim <[email-masked]>
Date: Tue, 07 Jan 2020 09:24:43 +0100

>>>>> On Tue, 7 Jan 2020 07:03:36 +0000, Pankaj Jangid <[email-masked]> said:

    Pankaj> Building on emacs-27. I am getting this error

    Pankaj> ```
    Pankaj>   CC       thread.o
    Pankaj>   CC       systhread.o
    Pankaj> systhread.c:236:44: error: too many arguments to function call, expected 1, have
    Pankaj>       2
    Pankaj>           pthread_setname_np (*thread_ptr, p_name);
    Pankaj>           ~~~~~~~~~~~~~~~~~~               ^~~~~~
    Pankaj> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:512:1: note: 
    Pankaj>       'pthread_setname_np' declared here
    Pankaj> __API_AVAILABLE(macos(10.6), ios(3.2))
    Pankaj> ^
    Pankaj> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h:496:162: note: 
    Pankaj>       expanded from macro '__API_AVAILABLE'
    Pankaj>   ...__API_AVAILABLE5, __API_AVAILABLE4, __API_AVAILABLE3, __API_AVAILABLE2, ...
    Pankaj>                                                            ^
    Pankaj> 1 error generated.
    Pankaj> make[2]: *** [systhread.o] Error 1
    Pankaj> make[1]: *** [src] Error 2
    Pankaj> make: *** [bootstrap] Error 2
    Pankaj> ```
    Pankaj> This is probably due to commit 9063124b9125ed5e2ad87bbb8bd6224526723a92.

Yes. Mattias Engdegård has a patch in process under Bug#38632

Robert