Skip to content

[spdlog] build failure (x64-windows emscripten) #49295

@kirill-vorotov

Description

@kirill-vorotov

Operating system

windows 11 x64

Compiler

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.21

Steps to reproduce the behavior

`unpack spdlog-issue.zip`
`cmake --preset html5-debug`

Failure logs

-- Running vcpkg install
Fetching registry information from https://github.com/microsoft/vcpkg (HEAD)...
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe
Detecting compiler hash for triplet wasm32-emscripten...
Compiler found: C:/Users/*/repos/github/emscripten-core/emsdk/upstream/emscripten/em++.bat
The following packages will be built and installed:
spdlog:[email protected]#1 -- C:\Users*
\AppData\Local\vcpkg\registries\git-trees\33853c1dc569252eb1df77164b3357d63fc15cb6

  • vcpkg-cmake:x64-windows@2024-04-23 -- C:\Users******\AppData\Local\vcpkg\registries\git-trees\e74aa1e8f93278a8e71372f1fa08c3df420eb840
  • vcpkg-cmake-config:x64-windows@2024-05-23 -- C:\Users*\AppData\Local\vcpkg\registries\git-trees\97a63e4bc1a17422ffe4eff71da53b4b561a7841
    Additional packages (*) will be modified to complete this operation.
    Restored 2 package(s) from C:\Users*
    \AppData\Local\vcpkg\archives in 24.1 ms. Use --debug to see more details.
    Installing 1/3 vcpkg-cmake-config:x64-windows@2024-05-23...
    Elapsed time to handle vcpkg-cmake-config:x64-windows: 4.19 ms
    vcpkg-cmake-config:x64-windows package ABI: 28dd1a291104b693ed6da94b8b7281b3b61cea57046d5541e5fbbace37e21adc
    Installing 2/3 vcpkg-cmake:x64-windows@2024-04-23...
    Elapsed time to handle vcpkg-cmake:x64-windows: 4.6 ms
    vcpkg-cmake:x64-windows package ABI: 00b1df26a863842c58097cbb8cd9428ed46ee224a95ab52f68f9ec9f13af5577
    Installing 3/3 spdlog:[email protected]#1...
    Building spdlog:[email protected]#1...
    C:\Users*\AppData\Roaming\vcpkg\triplets\community\wasm32-emscripten.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed.
    C:\Users*
    \AppData\Local\vcpkg\registries\git-trees\33853c1dc569252eb1df77164b3357d63fc15cb6: info: installing overlay port from here
    -- Using cached gabime-spdlog-v1.16.0.tar.gz.
    -- Extracting source C:/Users//AppData/Roaming/vcpkg/downloads/gabime-spdlog-v1.16.0.tar.gz
    -- Using source at C:/Users/
    /AppData/Roaming/vcpkg/buildtrees/spdlog/src/v1.16.0-e349c3b9b7.clean
    -- Found external ninja('1.13.2').
    -- Configuring wasm32-emscripten
    CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: C:/Users//AppData/Local/Microsoft/WinGet/Links/ninja.exe -v
    Working Directory: C:/Users/
    /AppData/Roaming/vcpkg/buildtrees/spdlog/wasm32-emscripten-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
    C:\Users*\AppData\Roaming\vcpkg\buildtrees\spdlog\config-wasm32-emscripten-dbg-CMakeCache.txt.log
    C:\Users*
    \AppData\Roaming\vcpkg\buildtrees\spdlog\config-wasm32-emscripten-rel-CMakeCache.txt.log
    C:\Users*\AppData\Roaming\vcpkg\buildtrees\spdlog\config-wasm32-emscripten-dbg-CMakeConfigureLog.yaml.log
    C:\Users*
    \AppData\Roaming\vcpkg\buildtrees\spdlog\config-wasm32-emscripten-rel-CMakeConfigureLog.yaml.log
    C:\Users******\AppData\Roaming\vcpkg\buildtrees\spdlog\config-wasm32-emscripten-out.log

Call Stack (most recent call first):
C:/Users//repos/local/spdlog-issue/packages/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:269 (vcpkg_execute_required_process)
C:/Users/
/AppData/Local/vcpkg/registries/git-trees/33853c1dc569252eb1df77164b3357d63fc15cb6/portfile.cmake:28 (vcpkg_cmake_configure)
scripts/ports.cmake:196 (include)

error: building spdlog:wasm32-emscripten failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle spdlog:wasm32-emscripten: 3.9 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+spdlog
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[spdlog]+Build+error+on+wasm32-emscripten&body=Copy+issue+body+from+C%3A%2FUsers%2F******%2Frepos%2Flocal%2Fspdlog-issue%2Fpackages%2Fvcpkg%2Fissue_body.md

-- Running vcpkg install - failed
CMake Error at C:/Users/*/AppData/Roaming/vcpkg/scripts/buildsystems/vcpkg.cmake:904 (message):
vcpkg install failed. See logs for more information:
C:\Users*
\repos\local\spdlog-issue\cmake-build\html5-debug\vcpkg-manifest-install.log
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-4.2/Modules/CMakeDetermineSystem.cmake:146 (include)
CMakeLists.txt:2 (project)

CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!

Additional context

spdlog-issue.zip

vcpkg version 2025-01-11-0f310537c75015100d200eb71b137f6376aad510
emcc version 4.0.21
emsdk version 4.0.21
CMake 4.2.1
Ninja 1.13.2
Triplet: wasm32-emscripten

The port worked before the commit b205c4a

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-bugThe issue is with a library, which is something the port should already support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions