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

[boost-container] build failure on Windows (missing boost-static-assert dependency) #38679

Closed
ajtribick opened this issue May 10, 2024 · 6 comments · Fixed by #38806
Closed
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@ajtribick
Copy link

Operating system

Windows

Compiler

MSVC

Steps to reproduce the behavior

`vcpkg install boost-container`

Failure logs

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: C:/vcpkg/buildtrees/boost-container/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\boost-container\config-x64-windows-dbg-CMakeCache.txt.log
      C:\vcpkg\buildtrees\boost-container\config-x64-windows-rel-CMakeCache.txt.log
      C:\vcpkg\buildtrees\boost-container\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:261 (vcpkg_execute_required_process)
  installed/x64-windows/share/vcpkg-boost/boost-install.cmake:55 (vcpkg_cmake_configure)
  ports/boost-container/portfile.cmake:12 (boost_configure_and_install)
  scripts/ports.cmake:175 (include)

C:\vcpkg\buildtrees\boost-container\config-x64-windows-out.log:

  Could not find a package configuration file provided by
  "boost_static_assert" (requested version 1.85.0) with any of the following
  names:

    boost_static_assertConfig.cmake
    boost_static_assert-config.cmake

  Add the installation prefix of "boost_static_assert" to CMAKE_PREFIX_PATH
  or set "boost_static_assert_DIR" to a directory containing one of the above
  files.  If "boost_static_assert" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  C:/vcpkg/installed/x64-windows/share/boost/BoostConfig.cmake:67 (find_package)
  C:/vcpkg/installed/x64-windows/share/boost/BoostConfig.cmake:128 (boostcfg_find_component)
  C:/vcpkg/installed/x64-windows/share/boost/vcpkg-cmake-wrapper.cmake:3 (_find_package)
  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:813 (include)
  C:/vcpkg/installed/x64-windows/share/boost/cmake-build/BoostRoot.cmake:234 (find_package)
  C:/vcpkg/installed/x64-windows/share/boost/cmake-build/BoostRoot.cmake:274 (__boost_scan_dependencies)
  CMakeLists.txt:10 (include)

Additional context

Appears to be a missing dependency on the boost-static-assert package.

Running vcpkg install boost-static-assert before running vcpkg install boost-container fixes the issue.

@ajtribick ajtribick added the category:port-bug The issue is with a library, which is something the port should already support label May 10, 2024
@Neumann-A
Copy link
Contributor

This is a missing dependency. Maybe the generate script needs to lern to parse the CMake files instead of the b2 files.

@dg0yt
Copy link
Contributor

dg0yt commented May 18, 2024

Regression.

@dg0yt
Copy link
Contributor

dg0yt commented May 18, 2024

The release note says they removed the dependency... not in CMake at least.

@Neumann-A
Copy link
Contributor

The release note says they removed the dependency... not in CMake at least.

do you have a link for that?

@Neumann-A
Copy link
Contributor

nevermind found boostorg/container@fb822f0

vicroms pushed a commit that referenced this issue May 23, 2024
Fixes #38679. ([No longer uses
Boost::static_assert.](https://www.boost.org/doc/libs/1_85_0/doc/html/container/release_notes.html#container.release_notes.release_notes_boost_1_85_00))
Fixes #38469. (Needs threads, so [emscripten needs to use
`-pthread`](https://emscripten.org/docs/porting/pthreads.html#compiling-with-pthreads-enabled).)
Change homepage link to something more useful. The update to the
generator script and the other ports will be in a separate PR.
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
4 participants