MeTA Setup CMake Fail-Mac OS 10.14.6


#1

I run into the following error at CMake while following the setup guild at
https://meta-toolkit.org/setup-guide.html

Here is what I have in terminal.

(base) FVFY4291HV2H:meta puzhou.wang$ mkdir build
(base) FVFY4291HV2H:meta puzhou.wang$ cd build
(base) FVFY4291HV2H:build puzhou.wang$ cp …/config.toml .
(base) FVFY4291HV2H:build puzhou.wang$ CXX=clang++ cmake …/ -DCMAKE_BUILD_TYPE=Release -DICU_ROOT=/usr/local/opt/icu4c
– The C compiler identification is AppleClang 11.0.0.11000020
– The CXX compiler identification is AppleClang 11.0.0.11000020
– Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
– Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++
– Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Looking for pthread.h
– Looking for pthread.h - found
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
– Found Threads: TRUE
– Found ZLIB: /usr/lib/libz.dylib (found version “1.2.11”)
– Looking for lzma_auto_decoder in /usr/lib/liblzma.dylib
– Looking for lzma_auto_decoder in /usr/lib/liblzma.dylib - found
– Looking for lzma_easy_encoder in /usr/lib/liblzma.dylib
– Looking for lzma_easy_encoder in /usr/lib/liblzma.dylib - found
– Looking for lzma_lzma_preset in /usr/lib/liblzma.dylib
– Looking for lzma_lzma_preset in /usr/lib/liblzma.dylib - found
– Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR)
– Searching for ICU 63.1
CMake Warning (dev) at deps/meta-cmake/FindOrBuildICU.cmake:31 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

CMake variable ICU_ROOT is set to:

/usr/local/opt/icu4c

For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
CMakeLists.txt:79 (FindOrBuildICU)
This warning is for project developers. Use -Wno-dev to suppress it.

– Found ICU: /usr/local/opt/icu4c/lib/libicudata.dylib;/usr/local/opt/icu4c/lib/libicui18n.dylib;/usr/local/opt/icu4c/lib/libicuuc.dylib (Required is at least version “63.1”)
– ICU version found is 64.2.0, expected 63.1; attempting to build ICU from scratch…
– ICU include dirs: /Users/puzhou.wang/GitHub/meta/build/deps/icu-63.1/include
– ICU libraries: icui18n;icuuc;icudata
– Using jemalloc: /usr/local/lib/libjemalloc.dylib
– Performing Test META_HAS_ALIGNED_ALLOC
– Performing Test META_HAS_ALIGNED_ALLOC - Success
– Performing Test META_HAS_BUILTIN_EXPECT
– Performing Test META_HAS_BUILTIN_EXPECT - Success
– No suitable experimental filesystem library found
– Performing Test META_HAS_EXPERIMENTAL_OPTIONAL
– Performing Test META_HAS_EXPERIMENTAL_OPTIONAL - Failed
– Performing Test META_HAS_EXPERIMENTAL_STRING_VIEW
– Performing Test META_HAS_EXPERIMENTAL_STRING_VIEW - Failed
– Performing Test META_HAS_STD_MAKE_UNIQUE
– Performing Test META_HAS_STD_MAKE_UNIQUE - Success
– Performing Test META_HAS_STD_SHARED_PTR_ATOMICS
– Performing Test META_HAS_STD_SHARED_PTR_ATOMICS - Success
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
– Configuring done
– Generating done
– Build files have been written to: /Users/puzhou.wang/GitHub/meta/build
(base) FVFY4291HV2H:build puzhou.wang$ make
Scanning dependencies of target ExternalICU
[ 0%] Creating directories for ‘ExternalICU’
[ 1%] Performing download step (download, verify and extract) for ‘ExternalICU’
– verifying file…
file=’/Users/puzhou.wang/GitHub/meta/deps/icu-63.1/icu4c-63_1-src.tgz’
– File already exists and hash match (skip download):
file=’/Users/puzhou.wang/GitHub/meta/deps/icu-63.1/icu4c-63_1-src.tgz’
SHA512=‘9ab407ed840a00cdda7470dcc4c40299a125ad246ae4d019c4b1ede54781157fd63af015a8228cd95dbc47e4d15a0932b2c657489046a19788e5e8266eac079c’
– extracting…
src=’/Users/puzhou.wang/GitHub/meta/deps/icu-63.1/icu4c-63_1-src.tgz’
dst=’/Users/puzhou.wang/GitHub/meta/build/deps/icu-63.1/src/ExternalICU’
– extracting… [tar xfz]
– extracting… [analysis]
– extracting… [rename]
– extracting… [clean up]
– extracting… done
[ 1%] No patch step for ‘ExternalICU’
[ 1%] No update step for ‘ExternalICU’
[ 1%] Performing configure step for ‘ExternalICU’
checking for ICU version numbers… release 63.1, library 63.1, unicode version 11.0
checking build system type… x86_64-apple-darwin18.7.0
checking host system type… x86_64-apple-darwin18.7.0
checking whether to build debug libraries… no
checking whether to build release libraries… yes
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… configure: error: in /Users/puzhou.wang/GitHub/meta/build/deps/icu-63.1/src/ExternalICU-build': configure: error: cannot run C compiled programs. If you meant to cross compile, use–host’.
See `config.log’ for more details
make[2]: *** [deps/icu-63.1/src/ExternalICU-stamp/ExternalICU-configure] Error 1
make[1]: *** [CMakeFiles/ExternalICU.dir/all] Error 2
make: *** [all] Error 2