microsoft / microsoft/vcpkg

[tensorflow-cc] Build error on x64-windows-static-md

Open
#44,253 15 comments 0 reactions 1 assignee View on GitHub

@jimwang118 is already working on this.

Since Mar 10, 2025.

category:port-bug
Dominant language
CMake
Stars
27.5k
Forks
7.7k
Avg merge
2d 19h
Merged PRs (30d)
321

Description

Package: tensorflow-cc:x64-windows-static-md@2.10.0

**Host Environment**

- Host: x64-windows
- Compiler: MSVC 19.43.34808.0
- vcpkg-tool version: 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2
vcpkg-scripts version: cd1099f42a 2025-03-06 (2 days ago)

**To Reproduce**

`vcpkg install `

**Failure logs**

```
-- Using cached msys2-bash-5.2.037-1-x86_64.pkg.tar.zst
-- Using cached msys2-unzip-6.0-3-x86_64.pkg.tar.zst
-- Using cached msys2-patch-2.7.6-2-x86_64.pkg.tar.zst
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-python-numpy-2.1.1-1-any.pkg.tar.zst
-- Using cached msys2-file-5.45-3-x86_64.pkg.tar.zst
-- Using cached msys2-gawk-5.3.1-1-x86_64.pkg.tar.zst
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst
-- Using cached msys2-pkgconf-2.3.0-1-x86_64.pkg.tar.zst
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-openblas-0.3.28-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-python-3.11.10-1-any.pkg.tar.zst
-- Using cached msys2-liblzma-5.6.3-1-x86_64.pkg.tar.zst
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst
-- Using cached msys2-libreadline-8.2.013-1-x86_64.pkg.tar.zst
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-gcc-libgfortran-14.2.0-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-gcc-libs-14.2.0-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-libwinpthread-git-12.0.0.r351.gcdf6b16b8-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-bzip2-1.0.8-3-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-expat-2.6.3-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-libffi-3.4.6-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-mpdecimal-4.0.0-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-ncurses-6.5.20240831-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-openssl-3.3.2-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-sqlite3-3.46.1-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-tcl-8.6.13-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-tk-8.6.13-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-xz-5.6.3-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-zlib-1.3.1-1-any.pkg.tar.zst
-- Using cached msys2-ncurses-6.5.20240831-2-x86_64.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-libsystre-1.0.1-6-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-readline-8.2.013-1-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-gettext-runtime-0.22.5-2-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-termcap-1.3.1-7-any.pkg.tar.zst
-- Using cached msys2-mingw-w64-x86_64-libiconv-1.17-4-any.pkg.tar.zst
-- Using msys root at C:/Users/Aura/.aura/vcpkg/downloads/tools/msys2/050466f72527edb1
-- Using cached tensorflow-tensorflow-v2.10.0.tar.gz
-- Extracting source C:/Users/Aura/.aura/vcpkg/downloads/tensorflow-tensorflow-v2.10.0.tar.gz
-- Applying patch C:/Users/Aura/Desktop/machine/build/debug/vcpkg_installed/x64-windows-static-md/share/tensorflow-common/fix-build-error.patch
-- Applying patch C:/Users/Aura/Desktop/machine/build/debug/vcpkg_installed/x64-windows-static-md/share/tensorflow-common/change-macros-for-static-lib.patch
-- Applying patch C:/Users/Aura/Desktop/machine/build/debug/vcpkg_installed/x64-windows-static-md/share/tensorflow-common/fix-windows-build.patch
-- Using source at C:/Users/Aura/.aura/vcpkg/buildtrees/tensorflow-cc/src/v2.10.0-4baaf97d01.clean
-- Configuring TensorFlow (dbg)
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: C:/Users/Aura/.aura/vcpkg/downloads/tools/msys2/050466f72527edb1/mingw64/bin/python3.exe C:/Users/Aura/.aura/vcpkg/buildtrees/tensorflow-cc/x64-windows-static-md-dbg/configure.py --workspace C:/Users/Aura/.aura/vcpkg/buildtrees/tensorflow-cc/x64-windows-static-md-dbg
Working Directory: C:/Users/Aura/.aura/vcpkg/buildtrees/tensorflow-cc/x64-windows-static-md-dbg
Error code: 1
See logs for more information:
C:\Users\Aura\.aura\vcpkg\buildtrees\tensorflow-cc\config-x64-windows-static-md-dbg-out.log

Call Stack (most recent call first):
C:/Users/Aura/Desktop/machine/build/debug/vcpkg_installed/x64-windows-static-md/share/tensorflow-common/tensorflow-common.cmake:184 (vcpkg_execute_required_process)
ports/tensorflow-cc/portfile.cmake:9 (include)
scripts/ports.cmake:196 (include)

```

```
Cannot find bazel. Please install bazel/bazelisk.
```

**Additional context**

vcpkg.json

```
{
"name": "machine",
"version": "1.0.0",
"dependencies": [
"tensorflow-cc"
]
}

```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.