HVML / PurC

The prime HVML interpreter for C Language.
GNU Lesser General Public License v3.0
1.06k stars 54 forks source link

macOS Monterey build error #5

Closed imajinyun closed 2 years ago

imajinyun commented 2 years ago

Build error information:

-Dport parameter I tried Linux and MAC, but both failed to compile.

❯ uname -a
Darwin username 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 x86_64

❯ gcc --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

❯ cmake --version
cmake version 3.23.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

❯ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Mac -B build && cmake --build build && sudo cmake --install build
-- The CMake build type is: RelWithDebInfo
-- Enabling ccache: Couldn't find ccache program. Not enabling it.
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10 - Success
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
-- Could NOT find HiBus (missing: HiBus_LIBRARY HiBus_INCLUDE_DIR) (Required is at least version "100")
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found suitable version "1.1.1q", minimum required is "1.1.1")
CMake Error at /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON: Found unsuitable version "2.3", but required is at
  least "3.0" (found /usr/bin/bison)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindBISON.cmake:306 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  Source/cmake/PurCFindPackage.cmake:100 (_find_package)
  Source/cmake/OptionsLinux.cmake:30 (find_package)
  Source/cmake/PurCCommon.cmake:48 (include)
  CMakeLists.txt:138 (include)

-- Configuring incomplete, errors occurred!
See also "/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeOutput.log".
See also "/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeError.log".

CMakeError.log content:

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)

Performing C SOURCE FILE Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_30e9b/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_30e9b.dir/build.make CMakeFiles/cmTC_30e9b.dir/build
Building C object CMakeFiles/cmTC_30e9b.dir/src.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE   -DC_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -Wno-maybe-uninitialized -MD -MT CMakeFiles/cmTC_30e9b.dir/src.c.o -MF CMakeFiles/cmTC_30e9b.dir/src.c.o.d -o CMakeFiles/cmTC_30e9b.dir/src.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.c
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from <built-in>:370:
<command line>:1:29: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
#define C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized 1
                            ^
2 warnings generated.
Linking C executable cmTC_30e9b
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_30e9b.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_30e9b.dir/src.c.o -o cmTC_30e9b

Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_0cc03/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_0cc03.dir/build.make CMakeFiles/cmTC_0cc03.dir/build
Building CXX object CMakeFiles/cmTC_0cc03.dir/src.cxx.o
/Library/Developer/CommandLineTools/usr/bin/c++   -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -fno-rtti  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE   -DCXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -Wno-maybe-uninitialized -MD -MT CMakeFiles/cmTC_0cc03.dir/src.cxx.o -MF CMakeFiles/cmTC_0cc03.dir/src.cxx.o.d -o CMakeFiles/cmTC_0cc03.dir/src.cxx.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.cxx
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from <built-in>:380:
<command line>:1:31: warning: whitespace recommended after macro name
#define CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized 1
                              ^
2 warnings generated.
Linking CXX executable cmTC_0cc03
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0cc03.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++ -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -fno-rtti  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_0cc03.dir/src.cxx.o -o cmTC_0cc03

Source file was:
int main() { return 0; }
Determining if the include file features.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_5b6bd/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_5b6bd.dir/build.make CMakeFiles/cmTC_5b6bd.dir/build
Building C object CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'features.h' file not found
#include <features.h>
         ^~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_5b6bd/fast] Error 2

Determining if the include file pthread_np.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_4395c/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_4395c.dir/build.make CMakeFiles/cmTC_4395c.dir/build
Building C object CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h' file not found
#include <pthread_np.h>
         ^~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_4395c/fast] Error 2

Determining if the include file sys/sysmacros.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_78b1b/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_78b1b.dir/build.make CMakeFiles/cmTC_78b1b.dir/build
Building C object CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'sys/sysmacros.h' file not found
#include <sys/sysmacros.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_78b1b/fast] Error 2

Determining if the include file linux/memfd.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_5cf37/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_5cf37.dir/build.make CMakeFiles/cmTC_5cf37.dir/build
Building C object CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/memfd.h' file not found
#include <linux/memfd.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_5cf37/fast] Error 2

Determining if the include file linux/fs.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_f0bc1/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_f0bc1.dir/build.make CMakeFiles/cmTC_f0bc1.dir/build
Building C object CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/fs.h' file not found
#include <linux/fs.h>
         ^~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_f0bc1/fast] Error 2

Determining if the include file stropts.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_bda79/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_bda79.dir/build.make CMakeFiles/cmTC_bda79.dir/build
Building C object CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'stropts.h' file not found
#include <stropts.h>
         ^~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_bda79/fast] Error 2

Determining if the function _aligned_malloc exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_1a6d5/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_1a6d5.dir/build.make CMakeFiles/cmTC_1a6d5.dir/build
Building C object CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=_aligned_malloc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_1a6d5
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1a6d5.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=_aligned_malloc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o -o cmTC_1a6d5
Undefined symbols for architecture x86_64:
  "__aligned_malloc", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_1a6d5] Error 1
make: *** [cmTC_1a6d5/fast] Error 2

Determining if the function IsDebuggerPresent exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_2d51e/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_2d51e.dir/build.make CMakeFiles/cmTC_2d51e.dir/build
Building C object CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=IsDebuggerPresent -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_2d51e
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2d51e.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=IsDebuggerPresent -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o -o cmTC_2d51e
Undefined symbols for architecture x86_64:
  "_IsDebuggerPresent", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_2d51e] Error 1
make: *** [cmTC_2d51e/fast] Error 2

Determining if the function malloc_trim exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_74ecf/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_74ecf.dir/build.make CMakeFiles/cmTC_74ecf.dir/build
Building C object CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=malloc_trim -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_74ecf
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_74ecf.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=malloc_trim -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o -o cmTC_74ecf
Undefined symbols for architecture x86_64:
  "_malloc_trim", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_74ecf] Error 1
make: *** [cmTC_74ecf/fast] Error 2

Determining if the function alloca exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_323b0/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_323b0.dir/build.make CMakeFiles/cmTC_323b0.dir/build
Building C object CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=alloca -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
/usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c:7:3: warning: incompatible redeclaration of library function 'alloca' [-Wincompatible-library-redeclaration]
  CHECK_FUNCTION_EXISTS(void);
  ^
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS alloca
                              ^
/usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c:7:3: note: 'alloca' is a builtin with type 'void *(unsigned long)'
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS alloca
                              ^
1 warning generated.
Linking C executable cmTC_323b0
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_323b0.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=alloca -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o -o cmTC_323b0
Undefined symbols for architecture x86_64:
  "_alloca", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_323b0] Error 1
make: *** [cmTC_323b0/fast] Error 2

Determining if the function strverscmp exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_996a4/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_996a4.dir/build.make CMakeFiles/cmTC_996a4.dir/build
Building C object CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=strverscmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_996a4
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_996a4.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=strverscmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o -o cmTC_996a4
Undefined symbols for architecture x86_64:
  "_strverscmp", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_996a4] Error 1
make: *** [cmTC_996a4/fast] Error 2

Determining if the function random_r exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_6a754/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_6a754.dir/build.make CMakeFiles/cmTC_6a754.dir/build
Building C object CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=random_r -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_6a754
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6a754.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=random_r -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o -o cmTC_6a754
Undefined symbols for architecture x86_64:
  "_random_r", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_6a754] Error 1
make: *** [cmTC_6a754/fast] Error 2

Determining if the function get_process_stats exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_93e30/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_93e30.dir/build.make CMakeFiles/cmTC_93e30.dir/build
Building C object CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=get_process_stats -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_93e30
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_93e30.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=get_process_stats -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o -o cmTC_93e30
Undefined symbols for architecture x86_64:
  "_get_process_stats", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_93e30] Error 1
make: *** [cmTC_93e30/fast] Error 2

Determining if the function posix_fallocate exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_516a9/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_516a9.dir/build.make CMakeFiles/cmTC_516a9.dir/build
Building C object CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=posix_fallocate -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_516a9
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_516a9.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=posix_fallocate -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o -o cmTC_516a9
Undefined symbols for architecture x86_64:
  "_posix_fallocate", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_516a9] Error 1
make: *** [cmTC_516a9/fast] Error 2

Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_MTIM_value failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_03783/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_03783.dir/build.make CMakeFiles/cmTC_03783.dir/build
Building C object CMakeFiles/cmTC_03783.dir/src.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -DHAVE_STRUCT_STAT_ST_MTIM_value  -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_03783.dir/src.c.o -MF CMakeFiles/cmTC_03783.dir/src.c.o.d -o CMakeFiles/cmTC_03783.dir/src.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.c:6:36: error: no member named 'st_mtim' in 'struct stat'
  (void)sizeof(((struct stat *)0)->st_mtim);
               ~~~~~~~~~~~~~~~~~~  ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_03783.dir/src.c.o] Error 1
make: *** [cmTC_03783/fast] Error 2

Source file was:

#include <sys/stat.h>

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

Determining if the ESCDELAY exist failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_d422e/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_d422e.dir/build.make CMakeFiles/cmTC_d422e.dir/build
Building C object CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_d422e
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d422e.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o -o cmTC_d422e
Undefined symbols for architecture x86_64:
  "_ESCDELAY", referenced from:
      _main in CheckSymbolExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_d422e] Error 1
make: *** [cmTC_d422e/fast] Error 2

File /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include </Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/ncurses.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef ESCDELAY
  return ((int*)(&ESCDELAY))[argc];
#else
  (void)argc;
  return 0;
#endif
}
Determining if the resizeterm exist failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_d88f6/fast && /Library/Developer/CommandLineTools/usr/bin/make  -f CMakeFiles/cmTC_d88f6.dir/build.make CMakeFiles/cmTC_d88f6.dir/build
Building C object CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_d88f6
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d88f6.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align  -fno-strict-aliasing -fno-exceptions  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib  CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o -o cmTC_d88f6
Undefined symbols for architecture x86_64:
  "_resizeterm", referenced from:
      _main in CheckSymbolExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_d88f6] Error 1
make: *** [cmTC_d88f6/fast] Error 2

File /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include </Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/ncurses.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef resizeterm
  return ((int*)(&resizeterm))[argc];
#else
  (void)argc;
  return 0;
#endif
}
VincentWei commented 2 years ago

CMake Error at /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find BISON: Found unsuitable version "2.3", but required is at least "3.0" (found /usr/bin/bison)

Please upgrade your BISON to 3.0 or later.

imajinyun commented 2 years ago

After installing bison, it was completely solved.

❯ brew install bison

export PATH="/usr/local/opt/bison/bin:$PATH"
imajinyun commented 2 years ago

thanks @VincentWei

VincentWei commented 2 years ago

You are welcome!