pytorch / glow

Compiler for Neural Network hardware accelerators
Apache License 2.0
3.19k stars 683 forks source link

Build failure on MacOS Catalina #5626

Closed njkrichardson closed 3 years ago

njkrichardson commented 3 years ago

I've followed the instructions in the readme exactly, but experience a build failure on MacOS Catalina. Am I doing something incorrectly or should different instructions be followed for MacOS users? Again, I followed the instructions in the readme exactly (using Homebrew as a package manager). Any help would be much appreciated.

mkdir build_Debug                                                                                                                                              nickrichardson@Nicks-MacBook-Pro
cd build_Debug
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../glow
ninja all
-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found glog with new-style glog target.
-- Glow: Found gflags with new-style gflags target.
-- Tests not explicitly enabled/disabled, default to enable
-- Performing Test HAS_W_NO_PSABI
-- Performing Test HAS_W_NO_PSABI - Failed
-- Found Git: /usr/bin/git (found version "2.24.3 (Apple Git-128)") 
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd (found version "1.2.11") 
-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.4.12") 
-- Using 64b tensor dimensions.
-- Libjit option 'fast-math' enabled.
-- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libxml2.tbd (found version "2.9.4") 
-- Found LLVM 12.0.0
-- Using LLVMConfig.cmake in: /usr/local/opt/llvm/lib/cmake/llvm
-- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.dylib (found version "1.1.1k")  
-- 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 Boost: /usr/local/lib/cmake/Boost-1.75.0/BoostConfig.cmake (found suitable version "1.75.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread 
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (DOUBLE_CONVERSION) does not match the name of the calling package
  (DoubleConversion).  This can lead to problems in calling code that expects
  `find_package` result variables (e.g., `_FOUND`) to follow a certain
  pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindDoubleConversion.cmake:26 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:35 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found DOUBLE_CONVERSION: /usr/local/lib/libdouble-conversion.dylib  
-- Found double-conversion: /usr/local/lib/libdouble-conversion.dylib
-- Found gflags from package config /usr/local/lib/cmake/gflags/gflags-config.cmake
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (glog) does
  not match the name of the calling package (Glog).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/build/fbcode_builder/CMake/FindGlog.cmake:17 (find_package_handle_standard_args)
  thirdparty/folly/CMake/folly-deps.cmake:46 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found glog: /usr/local/lib/libglog.dylib  
-- Found libevent: /usr/local/lib/libevent.dylib
-- Looking for ASN1_TIME_diff
-- Looking for ASN1_TIME_diff - not found
-- Found BZip2: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libbz2.tbd (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - not found
-- Looking for lzma_auto_decoder in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_auto_decoder in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd - not found
-- Looking for lzma_easy_encoder in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_easy_encoder in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd - not found
-- Looking for lzma_lzma_preset in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd
-- Looking for lzma_lzma_preset in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd - not found
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5")
-- Found LZ4: /usr/local/lib/liblz4.dylib  
-- Found LZ4: /usr/local/lib/liblz4.dylib
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (ZSTD) does
  not match the name of the calling package (Zstd).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindZstd.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:90 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR) 
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (SNAPPY)
  does not match the name of the calling package (Snappy).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindSnappy.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:97 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SNAPPY: /usr/local/lib/libsnappy.dylib  
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBDWARF)
  does not match the name of the calling package (LibDwarf).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindLibDwarf.cmake:25 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:104 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBDWARF (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) 
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBIBERTY)
  does not match the name of the calling package (Libiberty).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindLibiberty.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:108 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBIBERTY (missing: LIBIBERTY_LIBRARY LIBIBERTY_INCLUDE_DIR) 
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBAIO)
  does not match the name of the calling package (LibAIO).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindLibAIO.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:112 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBAIO (missing: LIBAIO_LIBRARY LIBAIO_INCLUDE_DIR) 
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBURING)
  does not match the name of the calling package (LibUring).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindLibUring.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:116 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBURING (missing: LIBURING_LIBRARY LIBURING_INCLUDE_DIR) 
CMake Warning (dev) at /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBSODIUM)
  does not match the name of the calling package (Libsodium).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  thirdparty/folly/CMake/FindLibsodium.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  thirdparty/folly/CMake/folly-deps.cmake:120 (find_package)
  thirdparty/folly/CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found LIBSODIUM: /usr/local/lib/libsodium.dylib  
-- Found Libsodium: /usr/local/lib/libsodium.dylib
-- Looking for C++ include elf.h
-- Looking for C++ include elf.h - not found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include  
-- Setting FOLLY_USE_SYMBOLIZER: OFF
-- Performing Test FOLLY_CPP_ATOMIC_BUILTIN
-- Performing Test FOLLY_CPP_ATOMIC_BUILTIN - Success
-- Looking for C++ include jemalloc/jemalloc.h
-- Looking for C++ include jemalloc/jemalloc.h - found
-- Performing Test COMPILER_HAS_UNKNOWN_WARNING_OPTION
-- Performing Test COMPILER_HAS_UNKNOWN_WARNING_OPTION - Success
-- Performing Test COMPILER_HAS_W_SHADOW_LOCAL
-- Performing Test COMPILER_HAS_W_SHADOW_LOCAL - Failed
-- Performing Test COMPILER_HAS_W_SHADOW_COMPATIBLE_LOCAL
-- Performing Test COMPILER_HAS_W_SHADOW_COMPATIBLE_LOCAL - Failed
-- Performing Test COMPILER_HAS_W_NOEXCEPT_TYPE
-- Performing Test COMPILER_HAS_W_NOEXCEPT_TYPE - Success
-- Performing Test COMPILER_HAS_W_NULLABILITY_COMPLETENESS
-- Performing Test COMPILER_HAS_W_NULLABILITY_COMPLETENESS - Success
-- Performing Test COMPILER_HAS_W_INCONSISTENT_MISSING_OVERRIDE
-- Performing Test COMPILER_HAS_W_INCONSISTENT_MISSING_OVERRIDE - Success
-- Performing Test COMPILER_HAS_F_OPENMP
-- Performing Test COMPILER_HAS_F_OPENMP - Failed
-- Looking for pthread_atfork
-- Looking for pthread_atfork - found
-- Looking for memrchr
-- Looking for memrchr - not found
-- Looking for accept4
-- Looking for accept4 - not found
-- Looking for getrandom
-- Looking for getrandom - not found
-- Looking for preadv
-- Looking for preadv - found
-- Looking for pwritev
-- Looking for pwritev - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for pipe2
-- Looking for pipe2 - not found
-- Looking for sendmmsg
-- Looking for sendmmsg - not found
-- Looking for recvmmsg
-- Looking for recvmmsg - not found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - not found
-- Performing Test FOLLY_HAVE_IFUNC
-- Performing Test FOLLY_HAVE_IFUNC - Failed
-- Performing Test FOLLY_HAVE_STD__IS_TRIVIALLY_COPYABLE
-- Performing Test FOLLY_HAVE_STD__IS_TRIVIALLY_COPYABLE - Success
-- Performing Test FOLLY_HAVE_UNALIGNED_ACCESS
-- Performing Test FOLLY_HAVE_UNALIGNED_ACCESS - Success
-- Performing Test FOLLY_HAVE_VLA
-- Performing Test FOLLY_HAVE_VLA - Success
-- Performing Test FOLLY_HAVE_LINUX_VDSO
-- Performing Test FOLLY_HAVE_LINUX_VDSO - Failed
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of __int128
-- Check size of __int128 - done
-- Performing Test HAVE_INT128_TRAITS
-- Performing Test HAVE_INT128_TRAITS - Success
-- Performing Test FOLLY_HAVE_WCHAR_SUPPORT
-- Performing Test FOLLY_HAVE_WCHAR_SUPPORT - Success
-- Performing Test FOLLY_HAVE_EXTRANDOM_SFMT19937
-- Performing Test FOLLY_HAVE_EXTRANDOM_SFMT19937 - Failed
-- Performing Test FOLLY_USE_LIBCPP
-- Performing Test FOLLY_USE_LIBCPP - Success
-- Performing Test FOLLY_USE_LIBSTDCPP
-- Performing Test FOLLY_USE_LIBSTDCPP - Failed
-- Performing Test HAVE_VSNPRINTF_ERRORS
-- Performing Test HAVE_VSNPRINTF_ERRORS - Failed
-- Performing Test GFLAGS_NAMESPACE_IS_GFLAGS
-- Performing Test GFLAGS_NAMESPACE_IS_GFLAGS - Success
-- arch  does not match x86_64, skipping setting SSE2/AVX2 compile flags for LtHash SIMD code
-- Performing Test COMPILER_HAS_M_PCLMUL
-- Performing Test COMPILER_HAS_M_PCLMUL - Success
-- compiler has flag pclmul, setting compile flag for /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/hash/detail/ChecksumDetail.cpp;/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/hash/detail/Crc32CombineDetail.cpp;/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/hash/detail/Crc32cDetail.cpp
-- Adding CPU backend.
-- Adding LIBJIT library: libjit_cpu.
-- Adding Interpreter backend.
-- Check backend CPU for ONNXModelWriters
-- Check backend Interpreter for ONNXModelWriters
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib (found version "3.15.8") 
-- 
-- ******** Summary ********
--   CMake version         : 3.20.0
--   CMake command         : /usr/local/Cellar/cmake/3.20.0/bin/cmake
--   System                : Darwin
--   C++ compiler          : /Library/Developer/CommandLineTools/usr/bin/c++
--   C++ compiler version  : 12.0.0.12000032
--   CXX flags             :  -Wall -Wnon-virtual-dtor -Wnon-virtual-dtor
--   Build type            : Debug
--   Compile definitions   : GIT_SHA1="5780a1e0a";GIT_DATE="2021-05-04";GLOW_BUILD_DATE="2021-05-04";GLOW_VERSION="2021-05-04 (5780a1e0a)";WITH_PNG;GLOW_WITH_LLVMIRCODEGEN=1;GLOW_WITH_CPU=1;__STDC_FORMAT_MACROS;GOOGLE_PROTOBUF_NO_RTTI;ONNX_NAMESPACE=glow_onnx
--   CMAKE_PREFIX_PATH     : 
--   CMAKE_INSTALL_PREFIX  : /usr/local
--   CMAKE_MODULE_PATH     : /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/cmake/modules
-- 
--   ONNX version          : 1.5.0
--   ONNX NAMESPACE        : glow_onnx
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--   ONNXIFI_ENABLE_EXT    : OFF
-- 
--   Protobuf compiler     : /usr/local/bin/protoc
--   Protobuf includes     : /usr/local/include
--   Protobuf libraries    : /usr/local/lib/libprotobuf.dylib
--   BUILD_ONNX_PYTHON     : OFF
-- Check backend CPU for custom instructions or nodes
-- Check backend Interpreter for custom instructions or nodes
-- LLVM FileCheck Found: /usr/local/opt/llvm/bin/FileCheck
-- git Version: v1.5.0
-- Version: 1.5.0
-- Performing Test HAVE_CXX_FLAG_STD_CXX11
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WERROR
-- Performing Test HAVE_CXX_FLAG_WERROR - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Deprecation Warning at tests/googletest/CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at tests/googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at tests/googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Found PythonInterp: /Users/nickrichardson/opt/miniconda3/bin/python (found version "3.7.7") 
Skipping adding test en2gr_cpu_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test en2gr_quantization_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test en2gr_cpu_partition_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test en2gr_cpu_config_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
Skipping adding test resnet_runtime_test because it requires a models directory. Configure with -DGLOW_MODELS_DIR.
-- Configuring done
CMake Warning (dev) at thirdparty/folly/CMakeLists.txt:314 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types.  Run "cmake --help-policy CMP0063" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "folly_base" of type "OBJECT_LIBRARY" has the following visibility
  properties set for CXX:

    CXX_VISIBILITY_PRESET
    VISIBILITY_INLINES_HIDDEN

  For compatibility CMake is not honoring them for this target.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/folly/CMakeLists.txt:364 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types.  Run "cmake --help-policy CMP0063" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "folly_test_util" of type "STATIC_LIBRARY" has the following
  visibility properties set for CXX:

    CXX_VISIBILITY_PRESET
    VISIBILITY_INLINES_HIDDEN

  For compatibility CMake is not honoring them for this target.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at thirdparty/folly/folly/CMakeLists.txt:15 (add_library):
  Policy CMP0063 is not set: Honor visibility properties for all target
  types.  Run "cmake --help-policy CMP0063" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  Target "follybenchmark" of type "STATIC_LIBRARY" has the following
  visibility properties set for CXX:

    CXX_VISIBILITY_PRESET
    VISIBILITY_INLINES_HIDDEN

  For compatibility CMake is not honoring them for this target.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug
[191/687] Building CXX object thirdparty/folly/CMakeFiles/folly_base.dir/folly/net/NetOps.cpp.o
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/net/NetOps.cpp:324:15: warning: unused parameter 'timeout' [-Wunused-parameter]
    timespec* timeout) {
              ^
1 warning generated.
[210/687] Building CXX object thirdparty/folly/CMakeFiles/folly_base.dir/folly/synchronization/detail/Hardware.cpp.o
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/synchronization/detail/Hardware.cpp:122:72: warning: unused parameter 'status' [-Wunused-parameter]
[[noreturn]] FOLLY_DISABLE_SANITIZERS static void rtmAbortFunc(uint8_t status) {
                                                                       ^
1 warning generated.
[223/687] Running gen_proto.py on onnx/onnx.in.proto
Processing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/onnx/onnx/onnx.in.proto
Writing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx_glow_onnx-ml.proto
Writing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx_glow_onnx-ml.proto3
Writing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx-ml.pb.h
generating /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx_pb.py
[228/687] Running gen_proto.py on onnx/onnx-operators.in.proto
Processing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/onnx/onnx/onnx-operators.in.proto
Writing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx-operators_glow_onnx-ml.proto
Writing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx-operators_glow_onnx-ml.proto3
Writing /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx-operators-ml.pb.h
generating /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/build_Debug/lib/Importer/build_onnx/onnx/onnx_operators_pb.py
[239/687] Building CXX object thirdparty/folly/CMakeFiles/folly_base.dir/folly/system/MemoryMapping.cpp.o
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/system/MemoryMapping.cpp:283:17: warning: unused parameter 'addr' [-Wunused-parameter]
    const void* addr,
                ^
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly/folly/system/MemoryMapping.cpp:284:12: warning: unused parameter 'len' [-Wunused-parameter]
    size_t len,
           ^
2 warnings generated.
[250/687] Building CXX object tools/ClassGen/CMakeFiles/InstrGen.dir/InstrGen.cpp.o
FAILED: tools/ClassGen/CMakeFiles/InstrGen.dir/InstrGen.cpp.o 
/Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -DGIT_DATE=\"2021-05-04\" -DGIT_SHA1=\"5780a1e0a\" -DGLOW_BUILD_DATE=\"2021-05-04\" -DGLOW_VERSION="\"2021-05-04 (5780a1e0a)\"" -DGLOW_WITH_CPU=1 -DGLOW_WITH_LLVMIRCODEGEN=1 -DGOOGLE_GLOG_DLL_DECL="" -DGOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS="" -DWITH_PNG -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/include -Iinclude -I. -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/externalbackends -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/fp16/include -Iglow -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/miniz-2.0.8 -I/usr/local/opt/openssl/include -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly -Ithirdparty/folly -isystem /usr/local/opt/llvm/include -isystem /usr/local/include -Wall -Wnon-virtual-dtor -g -fno-omit-frame-pointer -O0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -std=c++14 -MD -MT tools/ClassGen/CMakeFiles/InstrGen.dir/InstrGen.cpp.o -MF tools/ClassGen/CMakeFiles/InstrGen.dir/InstrGen.cpp.o.d -o tools/ClassGen/CMakeFiles/InstrGen.dir/InstrGen.cpp.o -c /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrGen.cpp
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrGen.cpp:17:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:19:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/MemberType.h:20:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1701:19: error: no viable overloaded '='
        *__result = *__first;
        ~~~~~~~~~ ^ ~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1735:23: note: in instantiation of function template specialization 'std::__1::__copy_constexpr<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
        return _VSTD::__copy_constexpr(
                      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/vector:2002:24: note: in instantiation of function template specialization 'std::__1::copy<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
                _VSTD::copy(__first, __m, __p);
                       ^
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:225:20: note: in instantiation of function template specialization 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::insert<const llvm::StringRef *>' requested here
    newPair.second.insert(newPair.second.begin(), operands.begin(),
                   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:877:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'const std::__1::basic_string<char>' for 1st argument
    basic_string& operator=(const basic_string& __str);
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:885:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'std::__1::basic_string<char>' for 1st argument
    basic_string& operator=(basic_string&& __str)
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:888:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type>' (aka 'initializer_list<char>') for 1st argument
    basic_string& operator=(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size());}
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:890:45: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'const std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type *' (aka 'const char *') for 1st argument
    _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {return assign(__s);}
                                            ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:891:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type' (aka 'char') for 1st argument
    basic_string& operator=(value_type __c);
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:880:19: note: candidate template ignored: requirement '__can_be_converted_to_string_view<char, std::__1::char_traits<char>, llvm::StringRef>::value' was not satisfied [with _Tp = llvm::StringRef]
    basic_string& operator=(const _Tp& __t)
                  ^
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrGen.cpp:17:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:19:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/MemberType.h:20:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1710:12: error: no matching function for call to '__copy_constexpr'
    return __copy_constexpr(__first, __last, __result);
           ^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1738:23: note: in instantiation of function template specialization 'std::__1::__copy<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
        return _VSTD::__copy(
                      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/vector:2002:24: note: in instantiation of function template specialization 'std::__1::copy<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
                _VSTD::copy(__first, __m, __p);
                       ^
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:225:20: note: in instantiation of function template specialization 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::insert<const llvm::StringRef *>' requested here
    newPair.second.insert(newPair.second.begin(), operands.begin(),
                   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:218:9: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('const llvm::StringRef' vs. 'llvm::StringRef')
_CharT* __copy_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1698:1: note: candidate template ignored: substitution failure [with _InputIterator = const llvm::StringRef *, _OutputIterator = std::__1::basic_string<char> *]
__copy_constexpr(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
^
2 errors generated.
[258/687] Building CXX object tools/ClassGen/CMakeFiles/InstrGen.dir/InstrBuilder.cpp.o
FAILED: tools/ClassGen/CMakeFiles/InstrGen.dir/InstrBuilder.cpp.o 
/Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_REGEX_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_LINK -DFMT_LOCALE -DGFLAGS_IS_A_DLL=0 -DGIT_DATE=\"2021-05-04\" -DGIT_SHA1=\"5780a1e0a\" -DGLOW_BUILD_DATE=\"2021-05-04\" -DGLOW_VERSION="\"2021-05-04 (5780a1e0a)\"" -DGLOW_WITH_CPU=1 -DGLOW_WITH_LLVMIRCODEGEN=1 -DGOOGLE_GLOG_DLL_DECL="" -DGOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS="" -DWITH_PNG -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/include -Iinclude -I. -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/externalbackends -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/fp16/include -Iglow -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/miniz-2.0.8 -I/usr/local/opt/openssl/include -I/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/thirdparty/folly -Ithirdparty/folly -isystem /usr/local/opt/llvm/include -isystem /usr/local/include -Wall -Wnon-virtual-dtor -g -fno-omit-frame-pointer -O0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fPIE -fvisibility=hidden -fvisibility-inlines-hidden -std=c++14 -MD -MT tools/ClassGen/CMakeFiles/InstrGen.dir/InstrBuilder.cpp.o -MF tools/ClassGen/CMakeFiles/InstrGen.dir/InstrBuilder.cpp.o.d -o tools/ClassGen/CMakeFiles/InstrGen.dir/InstrBuilder.cpp.o -c /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.cpp
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.cpp:17:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:19:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/MemberType.h:20:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1701:19: error: no viable overloaded '='
        *__result = *__first;
        ~~~~~~~~~ ^ ~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1735:23: note: in instantiation of function template specialization 'std::__1::__copy_constexpr<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
        return _VSTD::__copy_constexpr(
                      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/vector:2002:24: note: in instantiation of function template specialization 'std::__1::copy<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
                _VSTD::copy(__first, __m, __p);
                       ^
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:225:20: note: in instantiation of function template specialization 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::insert<const llvm::StringRef *>' requested here
    newPair.second.insert(newPair.second.begin(), operands.begin(),
                   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:877:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'const std::__1::basic_string<char>' for 1st argument
    basic_string& operator=(const basic_string& __str);
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:885:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'std::__1::basic_string<char>' for 1st argument
    basic_string& operator=(basic_string&& __str)
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:888:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'initializer_list<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type>' (aka 'initializer_list<char>') for 1st argument
    basic_string& operator=(initializer_list<value_type> __il) {return assign(__il.begin(), __il.size());}
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:890:45: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'const std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type *' (aka 'const char *') for 1st argument
    _LIBCPP_INLINE_VISIBILITY basic_string& operator=(const value_type* __s) {return assign(__s);}
                                            ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:891:19: note: candidate function not viable: no known conversion from 'const llvm::StringRef' to 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::value_type' (aka 'char') for 1st argument
    basic_string& operator=(value_type __c);
                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:880:19: note: candidate template ignored: requirement '__can_be_converted_to_string_view<char, std::__1::char_traits<char>, llvm::StringRef>::value' was not satisfied [with _Tp = llvm::StringRef]
    basic_string& operator=(const _Tp& __t)
                  ^
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.cpp:17:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:19:
In file included from /Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/MemberType.h:20:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:504:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:175:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:57:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1710:12: error: no matching function for call to '__copy_constexpr'
    return __copy_constexpr(__first, __last, __result);
           ^~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1738:23: note: in instantiation of function template specialization 'std::__1::__copy<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
        return _VSTD::__copy(
                      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/vector:2002:24: note: in instantiation of function template specialization 'std::__1::copy<const llvm::StringRef *, std::__1::basic_string<char> *>' requested here
                _VSTD::copy(__first, __m, __p);
                       ^
/Users/nickrichardson/Work/courses/2021/spring/ele475/tooling/glow/tools/ClassGen/InstrBuilder.h:225:20: note: in instantiation of function template specialization 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::insert<const llvm::StringRef *>' requested here
    newPair.second.insert(newPair.second.begin(), operands.begin(),
                   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__string:218:9: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('const llvm::StringRef' vs. 'llvm::StringRef')
_CharT* __copy_constexpr(_CharT* __s1, const _CharT* __s2, size_t __n) _NOEXCEPT
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1698:1: note: candidate template ignored: substitution failure [with _InputIterator = const llvm::StringRef *, _OutputIterator = std::__1::basic_string<char> *]
__copy_constexpr(_InputIterator __first, _InputIterator __last, _OutputIterator __result)
^
2 errors generated.
[267/687] Building CXX object tests/googlebenchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o
ninja: build stopped: subcommand failed.
jraynal commented 3 years ago

Hi there,

Was browsing issues regarding the build, and saw #5175. Looks like this codebase doesn't like newer LLVM versions, where they decided to remove the explicit conversion of llvm::StringRef to std::string. You can get down the rabbit hole of trying to fix the compilation, or you can install clang 7 (also works with 8, for others I do not know). You should be able to do that with brew, then select the correct version of clang. One easy way to do that is set the environment variables CC and CXX to clang-7 and clang++-7 (or whichever version you use). Then fix the path of the LLVM tools configured in your CMake. I use ccmake to do that. The variables I had to edit are LIBJIT_LLVM_LINK_BIN and LLVM_DIR.

Hope that helps.