glow icon indicating copy to clipboard operation
glow copied to clipboard

CMake Error at thirdparty/folly/CMakeLists.txt:423

Open JosseVanDelm opened this issue 5 years ago • 3 comments

Hi there, i'm trying to build glow on my Arch Linux machine. I've followed the steps in the https://github.com/pytorch/glow/blob/master/README.md but i got stuck at https://github.com/pytorch/glow#configure-and-build

calling cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../glow from the /build_Debug directory gives me this:

CMake Error: The source directory "/home/josse/Thesis/tryout-glow/glow/glow" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

calling cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug .. from that same directory gives me this output:

-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - 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: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Cannot find glog automatically. Using legacy find.
-- Found glog: /usr/include  
-- Found glog (include: /usr/include, library: /usr/lib/libglog.so)
-- 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.29.2") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37") 
-- Using 64b tensor dimensions.
-- Libjit option 'fast-math' enabled.
-- Found LLVM 10.0.1
-- Using LLVMConfig.cmake in: /usr/lib64/cmake/llvm
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Found Boost: /usr/lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread 
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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/lib/libdouble-conversion.so  
-- Found double-conversion: /usr/lib/libdouble-conversion.so
-- Found gflags from package config /usr/lib64/cmake/gflags/gflags-config.cmake
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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/lib/libglog.so  
-- Found libevent: /usr/lib/libevent.so
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1h")  
-- Looking for ASN1_TIME_diff
-- Looking for ASN1_TIME_diff - not found
-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.8") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - not found
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - not found
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - not found
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - 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/lib/liblz4.so  
-- Found LZ4: /usr/lib/liblz4.so
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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.

-- Found ZSTD: /usr/lib/libzstd.so  
-- Found Zstd: /usr/lib/libzstd.so
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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/lib/libsnappy.so  
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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) 
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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.

-- Found LIBIBERTY: /usr/lib/libiberty.a  
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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.

-- Found LIBAIO: /usr/lib/libaio.so  
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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.

-- Found LIBURING: /usr/lib/liburing.so  
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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/lib/libsodium.so  
-- Found Libsodium: /usr/lib/libsodium.so
-- Looking for C++ include elf.h
-- Looking for C++ include elf.h - found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Setting FOLLY_USE_SYMBOLIZER: OFF
-- Performing Test FOLLY_CPP_ATOMIC_BUILTIN
-- Performing Test FOLLY_CPP_ATOMIC_BUILTIN - Failed
-- Performing Test FOLLY_CPP_ATOMIC_WITH_LIBATOMIC
-- Performing Test FOLLY_CPP_ATOMIC_WITH_LIBATOMIC - 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 - Success
-- Looking for pthread_atfork
-- Looking for pthread_atfork - found
-- Looking for memrchr
-- Looking for memrchr - found
-- Looking for accept4
-- Looking for accept4 - found
-- Looking for getrandom
-- Looking for getrandom - 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 - found
-- Looking for sendmmsg
-- Looking for sendmmsg - found
-- Looking for recvmmsg
-- Looking for recvmmsg - found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
-- Performing Test FOLLY_HAVE_IFUNC
-- Performing Test FOLLY_HAVE_IFUNC - Success
-- 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_WEAK_SYMBOLS
-- Performing Test FOLLY_HAVE_WEAK_SYMBOLS - Success
-- Performing Test FOLLY_HAVE_LINUX_VDSO
-- Performing Test FOLLY_HAVE_LINUX_VDSO - Success
-- 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 - Failed
-- 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 - Success
-- Performing Test FOLLY_USE_LIBCPP
-- Performing Test FOLLY_USE_LIBCPP - Failed
-- Performing Test FOLLY_USE_LIBSTDCPP
-- Performing Test FOLLY_USE_LIBSTDCPP - Success
-- Performing Test HAVE_VSNPRINTF_ERRORS
-- Performing Test HAVE_VSNPRINTF_ERRORS - Success
-- 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 /home/josse/Thesis/tryout-glow/glow/thirdparty/folly/folly/hash/detail/ChecksumDetail.cpp;/home/josse/Thesis/tryout-glow/glow/thirdparty/folly/folly/hash/detail/Crc32CombineDetail.cpp;/home/josse/Thesis/tryout-glow/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/lib/libprotobuf.so (found version "3.12.4") 
-- 
-- ******** Summary ********
--   CMake version         : 3.18.4
--   CMake command         : /usr/bin/cmake
--   System                : Linux
--   C++ compiler          : /usr/bin/clang++
--   C++ compiler version  : 10.0.1
--   CXX flags             :  -Wall -Wnon-virtual-dtor -Wnon-virtual-dtor
--   Build type            : Debug
--   Compile definitions   : GIT_SHA1="d2710b74";GIT_DATE="2020-10-30";GLOW_BUILD_DATE="2020-11-01";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     : /home/josse/Thesis/tryout-glow/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/bin/protoc
--   Protobuf includes     : /usr/include
--   Protobuf libraries    : /usr/lib/libprotobuf.so
--   BUILD_ONNX_PYTHON     : OFF
-- Check backend CPU for custom instructions or nodes
-- Check backend Interpreter for custom instructions or nodes
-- LLVM FileCheck Found: /usr/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
-- Found PythonInterp: /usr/bin/python (found version "3.8.6") 
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 Error at thirdparty/folly/CMakeLists.txt:423 (file):
  Error evaluating generator expression:

    $<COMPILE_LANG_AND_ID:CUDA,NVIDIA>

  $<COMPILE_LANG_AND_ID:lang,id> may only be used with binary targets to
  specify include directories, compile definitions, and compile options.  It
  may not be used with the add_custom_command, add_custom_target, or
  file(GENERATE) commands.


CMake Error at thirdparty/folly/CMakeLists.txt:423 (file):
  Error evaluating generator expression:

    $<COMPILE_LANG_AND_ID:CUDA,NVIDIA>

  $<COMPILE_LANG_AND_ID:lang,id> may only be used with binary targets to
  specify include directories, compile definitions, and compile options.  It
  may not be used with the add_custom_command, add_custom_target, or
  file(GENERATE) commands.


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/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/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
CMake Generate step failed.  Build files cannot be regenerated correctly.

It appears that this is a known bug in folly https://github.com/facebook/folly/issues/1414, but i'm not sure what I should do to alleviate the problem for glow building. Please let me know what more details I need to provide or how I can proceed.

Thanks!

JosseVanDelm avatar Nov 01 '20 13:11 JosseVanDelm

Hmm, if this is a know issue in folly then I think the main workaround here is to just build folly separately with some commit that works and then place it in ${GLOW_THIRDPARTY_DIR}/folly/folly. CMake should be happy to find that build. Or we could add some extra CMake logic to specify a specific folly build to use.

jfix71 avatar Dec 16 '20 23:12 jfix71

Is this issue still present?? I'm facing the same error.

harishch4 avatar May 16 '24 16:05 harishch4