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 problem #4

Open
assignUser opened this issue Nov 21, 2022 · 0 comments
Open

Build problem #4

assignUser opened this issue Nov 21, 2022 · 0 comments

Comments

@assignUser
Copy link
Owner

Problem description

Please describe how you were trying to build velox and what issue occured

System information

Velox System Info v0.0.1
Commit: 43c3057
CMake Version: 3.24.2
System: Linux-5.15.76-1-MANJARO
Arch: x86_64
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 12.2.0
C Compiler: /usr/bin/cc
C Compiler Version: 12.2.0
CMake Prefix Path: /usr/local;/usr;/;/usr;/usr/local;/usr/X11R6;/usr/pkg;/opt

CMake log

make cmake BUILD_DIR=release BUILD_TYPE=Release && \
make build BUILD_DIR=release
make[1]: Entering directory '/home/jwj/code/velox'
mkdir -p _build/release && \
cmake -B \
        "_build/release" \
        -DTREAT_WARNINGS_AS_ERRORS=1 -DENABLE_ALL_WARNINGS=1 -DVELOX_BUILD_MINIMAL="OFF" -DVELOX_BUILD_TESTING="ON" -DCMAKE_BUILD_TYPE=Release \
        -GNinja -DMAX_LINK_JOBS= -DMAX_HIGH_MEM_JOBS= \
        -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
         \

-- Build type: Release
-- Disabling Codegen
Setting CMAKE_CXX_FLAGS=-mavx2 -mfma -mavx -mf16c -mlzcnt -std=c++17 -mbmi2
FINAL CMAKE_CXX_FLAGS= -mavx2 -mfma -mavx -mf16c -mlzcnt -std=c++17 -mbmi2 -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare
        -Wno-ignored-qualifiers        -Wno-implicit-fallthrough          -Wno-empty-body          -Wno-class-memaccess          -Wno-comment          -Wno-int-in-bool-context          -Wno-redundant-move          
-Wno-array-bounds          -Wno-maybe-uninitialized          -Wno-unused-result          -Wno-format-overflow          -Wno-strict-aliasing          -Wno-type-limits
-- Found Boost: /usr/lib64/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.66.0") found components: program_options context filesystem regex thread system date_time ato
mic 
-- Building Folly from source
CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1267 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  ThirdpartyToolchain.cmake:69 (FetchContent_Declare)
  ThirdpartyToolchain.cmake:156 (build_folly)
  ThirdpartyToolchain.cmake:207 (build_dependency)
  CMakeLists.txt:283 (resolve_dependency)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Boost: /usr/lib64/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread 
-- Found gflags from package config /usr/lib64/cmake/gflags/gflags-config.cmake
-- Found libevent: /usr/lib/libevent.so
-- Found LZ4: /usr/lib/liblz4.so
CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindZstd.cmake:32 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:114 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Zstd: /usr/lib/libzstd.so
CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindSnappy.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:121 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindLibDwarf.cmake:25 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:128 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindLibiberty.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:132 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindLibAIO.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:136 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindLibUring.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:140 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/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):
  _build/release/_deps/folly-src/CMake/FindLibsodium.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:144 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Libsodium: /usr/lib/libsodium.so
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBUNWIND)
  does not match the name of the calling package (LibUnwind).  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/release/_deps/folly-src/build/fbcode_builder/CMake/FindLibUnwind.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  _build/release/_deps/folly-src/CMake/folly-deps.cmake:156 (find_package)
  _build/release/_deps/folly-src/CMakeLists.txt:118 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Setting FOLLY_USE_SYMBOLIZER: ON
-- Setting FOLLY_HAVE_ELF: 1
-- Setting FOLLY_HAVE_DWARF: TRUE
-- GCC has support for C++ coroutines, setting flag for Folly build.
-- arch  does not match x86_64, skipping setting SSE2/AVX2 compile flags for LtHash SIMD code
-- compiler has flag pclmul, setting compile flag for /home/jwj/code/velox/_build/release/_deps/folly-src/folly/hash/detail/ChecksumDetail.cpp;/home/jwj/code/velox/_build/release/_deps/folly-src/folly/hash/detail/C
rc32CombineDetail.cpp;/home/jwj/code/velox/_build/release/_deps/folly-src/folly/hash/detail/Crc32cDetail.cpp
-- xsimd v9.0.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jwj/code/velox/_build/release
make[1]: Leaving directory '/home/jwj/code/velox'
make[1]: Entering directory '/home/jwj/code/velox'
cmake --build _build/release -j 16
[3/1262] Building CXX object _deps/folly-build/CMakeFiles/folly_base.dir/folly/Demangle.cpp.o
FAILED: _deps/folly-build/CMakeFiles/folly_base.dir/folly/Demangle.cpp.o 
ccache /usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGR
AM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DFMT_SHARED -DFOLLY_XLOG_STRIP_PREFIXES=\"/home/jwj/code/ve
lox:/home/jwj/code/velox/_build/release\" -DGFLAGS_IS_A_DLL=0 -D_GNU_SOURCE -D_REENTRANT -I/home/jwj/code/velox/_build/release/_deps/folly-src -I/home/jwj/code/velox/_build/release/_deps/folly-build -I/usr/include/
libiberty -mavx2 -mfma -mavx -mf16c -mlzcnt -std=c++17 -mbmi2 -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Werror -Wall -Wextra -Wno-unused        -Wno-unused-parameter        -Wno-sign-compare        -Wno-
ignored-qualifiers        -Wno-implicit-fallthrough          -Wno-empty-body          -Wno-class-memaccess          -Wno-comment          -Wno-int-in-bool-context          -Wno-redundant-move          -Wno-array-bo
unds          -Wno-maybe-uninitialized          -Wno-unused-result          -Wno-format-overflow          -Wno-strict-aliasing          -Wno-type-limits -O3 -DNDEBUG -g -Wall -Wextra -O3 -fPIC -fcoroutines -g -std=
gnu++1z -finput-charset=UTF-8 -fsigned-char -Wall -Wno-deprecated -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused -Wuninitialized -Wunused-label -Wunused-result -Wno-unused-parameter -Wno-overloaded-virt
ual -Wno-stringop-overflow -Wshadow-compatible-local -Wno-noexcept-type -faligned-new -fopenmp -std=gnu++17 -MD -MT _deps/folly-build/CMakeFiles/folly_base.dir/folly/Demangle.cpp.o -MF _deps/folly-build/CMakeFiles/
folly_base.dir/folly/Demangle.cpp.o.d -o _deps/folly-build/CMakeFiles/folly_base.dir/folly/Demangle.cpp.o -c /home/jwj/code/velox/_build/release/_deps/folly-src/folly/Demangle.cpp
/home/jwj/code/velox/_build/release/_deps/folly-src/folly/Demangle.cpp:90:5: error: the address of ‘int cplus_demangle_v3_callback(const char*, int, demangle_callbackref, void*)’ will never be NULL [-Werror=address
]
   90 |     reinterpret_cast<void*>(liberty_demangle);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/jwj/code/velox/_build/release/_deps/folly-src/folly/Demangle.cpp:35:
/usr/include/libiberty/demangle.h:143:1: note: ‘int cplus_demangle_v3_callback(const char*, int, demangle_callbackref, void*)’ declared here
  143 | cplus_demangle_v3_callback (const char *mangled, int options,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jwj/code/velox/_build/release/_deps/folly-src/folly/Demangle.cpp: In function ‘size_t folly::demangle(const char*, char*, size_t)’:
/home/jwj/code/velox/_build/release/_deps/folly-src/folly/Demangle.cpp:158:7: error: the address of ‘int cplus_demangle_v3_callback(const char*, int, demangle_callbackref, void*)’ will never be NULL [-Werror=addres
s]
  158 |   if (reinterpret_cast<void*>(liberty_demangle)) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libiberty/demangle.h:143:1: note: ‘int cplus_demangle_v3_callback(const char*, int, demangle_callbackref, void*)’ declared here
  143 | cplus_demangle_v3_callback (const char *mangled, int options,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
[18/1262] Building CXX object _deps/folly-build/CMakeFiles/folly_base.dir/folly/Random.cpp.o
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:81: build] Error 1
make[1]: Leaving directory '/home/jwj/code/velox'
make: *** [Makefile:88: release] Error 2
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

1 participant