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

[tensorflow] build failure versions [2.7.0#2][2.7.0#1][2.7.0][2.6.0] #27252

Closed
AbdulAbCellera opened this issue Oct 16, 2022 · 6 comments
Closed
Assignees
Labels
category:question This issue is a question Stale

Comments

@AbdulAbCellera
Copy link

Package: tensorflow[core]:x64-windows-custom -> 2.7.0#2

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.29.30146.0
  • vcpkg-tool version: 2022-09-20-522aa94e9d261c7d7b2f079bf2591ca62df5c714
    vcpkg-scripts version: 42cc830 2022-10-10 (4 days ago)

To Reproduce

vcpkg install

Failure logs

-- Using cached msys-unzip-6.0-2-x86_64.pkg.tar.xz.
-- Using cached msys-libbz2-1.0.8-3-x86_64.pkg.tar.zst.
-- Using cached msys-patch-2.7.6-1-x86_64.pkg.tar.xz.
-- Using cached msys-gzip-1.11-1-x86_64.pkg.tar.zst.
-- Using cached msys-bash-5.1.008-1-x86_64.pkg.tar.zst.
-- Using cached msys-diffutils-3.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-coreutils-8.32-2-x86_64.pkg.tar.zst.
-- Using cached msys-grep-3.0-2-x86_64.pkg.tar.xz.
-- Using cached msys-sed-4.8-2-x86_64.pkg.tar.zst.
-- Using cached msys-libpcre-8.45-1-x86_64.pkg.tar.zst.
-- Using cached msys-gawk-5.1.0-2-x86_64.pkg.tar.zst.
-- Using cached msys-mpfr-4.1.0-1-x86_64.pkg.tar.zst.
-- Using cached msys-gmp-6.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys-libreadline-8.1.001-1-x86_64.pkg.tar.zst.
-- Using cached msys-ncurses-6.2-2-x86_64.pkg.tar.zst.
-- Using cached msys-pkg-config-0.29.2-4-x86_64.pkg.tar.zst.
-- Using cached msys-make-4.3-3-x86_64.pkg.tar.zst.
-- Using cached msys-libintl-0.21-1-x86_64.pkg.tar.zst.
-- Using cached msys-libiconv-1.16-2-x86_64.pkg.tar.zst.
-- Using cached msys-gcc-libs-11.2.0-3-x86_64.pkg.tar.zst.
-- Using cached msys-msys2-runtime-3.2.0-8-x86_64.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-python-numpy-1.20.3-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-openblas-0.3.19-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-gcc-libgfortran-11.2.0-8-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-python-3.8.9-2-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-bzip2-1.0.8-2-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-mpdecimal-2.5.1-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-ncurses-6.3-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-libsystre-1.0.1-4-any.pkg.tar.xz.
-- Using cached msys-mingw-w64-x86_64-libtre-git-r128.6fb7206-2-any.pkg.tar.xz.
-- Using cached msys-mingw-w64-x86_64-openssl-1.1.1.m-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-ca-certificates-20210119-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-p11-kit-0.24.1-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-libtasn1-4.18.0-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-sqlite3-3.37.2-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-readline-8.1.001-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-termcap-1.3.1-6-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-tk-8.6.11.1-2-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-tcl-8.6.11-5-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-xz-5.2.5-2-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-gettext-0.21-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-gcc-libs-11.2.0-8-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-mpc-1.2.1-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-mpfr-4.1.0-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-gmp-6.2.1-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-expat-2.4.4-1-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-libffi-3.3-4-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-libiconv-1.16-2-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-zlib-1.2.11-9-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-x86_64-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at C:/Users/<username>/vcpkg_download/tools/msys2/70289b324bc026d6
-- Using cached tensorflow-tensorflow-v2.6.0.tar.gz.
-- Extracting source C:/Users/<username>/vcpkg_download/tensorflow-tensorflow-v2.6.0.tar.gz
-- Applying patch C:/repos/<projname>/vcpkg_installed/x64-windows-custom/share/tensorflow-common/fix-build-error.patch
-- Applying patch C:/repos/<projname>/vcpkg_installed/x64-windows-custom/share/tensorflow-common/Update-bazel-max-version.patch
-- Applying patch C:/repos/<projname>/vcpkg_installed/x64-windows-custom/share/tensorflow-common/fix-windows-build.patch
-- Using source at C:/repos/<projname>/vcpkg/buildtrees/tensorflow/src/v2.6.0-ab22e83fdf.clean
-- Configuring TensorFlow (dbg)
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
    Command failed: C:/Users/<username>/vcpkg_download/tools/msys2/70289b324bc026d6/mingw64/bin/python3.exe C:/repos/<projname>/vcpkg/buildtrees/tensorflow/x64-windows-custom-dbg/configure.py --workspace C:/repos/<projname>/vcpkg/buildtrees/tensorflow/x64-windows-custom-dbg
    Working Directory: C:/repos/<projname>/vcpkg/buildtrees/tensorflow/x64-windows-custom-dbg
    Error code: 1
    See logs for more information:
      C:\repos\<projname>\vcpkg\buildtrees\tensorflow\config-x64-windows-custom-dbg-out.log

Call Stack (most recent call first):
  C:/repos/<projname>/vcpkg_installed/x64-windows-custom/share/tensorflow-common/tensorflow-common.cmake:156 (vcpkg_execute_required_process)
  buildtrees/versioning_/versions/tensorflow/07b6bd8bae65b448a163db4e720c46afd605a1cc/portfile.cmake:5 (include)
  scripts/ports.cmake:147 (include)



C:\repos\\vcpkg\buildtrees\tensorflow\config-x64-windows-custom-dbg-out.log
You have bazel 4.2.2 installed.
Please downgrade your bazel installation to version 4.1.0 or lower to build TensorFlow! To downgrade: download the installer for the old version (from https://github.com/bazelbuild/bazel/releases) then run the installer.
**Additional context**
vcpkg.json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
  "name": "<projname>",
  "version": "1.0.0",
  "dependencies": [
    {
      "name": "tensorflow",
      "version>=": "2.7.0#2"
    }
  ]
}

@AbdulAbCellera AbdulAbCellera added the category:port-bug The issue is with a library, which is something the port should already support label Oct 16, 2022
@LilyWangLL LilyWangLL self-assigned this Oct 17, 2022
@LilyWangLL
Copy link
Contributor

The error reason is the following log, you could try if PR #24861 can resolve this error or not. Its bazel tool change to higher version.

You have bazel 4.2.2 installed.
Please downgrade your bazel installation to version 4.1.0 or lower to build TensorFlow! To downgrade: download the installer for the old version (from https://github.com/bazelbuild/bazel/releases) then run the installer.

@AbdulAbCellera
Copy link
Author

I used the PR with my code but still failed.

I don't have any bazel installed in my system. Actually vcpkg downloads bazel, and I don't have a way to control which version it downloads.

any suggestion?

@JackyYin
Copy link
Contributor

Hi @AbdulAbCellera,

I think you should try again with the latest vcpkg (master branch).
From my environment, I have bazel 5.2.0 installed:

❯ installed/arm64-osx/tools/bazel --version
bazel 5.2.0

@AbdulAbCellera
Copy link
Author

just to confirm. Do I have to install bazel as a system pkg (not managed by vcpkg) and update to the latest vcpkg commit?

@JackyYin
Copy link
Contributor

just to confirm. Do I have to install bazel as a system pkg (not managed by vcpkg) and update to the latest vcpkg commit?

You don't have to manually install bazel, when you install tensorflow, bazel will be installed beforehand by vcpkg.

Actually there are still some build issues on windows and I'm still working on it.

I will push related changes to this branch:
https://github.com/JackyYin/vcpkg/tree/tensorflow-2.10.0-windows-build

@github-actions
Copy link

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

@github-actions github-actions bot added the Stale label Oct 30, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2023
@LilyWangLL LilyWangLL added category:question This issue is a question and removed category:port-bug The issue is with a library, which is something the port should already support labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question Stale
Projects
None yet
Development

No branches or pull requests

3 participants