[cfe-dev] llvm fails to build on MacOS prior to 10.12

Adrian Prantl via cfe-dev cfe-dev at lists.llvm.org
Tue May 7 10:10:22 PDT 2019


Should be fixed by r360174.

-- adrian

> On May 7, 2019, at 9:26 AM, Arthur O'Dwyer <arthur.j.odwyer at gmail.com> wrote:
> 
> Adrian,
> 
> Your recent commit
> https://github.com/llvm-mirror/llvm/commit/e8c5427c
> causes build failures for me locally on Mac OSX 10.11.6 using a stock (and I guess fairly old) Xcode Clang.
> 
> Is there any way to fix trunk so that your new code is #ifdef'ed out for versions of Clang that don't support this bizarre __builtin_available(macos 10.12, *) syntax?  Or maybe hide it behind a macro?
> 
> Thanks in advance,
> Arthur
> 
> In file included from $ROOT/llvm/lib/Support/Path.cpp:1113:
> $ROOT/llvm/lib/Support/Unix/Path.inc:1140:27: error: use of undeclared identifier 'macos'; did you mean 'acos'?
>   if (__builtin_available(macos 10.12, *)) {
>                           ^~~~~
>                           acos
> /usr/include/math.h:323:15: note: 'acos' declared here
> extern double acos(double);
>               ^
> In file included from $ROOT/llvm/lib/Support/Path.cpp:1113:
> $ROOT/llvm/lib/Support/Unix/Path.inc:1147:14: error: use of undeclared identifier 'COPYFILE_CLONE'
>       Flag = COPYFILE_CLONE;
>              ^
> 2 errors generated.
> 




More information about the cfe-dev mailing list