chrxh / alien

ALIEN is a CUDA-powered artificial life simulation program.
https://alien-project.org
BSD 3-Clause "New" or "Revised" License
4.93k stars 157 forks source link

Build issue on cmake configuration #103

Closed Gardene-el closed 1 month ago

Gardene-el commented 1 month ago

I got an error on cmake .. -DCMAKE_BUILD_TYPE=Release Here is the log:

Installing 1/32 boost-thread:x86-windows@1.77.0...
Building boost-thread:x86-windows@1.77.0...
C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b: info: installing overlay port from here
-- Using cached boostorg-thread-boost-1.77.0.tar.gz.
-- Cleaning sources at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/aloud/Documents/alien/external/vcpkg/downloads/boostorg-thread-boost-1.77.0.tar.gz
-- Using source at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean
-- Including C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/b2-options.cmake
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-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: C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg
    See logs for more information:
      C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process)
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/boost-modular-build.cmake:105 (vcpkg_cmake_install)
  buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/portfile.cmake:15 (boost_modular_build)
  scripts/ports.cmake:175 (include)

error: building boost-thread:x86-windows failed with: BUILD_FAILED
Elapsed time to handle boost-thread:x86-windows: 2.1 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-thread
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[boost-thread]+Build+error+on+x86-windows&body=Copy+issue+body+from+C%3A%2FUsers%2Faloud%2FDocuments%2Falien%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed
CMake Error at external/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
  vcpkg install failed.  See logs for more information:
  C:\Users\aloud\Documents\alien\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:24 (project)

-- Configuring incomplete, errors occurred!

Here is the vcpkg-manifest-install.log:

Detecting compiler hash for triplet x86-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:443".
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x86/cl.exe
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe
The following packages will be built and installed:
  * boost-any:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-any\cf8bdfd2ce434a981620383dcc07d46c0a071ca1
  * boost-endian:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-endian\6950c45ffb4e112920b6dd50c1cddde07b30d61d
  * boost-foreach:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-foreach\95983cd3eb11558e24d1f63a68a2ee944da927df
  * boost-format:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-format\15c6449aa221b65139b38cc6c6ef91f32e2d2b1d
  * boost-multi-index:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-multi-index\e993a57f4569f76310bc8c203372ebe472395005
  * boost-phoenix:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-phoenix\2926d1b537106cb231bb9f3a657f6fde6c8530f8
  * boost-pool:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-pool\7794803f75109db0ca64a48d2f1cbd76100b153d
    boost-property-tree:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-property-tree\959191d822cc095e02a3f6d9af5b68aeb823a0d1
  * boost-proto:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-proto\5d33f62f1117da9bac418c4b85d1a1bd96c547a4
  * boost-serialization:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-serialization\bdb25d2d55569534825b139f62cf29a2f7aaba6e
  * boost-spirit:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-spirit\bc66c5a9ccd7f7bde95426392bc7ff62189f920d
  * boost-thread:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b
  * brotli:x86-windows@1.0.9#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\brotli\73d0ed2fd7816c7a4958983b0b027c85b60eac15
  * bzip2:x86-windows@1.0.8#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\bzip2\a1ea352502e69888a565563d9151d3f7ab609fb1
    cereal:x86-windows@1.3.0#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\cereal\7229804bbf716bbefe8052d650fc94687b6dae42
    cli11:x86-windows@2.1.2#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\cli11\a2fa0d3108042d872a50565d15c79d5611bdf0b6
  * egl-registry:x86-windows@2021-11-23 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\egl-registry\ec272777ea9d0ceccf5cc8b0336f038853e5c911
  * freetype[brotli,bzip2,core,png,zlib]:x86-windows@2.11.0#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\freetype\9d21ff9f7071d83c1e04eca8cae21b99438400d8
    glad[core,loader]:x86-windows@0.1.34#3 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glad\2ebf6ed85a860c74f8649571e168900426cbb944
    glew:x86-windows@2.2.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glew\3211ed09c36542372ab3f1f690a42e2edbb072bc
    glfw3:x86-windows@3.3.5 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glfw3\90c6416669c2154f54d3f65e3a2afb8f75ab2aaa
    gtest:x86-windows@1.11.0#3 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\gtest\bc195b45d4d766498fb51de96427835c7c4d5748
    imgui[core,freetype,glfw-binding,opengl3-binding]:x86-windows@1.85 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\imgui\9ae62261d966705924645bc3a057fe748c24d290
    implot:x86-windows@0.12 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\implot\ab3bc9b82bfc7fbd1808cc55559ed58b648ed964
  * libpng:x86-windows@1.6.37#16 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\libpng\b082585ac20aefc27150af5386b6a8a15473e93a
  * opengl:x86-windows@0.0#9 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\opengl\9fa8ed2a1fb625613a32ee95d2413dbc921860f7
  * opengl-registry:x86-windows@2021-11-17 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\opengl-registry\7f4a1e05a6cfbd923a2eaf9d32da22bde0742a15
    openssl:x86-windows@1.1.1l#4 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\openssl\d25384246619019a1e44f018546cdfcaf1800174
    stb:x86-windows@2020-09-14#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\stb\fa6d7e998f98f122efa37f456ffa498d546185b9
  * vcpkg-cmake-config:x64-windows@2021-11-01 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\38a87ee8edd9ea8e8fff604fbcb785661a8d0e28
    zlib:x86-windows@1.2.11#13 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\zlib\92cfe30c807d343c6359d272242f0765ad906740
    zstr:x86-windows@1.0.4#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\zstr\7a13e5cb665ce878aa5b6c9723a0e375e1be5c15
Additional packages (*) will be modified to complete this operation.
Restored 0 package(s) from C:\Users\aloud\AppData\Local\vcpkg\archives in 551 us. Use --debug to see more details.
Installing 1/32 boost-thread:x86-windows@1.77.0...
Building boost-thread:x86-windows@1.77.0...
C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b: info: installing overlay port from here
-- Using cached boostorg-thread-boost-1.77.0.tar.gz.
-- Cleaning sources at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/aloud/Documents/alien/external/vcpkg/downloads/boostorg-thread-boost-1.77.0.tar.gz
-- Using source at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean
-- Including C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/b2-options.cmake
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-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: C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg
    See logs for more information:
      C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process)
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/boost-modular-build.cmake:105 (vcpkg_cmake_install)
  buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/portfile.cmake:15 (boost_modular_build)
  scripts/ports.cmake:175 (include)

error: building boost-thread:x86-windows failed with: BUILD_FAILED
Elapsed time to handle boost-thread:x86-windows: 2.1 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-thread
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[boost-thread]+Build+error+on+x86-windows&body=Copy+issue+body+from+C%3A%2FUsers%2Faloud%2FDocuments%2Falien%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

Here is the install-x86-windows-dbg-out.log:

Change Dir: 'C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j33 install
[1/2] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build && C:\Users\aloud\Documents\alien\build\vcpkg_installed\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg/user-config.jam --stagedir=C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg/stage --build-dir=C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg --disable-icu runtime-link=shared link=shared address-model=32 architecture=x86 asmflags=/safeseh target-os=windows threadapi=win32 variant=debug /boost/thread//boost_thread --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j32 -sBOOST_ROOT=C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage"
FAILED: CMakeFiles/boost C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg/CMakeFiles/boost 
C:\Windows\system32\cmd.exe /C "cd /D C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build && C:\Users\aloud\Documents\alien\build\vcpkg_installed\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg/user-config.jam --stagedir=C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg/stage --build-dir=C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg --disable-icu runtime-link=shared link=shared address-model=32 architecture=x86 asmflags=/safeseh target-os=windows threadapi=win32 variant=debug /boost/thread//boost_thread --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j32 -sBOOST_ROOT=C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage"
notice: found boost-build.jam at C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/tools/boost-build/boost-build.jam
notice: loading B2 from C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/tools/boost-build/src/kernel/bootstrap.jam
notice: Site configuration files will be ignored due to the
notice: --ignore-site-config command-line option.
notice: Loading explicitly specified user configuration file:
    C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\x86-windows-dbg\user-config.jam
notice: Searching 'C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\x86-windows-dbg' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg'.
C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\x86-windows-dbg\user-config.jam:8: Unescaped special character in argument <linkflags>/machine:X86
notice: will use 'C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x86/cl.exe' for msvc, condition <toolset>msvc-144
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>32', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>32', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>64', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>64', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>ia64/<address-model>64', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_ia64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>ia64/<address-model>', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_ia64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>arm/<address-model>32', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_arm'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>arm/<address-model>64', setup: 'C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_arm64'

Building target '../build/boost_thread'
     Build request: object(property-set)@373 <address-model>32 <architecture>x86 <asmflags>/safeseh <debug-symbols>on <link>shared <runtime-link>shared <target-os>windows <threadapi>win32 <threading>multi <toolset>msvc <variant>debug
     Command line free features: <asmflags>/safeseh
     Target requirements: <conditional>@Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build>%Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build>.requirements <define>BOOST_ALL_NO_LIB=1 <include>../include&&/C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/include <library>/boost/date_time//boost_date_time <link>shared:<define>BOOST_THREAD_BUILD_DLL=1 <link>static:<define>BOOST_THREAD_BUILD_LIB=1 <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <relevant>define:<relevant>target-os <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>warnings:<relevant>toolset <tag>@Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build>%Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build>.tag <target-os>windows:<define>BOOST_USE_WINDOWS_H <target-os>windows:<define>WIN32_LEAN_AND_MEAN <threading>multi <toolset>clang-3.0:<cxxflags>-Wno-delete-non-virtual-dtor <toolset>clang:<cxxflags>-Wextra <toolset>clang:<cxxflags>-Wno-long-long <toolset>clang:<cxxflags>-Wno-unused-parameter <toolset>clang:<cxxflags>-Wno-variadic-macros <toolset>clang:<cxxflags>-Wunused-function <toolset>clang:<warnings>on <toolset>darwin-4.6.2:<cxxflags>-Wno-delete-non-virtual-dtor <toolset>darwin-4.7.0:<cxxflags>-Wno-delete-non-virtual-dtor <toolset>darwin-4:<cxxflags>-Wno-variadic-macros <toolset>darwin-5:<cxxflags>-Wno-variadic-macros <toolset>darwin:<cxxflags>-Wextra <toolset>darwin:<cxxflags>-Wno-long-long <toolset>darwin:<cxxflags>-Wno-unused-parameter <toolset>darwin:<cxxflags>-Wunused-function <toolset>darwin:<cxxflags>-fpermissive <toolset>darwin:<cxxflags>-pedantic <toolset>gcc-4:<cxxflags>-Wno-variadic-macros <toolset>gcc-5:<cxxflags>-Wno-variadic-macros <toolset>gcc:<cxxflags>-Wextra <toolset>gcc:<cxxflags>-Wno-long-long <toolset>gcc:<cxxflags>-Wno-unused-parameter <toolset>gcc:<cxxflags>-Wunused-function <toolset>gcc:<cxxflags>-pedantic <toolset>intel:<cxxflags>-wd1418 <toolset>intel:<cxxflags>-wd193,304,383,444 <toolset>intel:<cxxflags>-wd2415 <toolset>intel:<cxxflags>-wd593,981 <toolset>msvc,<runtime-link>shared:<threading>multi <toolset>msvc:<cxxflags>/wd4100 <toolset>msvc:<cxxflags>/wd4512 <toolset>msvc:<cxxflags>/wd6246 <toolset>pathscale:<cxxflags>-Wno-long-long <toolset>pathscale:<cxxflags>-pedantic <warnings>all

     Common properties:  <address-model>32 <architecture>x86 <asmflags>/safeseh <asynch-exceptions>off <coverage>off <cxxflags>/wd4100 <cxxflags>/wd4512 <cxxflags>/wd6246 <debug-store>object <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_THREAD_BUILD_DLL=1 <define>BOOST_THREAD_USES_CHRONO <define>BOOST_THREAD_WIN32 <define>BOOST_USE_WINDOWS_H <define>WIN32_LEAN_AND_MEAN <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>windows <include>../include&&/C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/include <inlining>off <install-dependencies>off <library>/boost/chrono//boost_chrono <library>/boost/date_time//boost_date_time <link>shared <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <relevant>define:<relevant>target-os <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>warnings:<relevant>toolset <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build>%Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean\build>.tag <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>144 <toolset>msvc <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>all <windows-api>desktop

     Building target '../boost_chrono'
         Build request: object(property-set)@399 <address-model>32 <architecture>x86 <asynch-exceptions>off <coverage>off <debug-store>object <debug-symbols>on <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <inlining>off <link>shared <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>variant <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>144 <toolset>msvc <variant>debug <vectorize>off <warnings-as-errors>off <warnings>all <windows-api>desktop
         Command line free features: <asmflags>/safeseh
         Target requirements: <define>BOOST_ALL_NO_LIB=1 <file>/boost//C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/debug/lib/boost_chrono-vc140-mt-gd.lib <include>../include&&/C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/include <library>/boost/date_time//boost_date_time <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <tag>@Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean>%Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean>.tag <toolset>msvc,<runtime-link>shared:<threading>multi <variant>debug

         Common properties:  <address-model>32 <architecture>x86 <asmflags>/safeseh <asynch-exceptions>off <coverage>off <debug-store>object <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <file>/boost//C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/debug/lib/boost_chrono-vc140-mt-gd.lib <hardcode-dll-paths>true <host-os>windows <include>../include&&/C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/include <inlining>off <install-dependencies>off <library>/boost/date_time//boost_date_time <link>shared <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>variant <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean>%Jamfile<C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\src\ost-1.77.0-7bf4191b6c.clean>.tag <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>144 <toolset>msvc <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>all <windows-api>desktop
error: Unable to find file or target named
error:     '/boost//C:/Users/aloud/Documents/alien/build/vcpkg_installed/x86-windows/debug/lib/boost_chrono-vc140-mt-gd.lib'
error: referred to from project at
error:     '..'

ninja: build stopped: subcommand failed.

Not sure what cause that. I tried to add boost-chrono but not working. The environment is: Windows Visual Studio 17 2022 Release -x86 CMake 3.30.4 Ninja 1.12.1

chrxh commented 1 month ago

I'm not an expert with CMake. I use not Ninja but "Visual Studio 17 2022" as generator. Could you please try cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" ?

Gardene-el commented 1 month ago

Sorry for misunderstanding infomation i provided. Here is the log of cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022":

PS C:\Users\aloud\Documents\alien\build> cmake .. -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022"
-- Running vcpkg install
Detecting compiler hash for triplet x86-windows...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:443".
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x86/cl.exe
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe
The following packages will be built and installed:
  * boost-any:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-any\cf8bdfd2ce434a981620383dcc07d46c0a071ca1
  * boost-endian:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-endian\6950c45ffb4e112920b6dd50c1cddde07b30d61d
  * boost-foreach:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-foreach\95983cd3eb11558e24d1f63a68a2ee944da927df
  * boost-format:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-format\15c6449aa221b65139b38cc6c6ef91f32e2d2b1d
  * boost-multi-index:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-multi-index\e993a57f4569f76310bc8c203372ebe472395005
  * boost-phoenix:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-phoenix\2926d1b537106cb231bb9f3a657f6fde6c8530f8
  * boost-pool:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-pool\7794803f75109db0ca64a48d2f1cbd76100b153d
    boost-property-tree:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-property-tree\959191d822cc095e02a3f6d9af5b68aeb823a0d1
  * boost-proto:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-proto\5d33f62f1117da9bac418c4b85d1a1bd96c547a4
  * boost-serialization:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-serialization\bdb25d2d55569534825b139f62cf29a2f7aaba6e
  * boost-spirit:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-spirit\bc66c5a9ccd7f7bde95426392bc7ff62189f920d
  * boost-thread:x86-windows@1.77.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b
  * brotli:x86-windows@1.0.9#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\brotli\73d0ed2fd7816c7a4958983b0b027c85b60eac15
  * bzip2:x86-windows@1.0.8#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\bzip2\a1ea352502e69888a565563d9151d3f7ab609fb1
    cereal:x86-windows@1.3.0#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\cereal\7229804bbf716bbefe8052d650fc94687b6dae42
    cli11:x86-windows@2.1.2#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\cli11\a2fa0d3108042d872a50565d15c79d5611bdf0b6
  * egl-registry:x86-windows@2021-11-23 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\egl-registry\ec272777ea9d0ceccf5cc8b0336f038853e5c911
  * freetype[brotli,bzip2,core,png,zlib]:x86-windows@2.11.0#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\freetype\9d21ff9f7071d83c1e04eca8cae21b99438400d8
    glad[core,loader]:x86-windows@0.1.34#3 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glad\2ebf6ed85a860c74f8649571e168900426cbb944
    glew:x86-windows@2.2.0 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glew\3211ed09c36542372ab3f1f690a42e2edbb072bc
    glfw3:x86-windows@3.3.5 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\glfw3\90c6416669c2154f54d3f65e3a2afb8f75ab2aaa
    gtest:x86-windows@1.11.0#3 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\gtest\bc195b45d4d766498fb51de96427835c7c4d5748
    imgui[core,freetype,glfw-binding,opengl3-binding]:x86-windows@1.85 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\imgui\9ae62261d966705924645bc3a057fe748c24d290
    implot:x86-windows@0.12 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\implot\ab3bc9b82bfc7fbd1808cc55559ed58b648ed964
  * libpng:x86-windows@1.6.37#16 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\libpng\b082585ac20aefc27150af5386b6a8a15473e93a
  * opengl:x86-windows@0.0#9 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\opengl\9fa8ed2a1fb625613a32ee95d2413dbc921860f7
  * opengl-registry:x86-windows@2021-11-17 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\opengl-registry\7f4a1e05a6cfbd923a2eaf9d32da22bde0742a15
    openssl:x86-windows@1.1.1l#4 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\openssl\d25384246619019a1e44f018546cdfcaf1800174
    stb:x86-windows@2020-09-14#1 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\stb\fa6d7e998f98f122efa37f456ffa498d546185b9
  * vcpkg-cmake-config:x64-windows@2021-11-01 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\vcpkg-cmake-config\38a87ee8edd9ea8e8fff604fbcb785661a8d0e28
    zlib:x86-windows@1.2.11#13 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\zlib\92cfe30c807d343c6359d272242f0765ad906740
    zstr:x86-windows@1.0.4#2 -- C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\zstr\7a13e5cb665ce878aa5b6c9723a0e375e1be5c15
Additional packages (*) will be modified to complete this operation.
Restored 0 package(s) from C:\Users\aloud\AppData\Local\vcpkg\archives in 4.84 ms. Use --debug to see more details.
Installing 1/32 boost-thread:x86-windows@1.77.0...
Building boost-thread:x86-windows@1.77.0...
C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\versioning_\versions\boost-thread\1c097a032a997463e15245272e40ea9298554f8b: info: installing overlay port from here
-- Using cached boostorg-thread-boost-1.77.0.tar.gz.
-- Cleaning sources at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/aloud/Documents/alien/external/vcpkg/downloads/boostorg-thread-boost-1.77.0.tar.gz
-- Using source at C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/src/ost-1.77.0-7bf4191b6c.clean
-- Including C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/b2-options.cmake
-- Found external ninja('1.11.0').
-- Configuring x86-windows
-- Building x86-windows-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: C:/Users/aloud/Documents/alien/external/vcpkg/buildtrees/boost-thread/x86-windows-dbg
    See logs for more information:
      C:\Users\aloud\Documents\alien\external\vcpkg\buildtrees\boost-thread\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:102 (vcpkg_execute_build_process)
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
  C:/Users/aloud/Documents/alien/build/vcpkg_installed/x64-windows/share/boost-build/boost-modular-build.cmake:105 (vcpkg_cmake_install)
  buildtrees/versioning_/versions/boost-thread/1c097a032a997463e15245272e40ea9298554f8b/portfile.cmake:15 (boost_modular_build)
  scripts/ports.cmake:175 (include)

error: building boost-thread:x86-windows failed with: BUILD_FAILED
Elapsed time to handle boost-thread:x86-windows: 3.6 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-thread
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[boost-thread]+Build+error+on+x86-windows&body=Copy+issue+body+from+C%3A%2FUsers%2Faloud%2FDocuments%2Falien%2Fbuild%2Fvcpkg_installed%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed
CMake Error at external/vcpkg/scripts/buildsystems/vcpkg.cmake:899 (message):
  vcpkg install failed.  See logs for more information:
  C:\Users\aloud\Documents\alien\build\vcpkg-manifest-install.log
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:24 (project)

-- Configuring incomplete, errors occurred!

Not sure if this helps or right, in [boost-thread] Build error on x64-windows, it seems like that the vcpkg is outdated and cause that crash.

chrxh commented 1 month ago

Thanks for the info! Yes, the vcgkg is outdated and the reference should be updated. The problem with updating, however, is that the latest versions of the dependencies are then used and one has to adapt a lot of things (for instance for ImPlot). Maybe one can specify older versions in the vcpkg.json file first. I'm currently on vacation and will look at the problem next week.

chrxh commented 1 month ago

vcpkg has been updated on the develop branch. Does it work now?

Gardene-el commented 1 month ago

Thanks for help, now it works.