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

[wangle:x64-linux] build failure #20586

Closed
nusus opened this issue Oct 8, 2021 · 5 comments · Fixed by #22967
Closed

[wangle:x64-linux] build failure #20586

nusus opened this issue Oct 8, 2021 · 5 comments · Fixed by #22967
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@nusus
Copy link

nusus commented Oct 8, 2021

CMake build failed with wangle, vcpkg.

-- Found Boost: /root/projects/vcpkg/installed/x64-linux/include (found suitable version "1.77.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread chrono date_time atomic 
-- Found folly: /root/projects/vcpkg/installed/x64-linux
CMake Error at /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package):
  By not providing "FindSodium.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Sodium", but
  CMake did not find one.

  Could not find a package configuration file provided by "Sodium" with any
  of the following names:

    SodiumConfig.cmake
    sodium-config.cmake

  Add the installation prefix of "Sodium" to CMAKE_PREFIX_PATH or set
  "Sodium_DIR" to a directory containing one of the above files.  If "Sodium"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/fizz/fizz-config.cmake:53 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:43 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


-- Configuring incomplete, errors occurred!

Environment

  • OS: Linux
  • Compiler: The C compiler identification is GNU 7.5.0, The CXX compiler identification is GNU 7.5.0

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install wangle:x64-linux
  2. Use wangle in my CMakeLists.txt

Failure logs

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- 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
-- 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
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
CMake Warning (dev) at /root/projects/vcpkg/installed/x64-linux/share/zlib/vcpkg-cmake-wrapper.cmake:13 (_find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  CMake variable ZLIB_ROOT is set to:

    /root/projects/vcpkg/installed/x64-linux

  For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:5 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found ZLIB: optimized;/root/projects/vcpkg/installed/x64-linux/lib/libz.a;debug;/root/projects/vcpkg/installed/x64-linux/debug/lib/libz.a (found version "1.2.11") 
CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


CMake Warning at /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1354 (message):
  New Boost version may have incorrect or missing dependencies and imported
  targets
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:1477 (_Boost_COMPONENT_DEPENDENCIES)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/FindBoost.cmake:2087 (_Boost_MISSING_DEPENDENCIES)
  /root/projects/vcpkg/installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:740 (include)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/folly/folly-config.cmake:63 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:42 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)


-- Found Boost: /root/projects/vcpkg/installed/x64-linux/include (found suitable version "1.77.0", minimum required is "1.51.0") found components: context filesystem program_options regex system thread chrono date_time atomic 
-- Found folly: /root/projects/vcpkg/installed/x64-linux
CMake Error at /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package):
  By not providing "FindSodium.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Sodium", but
  CMake did not find one.

  Could not find a package configuration file provided by "Sodium" with any
  of the following names:

    SodiumConfig.cmake
    sodium-config.cmake

  Add the installation prefix of "Sodium" to CMAKE_PREFIX_PATH or set
  "Sodium_DIR" to a directory containing one of the above files.  If "Sodium"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/fizz/fizz-config.cmake:53 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  /root/projects/vcpkg/downloads/tools/cmake-3.21.1-linux/cmake-3.21.1-linux-x86_64/share/cmake-3.21/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /root/projects/vcpkg/installed/x64-linux/share/wangle/wangle-config.cmake:43 (find_dependency)
  /root/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:786 (_find_package)
  src/wangle_server/CMakeLists.txt:1 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/projects/experiment-projects/WanglePractice/build/CMakeFiles/CMakeOutput.log".
See also "/root/projects/experiment-projects/WanglePractice/build/CMakeFiles/CMakeError.log".
@JonLiu1993 JonLiu1993 self-assigned this Oct 8, 2021
@JonLiu1993 JonLiu1993 added the requires:repro The issue is not currently repro-able label Oct 8, 2021
@JonLiu1993
Copy link
Member

@nusus ,Could you please provide your CMakeLists.txt?

@cmachaca
Copy link

cmachaca commented Oct 8, 2021

Hello good!
I fixed it by changing sodium to unofficial-sodium in the port patch.
File: ports/fizz/fix-zlib.patch
`diff --git a/fizz/CMakeLists.txt b/fizz/CMakeLists.txt
index 485e38fc..471d61a5 100644
--- a/fizz/CMakeLists.txt
+++ b/fizz/CMakeLists.txt
@@ -87,6 +87,8 @@ else()
list(APPEND CMAKE_REQUIRED_INCLUDES ${LIBGFLAGS_INCLUDE_DIR})
endif()

+find_package(ZLIB REQUIRED)
+
find_package(Libevent CONFIG QUIET)
if(TARGET event)
message(STATUS "Found libevent from package config")
@@ -246,6 +248,7 @@ target_link_libraries(fizz
${OPENSSL_LIBRARIES}
sodium
Threads::Threads

  • ZLIB::ZLIB
    PRIVATE
    ${GLOG_LIBRARIES}
    ${GFLAGS_LIBRARIES}
    diff --git a/fizz/cmake/fizz-config.cmake.in b/fizz/cmake/fizz-config.cmake.in
    index d9918469..679b0e61 100644
    --- a/fizz/cmake/fizz-config.cmake.in
    +++ b/fizz/cmake/fizz-config.cmake.in
    @@ -25,7 +25,10 @@ endif()

set(FIZZ_LIBRARIES fizz::fizz)

+include(CMakeFindDependencyMacro)
-find_dependency(Sodium)
+find_dependency(unofficial-sodium)
+find_dependency(folly CONFIG)
+find_dependency(ZLIB)

if (NOT fizz_FIND_QUIETLY)
message(STATUS "Found fizz: ${PACKAGE_PREFIX_DIR}")`

The facebook libraries are out of date.

@JonLiu1993
Copy link
Member

JonLiu1993 commented Oct 9, 2021

@nusus ,Could you please commit a pr fix this issue? and you can open a issue of facebook update,I will update it

@JonLiu1993 JonLiu1993 added category:port-bug The issue is with a library, which is something the port should already support and removed requires:repro The issue is not currently repro-able labels Oct 9, 2021
@nusus
Copy link
Author

nusus commented Oct 13, 2021

Hello good! I fixed it by changing sodium to unofficial-sodium in the port patch. File: ports/fizz/fix-zlib.patch `diff --git a/fizz/CMakeLists.txt b/fizz/CMakeLists.txt index 485e38fc..471d61a5 100644 --- a/fizz/CMakeLists.txt +++ b/fizz/CMakeLists.txt @@ -87,6 +87,8 @@ else() list(APPEND CMAKE_REQUIRED_INCLUDES ${LIBGFLAGS_INCLUDE_DIR}) endif()

+find_package(ZLIB REQUIRED) + find_package(Libevent CONFIG QUIET) if(TARGET event) message(STATUS "Found libevent from package config") @@ -246,6 +248,7 @@ target_link_libraries(fizz ${OPENSSL_LIBRARIES} sodium Threads::Threads

  • ZLIB::ZLIB
    PRIVATE
    ${GLOG_LIBRARIES}
    ${GFLAGS_LIBRARIES}
    diff --git a/fizz/cmake/fizz-config.cmake.in b/fizz/cmake/fizz-config.cmake.in
    index d9918469..679b0e61 100644
    --- a/fizz/cmake/fizz-config.cmake.in
    +++ b/fizz/cmake/fizz-config.cmake.in
    @@ -25,7 +25,10 @@ endif()

set(FIZZ_LIBRARIES fizz::fizz)

+include(CMakeFindDependencyMacro) -find_dependency(Sodium) +find_dependency(unofficial-sodium) +find_dependency(folly CONFIG) +find_dependency(ZLIB)

if (NOT fizz_FIND_QUIETLY) message(STATUS "Found fizz: ${PACKAGE_PREFIX_DIR}")`

The facebook libraries are out of date.

It works, thanks.

@nusus
Copy link
Author

nusus commented Oct 13, 2021

@nusus ,Could you please commit a pr fix this issue? and you can open a issue of facebook update,I will update it

Sorry for the late replay, I just commit a pr #20710 for fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
3 participants