Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build does not work with Raspberry Pi 4B with Raspbian #1397

Open
JuKu opened this issue Jun 24, 2020 · 1 comment
Open

Build does not work with Raspberry Pi 4B with Raspbian #1397

JuKu opened this issue Jun 24, 2020 · 1 comment

Comments

@JuKu
Copy link

JuKu commented Jun 24, 2020

Hi,

thanks for your great work!
Badly, the build does not work with Raspberry Pi 4B (4GB RAM, ARMv7) with Raspbian.

I get the following cmake error:

<Username>@raspberrypi2:/tmp/dependencies/folly-2020.06.15.00/_build $ cmake ..
-- The CXX compiler identification is GNU 8.3.0
-- The C compiler identification is GNU 8.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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/include (found suitable version "1.67.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread chrono date_time atomic
CMake Warning (dev) at /usr/local/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):
  CMake/FindDoubleConversion.cmake:26 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:49 (find_package)
  CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found DOUBLE_CONVERSION: /usr/local/lib/libdouble-conversion.so
-- Found double-conversion: /usr/local/lib/libdouble-conversion.so
-- Found gflags from package config /usr/lib/arm-linux-gnueabihf/cmake/gflags/gflags-config.cmake
CMake Warning (dev) at /usr/local/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):
  build/fbcode_builder/CMake/FindGlog.cmake:17 (find_package_handle_standard_args)
  CMake/folly-deps.cmake:62 (find_package)
  CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found glog: /usr/lib/arm-linux-gnueabihf/libglog.so
-- Found libevent: /usr/lib/arm-linux-gnueabihf/libevent.so
-- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.1.1d")
-- Looking for ASN1_TIME_diff
-- Looking for ASN1_TIME_diff - found
-- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.11")
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Looking for lzma_auto_decoder in /usr/lib/arm-linux-gnueabihf/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/arm-linux-gnueabihf/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/arm-linux-gnueabihf/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/arm-linux-gnueabihf/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/arm-linux-gnueabihf/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/arm-linux-gnueabihf/liblzma.so - found
-- Found LibLZMA: /usr/lib/arm-linux-gnueabihf/liblzma.so (found version "5.2.4")
-- Found LZ4: /usr/lib/arm-linux-gnueabihf/liblz4.so
-- Found LZ4: /usr/lib/arm-linux-gnueabihf/liblz4.so
CMake Warning (dev) at /usr/local/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):
  CMake/FindZstd.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:106 (find_package)
  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/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):
  CMake/FindSnappy.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:113 (find_package)
  CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SNAPPY: /usr/lib/arm-linux-gnueabihf/libsnappy.so
CMake Warning (dev) at /usr/local/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):
  CMake/FindLibDwarf.cmake:25 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:120 (find_package)
  CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found LIBDWARF: /usr/lib/arm-linux-gnueabihf/libdwarf.so
CMake Warning (dev) at /usr/local/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):
  CMake/FindLibiberty.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:124 (find_package)
  CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found LIBIBERTY: /usr/lib/arm-linux-gnueabihf/libiberty.a
CMake Warning (dev) at /usr/local/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):
  CMake/FindLibAIO.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:128 (find_package)
  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/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):
  CMake/FindLibUring.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:132 (find_package)
  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/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):
  CMake/FindLibsodium.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:136 (find_package)
  CMakeLists.txt:113 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found LIBSODIUM: /usr/lib/arm-linux-gnueabihf/libsodium.so
-- Found Libsodium: /usr/lib/arm-linux-gnueabihf/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: ON
-- 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 - Failed
-- Performing Test COMPILER_HAS_W_SHADOW_LOCAL
-- Performing Test COMPILER_HAS_W_SHADOW_LOCAL - Success
-- Performing Test COMPILER_HAS_W_SHADOW_COMPATIBLE_LOCAL
-- Performing Test COMPILER_HAS_W_SHADOW_COMPATIBLE_LOCAL - Success
-- 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 - Failed
-- Performing Test COMPILER_HAS_W_INCONSISTENT_MISSING_OVERRIDE
-- Performing Test COMPILER_HAS_W_INCONSISTENT_MISSING_OVERRIDE - Failed
-- Performing Test COMPILER_HAS_F_ALIGNED_NEW
-- Performing Test COMPILER_HAS_F_ALIGNED_NEW - 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 - 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 arm-linux-gnueabihf 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 - Failed
-- compiler does not have flag pclmul, skipping setting compile flags for /tmp/dependencies/folly-2020.06.15.00/folly/hash/detail/ChecksumDetail.cpp;/tmp/dependencies/folly-2020.06.15.00/folly/hash/detail/Crc32CombineDetail.cpp;/tmp/dependencies/folly-2020.06.15.00/folly/hash/detail/Crc32cDetail.cpp
-- Configuring done
CMake Error at CMakeLists.txt:446 (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 CMakeLists.txt:446 (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.


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

How can i fix this?
Thank you very much!

@Fla3inH0tCheet0s
Copy link

I saw the same problem. I think it is related to using cmake 3.18.2. cmake 3.16.2 seems fine. Ideally, the warnings in cmake 3.16.2 would be removed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants