I tried to install glow on my server with the operating system:
Linux version 4.15.0-112-generic (buildd@lcy01-amd64-027) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020
I followed the installation steps as in the website GitHub - pytorch/glow: Compiler for Neural Network hardware accelerators
But when I tried to build glow with the following command:
cmake -G Ninja ../glow -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm
I got the following error:
cmake -G Ninja ../glow -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm
-- Cannot find glog automatically. Using legacy find.
-- Found glog: /usr/local/include
-- Found glog (include: /usr/local/include, library: /usr/local/lib/libglog.so)
-- Glow: Found gflags with new-style gflags target.
-- Using 64b tensor dimensions.
-- Libjit option 'fast-math' enabled.
-- Found LLVM 8.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-8/lib/cmake/llvm
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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/lib/x86_64-linux-gnu/libdouble-conversion.so
-- Found gflags from package config /usr/lib/x86_64-linux-gnu/cmake/gflags/gflags-config.cmake
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.so
-- Found libevent: /usr/lib/x86_64-linux-gnu/libevent.so
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.2")
-- Found LZ4: /usr/lib/x86_64-linux-gnu/liblz4.so
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.
-- Found Zstd: /usr/lib/x86_64-linux-gnu/libzstd.so
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.
-- Could NOT find SNAPPY (missing: SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR)
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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 /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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 /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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 /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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/lib/x86_64-linux-gnu/libsodium.so
-- Setting FOLLY_USE_SYMBOLIZER: OFF
-- arch x86_64-linux-gnu matches x86_64, setting SSE2/AVX2 compile flags for LtHash SIMD code
-- compiler has flag pclmul, setting compile flag for /export/d1/user2/glow/thirdparty/folly/folly/hash/detail/ChecksumDetail.cpp;/export/d1/user2/glow/thirdparty/folly/folly/hash/detail/Crc32CombineDetail.cpp;/export/d1/user2/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
--
-- ******** Summary ********
-- CMake version : 3.20.0-rc3
-- CMake command : /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 7.1.0
-- CXX flags : -Wall -Wnon-virtual-dtor -Wnon-virtual-dtor
-- Build type : Debug
-- Compile definitions : GIT_SHA1="23e8e0065";GIT_DATE="2021-05-17";GLOW_BUILD_DATE="2021-05-18";GLOW_VERSION="2021-05-18 (23e8e0065)";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 : /export/d1/user2/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.so
-- BUILD_ONNX_PYTHON : OFF
-- Check backend CPU for custom instructions or nodes
-- Check backend Interpreter for custom instructions or nodes
-- Failed to find LLVM FileCheck
-- git Version: v1.5.0
-- Version: 1.5.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- 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.
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: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
CMake Generate step failed. Build files cannot be regenerated correctly.
(glow-build) user2@shuaicpu1:~/build_Debug$ whereis cmake
cmake: /usr/bin/cmake /usr/lib/x86_64-linux-gnu/cmake /usr/lib/cmake /usr/local/bin/cmake /usr/local/lib/cmake /usr/share/cmake /usr/share/man/man1/cmake.1.gz
(glow-build) user2@shuaicpu1:~/build_Debug$ /usr/lib/cmake -G Ninja ../glow -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm
-bash: /usr/lib/cmake: Is a directory
(glow-build) user2@shuaicpu1:~/build_Debug$ /usr/lib/x86_64-linux-gnu/cmake -G Ninja ../glow -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm
-bash: /usr/lib/x86_64-linux-gnu/cmake: Is a directory
(glow-build) user2@shuaicpu1:~/build_Debug$ /usr/local/bin/cmake -G Ninja ../glow -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=/usr/lib/llvm-8/lib/cmake/llvm
-- Cannot find glog automatically. Using legacy find.
-- Found glog: /usr/local/include
-- Found glog (include: /usr/local/include, library: /usr/local/lib/libglog.so)
-- Glow: Found gflags with new-style gflags target.
-- Using 64b tensor dimensions.
-- Libjit option 'fast-math' enabled.
-- Found LLVM 8.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-8/lib/cmake/llvm
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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/lib/x86_64-linux-gnu/libdouble-conversion.so
-- Found gflags from package config /usr/lib/x86_64-linux-gnu/cmake/gflags/gflags-config.cmake
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.so
-- Found libevent: /usr/lib/x86_64-linux-gnu/libevent.so
-- Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.2")
-- Found LZ4: /usr/lib/x86_64-linux-gnu/liblz4.so
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.
-- Found Zstd: /usr/lib/x86_64-linux-gnu/libzstd.so
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.
-- Could NOT find SNAPPY (missing: SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR)
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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 /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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 /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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.
CMake Warning (dev) at /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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 /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/share/cmake-3.20/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/lib/x86_64-linux-gnu/libsodium.so
-- Setting FOLLY_USE_SYMBOLIZER: OFF
-- arch x86_64-linux-gnu matches x86_64, setting SSE2/AVX2 compile flags for LtHash SIMD code
-- compiler has flag pclmul, setting compile flag for /export/d1/user2/glow/thirdparty/folly/folly/hash/detail/ChecksumDetail.cpp;/export/d1/user2/glow/thirdparty/folly/folly/hash/detail/Crc32CombineDetail.cpp;/export/d1/user2/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
--
-- ******** Summary ********
-- CMake version : 3.20.0-rc3
-- CMake command : /home/somename/mctoll/cmake_upgrade/cmake-3.20.0-rc3-linux-x86_64/bin/cmake
-- System : Linux
-- C++ compiler : /usr/bin/c++
-- C++ compiler version : 7.1.0
-- CXX flags : -Wall -Wnon-virtual-dtor -Wnon-virtual-dtor
-- Build type : Debug
-- Compile definitions : GIT_SHA1="23e8e0065";GIT_DATE="2021-05-17";GLOW_BUILD_DATE="2021-05-18";GLOW_VERSION="2021-05-18 (23e8e0065)";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 : /export/d1/user2/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.so
-- BUILD_ONNX_PYTHON : OFF
-- Check backend CPU for custom instructions or nodes
-- Check backend Interpreter for custom instructions or nodes
-- Failed to find LLVM FileCheck
-- git Version: v1.5.0
-- Version: 1.5.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- 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.
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: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
CMake Generate step failed. Build files cannot be regenerated correctly.
Could anyone help me to figure out what’s the problem here? Thanks in advance!