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 error on wasm32-emscripten #38469

Open
nvoronetskiy opened this issue Apr 29, 2024 · 2 comments · May be fixed by #38806
Open

[boost-container] Build error on wasm32-emscripten #38469

nvoronetskiy opened this issue Apr 29, 2024 · 2 comments · May be fixed by #38806
Assignees
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.

Comments

@nvoronetskiy
Copy link

Package: boost-container:[email protected]#1

Host Environment

  • Host: x64-windows
  • Compiler: Clang 19.0.0
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: 31de9445b 2024-04-30 (21 minutes ago)

To Reproduce

vcpkg install

Failure logs

-- Using cached boostorg-container-boost-1.84.0.tar.gz.
-- Cleaning sources at E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/sandbox/toolchain/vcpkg/downloads/boostorg-container-boost-1.84.0.tar.gz
-- Using source at E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean
-- Configuring wasm32-emscripten
-- Building wasm32-emscripten-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j33
    Working Directory: E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/wasm32-emscripten-dbg
    See logs for more information:
      E:\sandbox\toolchain\vcpkg\buildtrees\boost-container\install-wasm32-emscripten-dbg-out.log

Call Stack (most recent call first):
  E:/sandbox/_obj-lib-etc-em/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  E:/sandbox/_obj-lib-etc-em/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  E:/sandbox/_obj-lib-etc-em/vcpkg_installed/x64-windows/share/vcpkg-boost/boost-install.cmake:65 (vcpkg_cmake_install)
  ports/boost-container/portfile.cmake:12 (boost_configure_and_install)
  scripts/ports.cmake:175 (include)



E:\sandbox\toolchain\vcpkg\buildtrees\boost-container\install-wasm32-emscripten-dbg-out.log
Change Dir: 'E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/wasm32-emscripten-dbg'

Run Build Command(s): E:/sandbox/toolchain/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v -v -j33 install
[1/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/dlmalloc.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\dlmalloc.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/dlmalloc.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/dlmalloc.cpp
[2/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/synchronized_pool_resource.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\synchronized_pool_resource.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/synchronized_pool_resource.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/synchronized_pool_resource.cpp
FAILED: libs/container/CMakeFiles/boost_container.dir/src/synchronized_pool_resource.cpp.o 
E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/synchronized_pool_resource.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\synchronized_pool_resource.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/synchronized_pool_resource.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/synchronized_pool_resource.cpp
In file included from E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/synchronized_pool_resource.cpp:14:
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:109:12: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
  109 | extern "C" __declspec(dllimport) void __stdcall InitializeCriticalSection(::_RTL_CRITICAL_SECTION *);
      |            ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:109:39: warning: '__stdcall' calling convention is not supported for this target [-Wignored-attributes]
  109 | extern "C" __declspec(dllimport) void __stdcall InitializeCriticalSection(::_RTL_CRITICAL_SECTION *);
      |                                       ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:111:12: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
  111 | extern "C" __declspec(dllimport) void __stdcall EnterCriticalSection(::_RTL_CRITICAL_SECTION *);
      |            ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:111:39: warning: '__stdcall' calling convention is not supported for this target [-Wignored-attributes]
  111 | extern "C" __declspec(dllimport) void __stdcall EnterCriticalSection(::_RTL_CRITICAL_SECTION *);
      |                                       ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:112:12: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
  112 | extern "C" __declspec(dllimport) void __stdcall LeaveCriticalSection(::_RTL_CRITICAL_SECTION *);
      |            ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:112:39: warning: '__stdcall' calling convention is not supported for this target [-Wignored-attributes]
  112 | extern "C" __declspec(dllimport) void __stdcall LeaveCriticalSection(::_RTL_CRITICAL_SECTION *);
      |                                       ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:113:12: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
  113 | extern "C" __declspec(dllimport) void __stdcall DeleteCriticalSection(::_RTL_CRITICAL_SECTION *);
      |            ^
E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include\boost/container/detail/thread_mutex.hpp:113:39: warning: '__stdcall' calling convention is not supported for this target [-Wignored-attributes]
  113 | extern "C" __declspec(dllimport) void __stdcall DeleteCriticalSection(::_RTL_CRITICAL_SECTION *);
      |                                       ^
4 warnings and 4 errors generated.
[3/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/unsynchronized_pool_resource.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\unsynchronized_pool_resource.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/unsynchronized_pool_resource.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/unsynchronized_pool_resource.cpp
[4/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/monotonic_buffer_resource.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\monotonic_buffer_resource.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/monotonic_buffer_resource.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/monotonic_buffer_resource.cpp
[5/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/pool_resource.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\pool_resource.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/pool_resource.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/pool_resource.cpp
[6/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\em++.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -std=gnu++11 -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/global_resource.cpp.o -MF libs\container\CMakeFiles\boost_container.dir\src\global_resource.cpp.o.d -o libs/container/CMakeFiles/boost_container.dir/src/global_resource.cpp.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/global_resource.cpp
[7/9] E:\sandbox\toolchain\emsdk\upstream\emscripten\emcc.bat -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK -IE:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/include -isystem E:/sandbox/_obj-lib-etc-em/vcpkg_installed/wasm32-emscripten/include -g -fvisibility=hidden -MD -MT libs/container/CMakeFiles/boost_container.dir/src/alloc_lib.c.o -MF libs\container\CMakeFiles\boost_container.dir\src\alloc_lib.c.o.d -o libs/container/CMakeFiles/boost_container.dir/src/alloc_lib.c.o -c E:/sandbox/toolchain/vcpkg/buildtrees/boost-container/src/ost-1.84.0-f9f7c1b921.clean/libs/container/src/alloc_lib.c
ninja: build stopped: subcommand failed.

Additional context

vcpkg.json
{
  "name": "engine",
  "version": "1.0.0",
  "dependencies": [
    "boost-container"
  ]
}

@WangWeiLin-MV WangWeiLin-MV added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Apr 30, 2024
@WangWeiLin-MV
Copy link
Contributor

Will the

error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes

in logs resolve it?

@nvoronetskiy
Copy link
Author

Will the

error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes

in logs resolve it?

If you mean boost-log, then:
boost-log is only supported on '!uwp & !emscripten', which does not match wasm32-emscripten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants