o2e / OLLVM-9.0.1

OLLVM-9.0.1-NDK-21.3.6528147(ndk-r21d)
Other
130 stars 39 forks source link

Mac下编译遇到如下错误 #1

Open fromUse opened 3 years ago

fromUse commented 3 years ago

-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG -- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Success : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 6: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 8: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 28: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 29: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 40: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 42: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 54: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 65: : command not founddevelop/Android/OLLVM-9.0.1/cmake/config.guess: line 68: 'Users/cys/develop/Android/OLLVM-9.0.1/cmake/config.guess: line 71: syntax error near unexpected token in 'Users/cys/develop/Android/OLLVM-9.0.1/cmake/config.guess: line 71: case $1 in CMake Error at cmake/modules/GetHostTriple.cmake:27 (message): Failed to execute /Users/cys/develop/Android/OLLVM-9.0.1/cmake/config.guess Call Stack (most recent call first): cmake/config-ix.cmake:386 (get_host_triple) CMakeLists.txt:618 (include)

-- Configuring incomplete, errors occurred! See also "/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeOutput.log". See also "/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeError.log".

o2e commented 3 years ago

See also "/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeOutput.log". See also "/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeError.log".

看看里面的详细错误信息

o2e commented 3 years ago

@fromUse

fromUse commented 3 years ago

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Library/Developer/CommandLineTools/usr/bin/cc Build flags: Id flags:

The output was: 1 ld: library not found for -lSystem clang: error: linker command failed with exit code 1 (use -v to see invocation)

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Library/Developer/CommandLineTools/usr/bin/c++ Build flags: Id flags:

The output was: 1 ld: library not found for -lc++ clang: error: linker command failed with exit code 1 (use -v to see invocation)

Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)": Apple clang version 11.0.0 (clang-1100.0.33.8) Target: x86_64-apple-darwin20.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Determining if the include file link.h exists failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_88307/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_88307.dir/build.make CMakeFiles/cmTC_88307.dir/build Building C object CMakeFiles/cmTC_88307.dir/CheckIncludeFile.c.o /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_88307.dir/CheckIncludeFile.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'link.h' file not found

include

     ^~~~~~~~

1 error generated. make[1]: [CMakeFiles/cmTC_88307.dir/CheckIncludeFile.c.o] Error 1 make: [cmTC_88307/fast] Error 2

Determining if the include file valgrind/valgrind.h exists failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_9c696/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_9c696.dir/build.make CMakeFiles/cmTC_9c696.dir/build Building C object CMakeFiles/cmTC_9c696.dir/CheckIncludeFile.c.o /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_9c696.dir/CheckIncludeFile.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'valgrind/valgrind.h' file not found

include <valgrind/valgrind.h>

     ^~~~~~~~~~~~~~~~~~~~~

1 error generated. make[1]: [CMakeFiles/cmTC_9c696.dir/CheckIncludeFile.c.o] Error 1 make: [cmTC_9c696/fast] Error 2

Determining if the include file CrashReporterClient.h exists failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_11744/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_11744.dir/build.make CMakeFiles/cmTC_11744.dir/build Building C object CMakeFiles/cmTC_11744.dir/CheckIncludeFile.c.o /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_11744.dir/CheckIncludeFile.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'CrashReporterClient.h' file not found

include

     ^~~~~~~~~~~~~~~~~~~~~~~

1 error generated. make[1]: [CMakeFiles/cmTC_11744.dir/CheckIncludeFile.c.o] Error 1 make: [cmTC_11744/fast] Error 2

Determining if the function clock_gettime exists in the rt failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_5cae3/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_5cae3.dir/build.make CMakeFiles/cmTC_5cae3.dir/build Building C object CMakeFiles/cmTC_5cae3.dir/CheckFunctionExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=clock_gettime -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_5cae3.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_5cae3 /usr/local/Cellar/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5cae3.dir/link.txt --verbose=1 /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=clock_gettime -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_5cae3.dir/CheckFunctionExists.c.o -o cmTC_5cae3 -lrt -lm ld: library not found for -lrt clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [cmTC_5cae3] Error 1 make: [cmTC_5cae3/fast] Error 2

Determining if the function pfm_initialize exists in the pfm failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_4511b/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_4511b.dir/build.make CMakeFiles/cmTC_4511b.dir/build Building C object CMakeFiles/cmTC_4511b.dir/CheckFunctionExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pfm_initialize -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_4511b.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_4511b /usr/local/Cellar/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4511b.dir/link.txt --verbose=1 /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pfm_initialize -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_4511b.dir/CheckFunctionExists.c.o -o cmTC_4511b -lpfm -lm ld: library not found for -lpfm clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [cmTC_4511b] Error 1 make: [cmTC_4511b/fast] Error 2

Determining if the function setupterm exists in the terminfo failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_fa31a/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_fa31a.dir/build.make CMakeFiles/cmTC_fa31a.dir/build Building C object CMakeFiles/cmTC_fa31a.dir/CheckFunctionExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_fa31a.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_fa31a /usr/local/Cellar/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fa31a.dir/link.txt --verbose=1 /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_fa31a.dir/CheckFunctionExists.c.o -o cmTC_fa31a -lterminfo -lm ld: library not found for -lterminfo clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [cmTC_fa31a] Error 1 make: [cmTC_fa31a/fast] Error 2

Determining if the function setupterm exists in the tinfo failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_f91e1/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f91e1.dir/build.make CMakeFiles/cmTC_f91e1.dir/build Building C object CMakeFiles/cmTC_f91e1.dir/CheckFunctionExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_f91e1.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_f91e1 /usr/local/Cellar/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f91e1.dir/link.txt --verbose=1 /Library/Developer/CommandLineTools/usr/bin/cc -DCHECK_FUNCTION_EXISTS=setupterm -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_f91e1.dir/CheckFunctionExists.c.o -o cmTC_f91e1 -ltinfo -lm ld: library not found for -ltinfo clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [cmTC_f91e1] Error 1 make: [cmTC_f91e1/fast] Error 2

Determining if the posix_fallocate exist failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_895ef/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_895ef.dir/build.make CMakeFiles/cmTC_895ef.dir/build Building C object CMakeFiles/cmTC_895ef.dir/CheckSymbolExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_895ef.dir/CheckSymbolExists.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'posix_fallocate' return ((int*)(&posix_fallocate))[argc]; ^ 1 error generated. make[1]: [CMakeFiles/cmTC_895ef.dir/CheckSymbolExists.c.o] Error 1 make: [cmTC_895ef/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /

include

int main(int argc, char** argv) { (void)argv;

ifndef posix_fallocate

return ((int*)(&posix_fallocate))[argc];

else

(void)argc; return 0;

endif

}

Determining if the lseek64 exist failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_4198c/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_4198c.dir/build.make CMakeFiles/cmTC_4198c.dir/build Building C object CMakeFiles/cmTC_4198c.dir/CheckSymbolExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -D_LARGEFILE64_SOURCE -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_4198c.dir/CheckSymbolExists.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:9:19: error: use of undeclared identifier 'lseek64'; did you mean 'lseek'? return ((int*)(&lseek64))[argc]; ^~~ lseek /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/unistd.h:465:8: note: 'lseek' declared here off_t lseek(int, off_t, int); ^ 1 error generated. make[1]: [CMakeFiles/cmTC_4198c.dir/CheckSymbolExists.c.o] Error 1 make: [cmTC_4198c/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /

include <sys/types.h>

include

int main(int argc, char** argv) { (void)argv;

ifndef lseek64

return ((int*)(&lseek64))[argc];

else

(void)argc; return 0;

endif

}

Determining if the mallctl exist failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_b24e8/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_b24e8.dir/build.make CMakeFiles/cmTC_b24e8.dir/build Building C object CMakeFiles/cmTC_b24e8.dir/CheckSymbolExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_b24e8.dir/CheckSymbolExists.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'malloc_np.h' file not found

include

     ^~~~~~~~~~~~~

1 error generated. make[1]: [CMakeFiles/cmTC_b24e8.dir/CheckSymbolExists.c.o] Error 1 make: [cmTC_b24e8/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /

include

int main(int argc, char** argv) { (void)argv;

ifndef mallctl

return ((int*)(&mallctl))[argc];

else

(void)argc; return 0;

endif

}

Determining if the mallinfo exist failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_f0ace/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f0ace.dir/build.make CMakeFiles/cmTC_f0ace.dir/build Building C object CMakeFiles/cmTC_f0ace.dir/CheckSymbolExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_f0ace.dir/CheckSymbolExists.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:10: fatal error: 'malloc.h' file not found

include

     ^~~~~~~~~~

1 error generated. make[1]: [CMakeFiles/cmTC_f0ace.dir/CheckSymbolExists.c.o] Error 1 make: [cmTC_f0ace/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /

include

int main(int argc, char** argv) { (void)argv;

ifndef mallinfo

return ((int*)(&mallinfo))[argc];

else

(void)argc; return 0;

endif

}

Determining if the strerror_s exist failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_99b7a/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_99b7a.dir/build.make CMakeFiles/cmTC_99b7a.dir/build Building C object CMakeFiles/cmTC_99b7a.dir/CheckSymbolExists.c.o /Library/Developer/CommandLineTools/usr/bin/cc -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_99b7a.dir/CheckSymbolExists.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'strerror_s'; did you mean 'strerror_r'? return ((int)(&strerror_s))[argc]; ^~~~~~ strerror_r /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/string.h:116:6: note: 'strerror_r' declared here int strerror_r(int __errnum, char __strerrbuf, size_t __buflen); ^ 1 error generated. make[1]: [CMakeFiles/cmTC_99b7a.dir/CheckSymbolExists.c.o] Error 1 make: [cmTC_99b7a/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: / /

include

int main(int argc, char** argv) { (void)argv;

ifndef strerror_s

return ((int*)(&strerror_s))[argc];

else

(void)argc; return 0;

endif

}

Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC failed with the following output: Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_05bad/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_05bad.dir/build.make CMakeFiles/cmTC_05bad.dir/build Building C object CMakeFiles/cmTC_05bad.dir/src.c.o /Library/Developer/CommandLineTools/usr/bin/cc -DHAVE_STRUCT_STAT_ST_MTIM_TV_NSEC -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_05bad.dir/src.c.o -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/src.c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/src.c:7:36: error: no member named 'st_mtim' in 'struct stat' (void)sizeof(((struct stat *)0)->st_mtim.tv_nsec);


1 error generated.
make[1]: *** [CMakeFiles/cmTC_05bad.dir/src.c.o] Error 1
make: *** [cmTC_05bad/fast] Error 2

Source file was:

#include <sys/types.h>
#include <sys/stat.h>

int main()
{
  (void)sizeof(((struct stat *)0)->st_mtim.tv_nsec);
  return 0;
}

Determining if the __GLIBC__ exist failed with the following output:
Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_a56b7/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_a56b7.dir/build.make CMakeFiles/cmTC_a56b7.dir/build
Building C object CMakeFiles/cmTC_a56b7.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk   -o CMakeFiles/cmTC_a56b7.dir/CheckSymbolExists.c.o   -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier '__GLIBC__'
  return ((int*)(&__GLIBC__))[argc];
                  ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_a56b7.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_a56b7/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <stdio.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef __GLIBC__
  return ((int*)(&__GLIBC__))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the sched_getaffinity exist failed with the following output:
Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_3b0e0/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_3b0e0.dir/build.make CMakeFiles/cmTC_3b0e0.dir/build
Building C object CMakeFiles/cmTC_3b0e0.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk   -o CMakeFiles/cmTC_3b0e0.dir/CheckSymbolExists.c.o   -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'sched_getaffinity'
  return ((int*)(&sched_getaffinity))[argc];
                  ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_3b0e0.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_3b0e0/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sched.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef sched_getaffinity
  return ((int*)(&sched_getaffinity))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the CPU_COUNT exist failed with the following output:
Change Dir: /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_7c199/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_7c199.dir/build.make CMakeFiles/cmTC_7c199.dir/build
Building C object CMakeFiles/cmTC_7c199.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -Werror=unguarded-availability-new -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk   -o CMakeFiles/cmTC_7c199.dir/CheckSymbolExists.c.o   -c /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19: error: use of undeclared identifier 'CPU_COUNT'
  return ((int*)(&CPU_COUNT))[argc];
                  ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_7c199.dir/CheckSymbolExists.c.o] Error 1
make: *** [cmTC_7c199/fast] Error 2

File /Users/cys/develop/Android/OLLVM-9.0.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <sched.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef CPU_COUNT
  return ((int*)(&CPU_COUNT))[argc];
#else
  (void)argc;
  return 0;
#endif
}