-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
I have successfully compiled v1.11.0 version on win10.
but I get an error "no such package '@png_archive//" when I compile v1.12.0 version.
### enviroment:
vs2015, win10,python3.6.7,bazel1.15.0,cmake1.12.0
### cmd:
$parameterString = "--config=opt //tensorflow:libtensorflow_cc.so --verbose_failures"
.\build.ps1 `
-BazelBuildParameters $parameterString `
-BuildCppAPI -ReserveSource -ReserveVenv
PS C:\tensorflow_installation\tensorflow-windows-build-script> .\build.ps1 `
>> -BazelBuildParameters $parameterString `
>> -BuildCppAPI -ReserveSource -ReserveVenv
Select a Tensorflow version:
[1] 1 - v1.13.1 [2] 2 - v1.12.0 [3] 3 - v1.11.0 [S] Select another version [?] : 2
Found chocolatey installed.
Found pacman installed.
Found patch installed.
Found unzip installed.
Found bazel installed.
Make sure you have installed same version of bazel 0.15.0.
Are you sure you want to PROCEED? [y/n]: y
Found cmake installed.
Make sure you have installed same version of cmake 3.12.
Are you sure you want to PROCEED? [y/n]: y
Found git installed.
Found python installed.
Make sure you have installed same version of python 3.6.7.
Are you sure you want to PROCEED? [y/n]: y
remote: Enumerating objects: 62, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 62 (delta 26), reused 42 (delta 18), pack-reused 0
Unpacking objects: 100% (62/62), done.
Note: checking out 'tags/v1.12.0'.
the parent control flow context is lost. (#23446)
Removing .tf_configure.bazelrc
Removing tensorflow/tf_exported_symbols_msvc.lds
Removing third_party/eigen_half.patch
Removing tools/python_bin_path.sh
warning: tensorflow/workspace.bzl has type 100644, expected 100755
Starting local Bazel server and connecting to it...
.............................................
INFO: Starting clean.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
You have bazel 0.15.0 installed.
Invalid python path: C:/tensorflow_installation/tensorflow-windows-build-script/venv/Scripts/python.exe cannot be found.
Please specify the location of python. [Default is C:\Users\dh\AppData\Local\Programs\Python\Python36\python.exe]:
Do you wish to build TensorFlow with Apache Ignite support? [Y/n]: n
No Apache Ignite support will be enabled for TensorFlow.
Do you wish to build TensorFlow with XLA JIT support? [y/N]: n
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with ROCm support? [y/N]: n
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: n
No CUDA support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]:
Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]: y
Eigen strong inline overridden.
ERROR;
....................
DEBUG: C:/users/dh/_bazel_dh/qoon6usn/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: 'BAZEL_VC' is not set, start looking for the latest Visual C++ installed.
DEBUG: C:/users/dh/_bazel_dh/qoon6usn/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: Looking for VS%VERSION%COMNTOOLS environment variables, eg. VS140COMNTOOLS
DEBUG: C:/users/dh/_bazel_dh/qoon6usn/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: Visual C++ build tools found at C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\
ERROR: C:/tensorflow_installation/tensorflow-windows-build-script/source/tensorflow/core/platform/default/build_config/BUILD:188:1: no such package '@png_archive//': Traceback (most recent call last):
File "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/repo.bzl", line 106
_apply_patch(ctx, ctx.attr.patch_file)
File "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/repo.bzl", line 73, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail("Non-zero return code({1}) when ...))
Non-zero return code(256) when executing 'C:\msys64\usr\bin\bash.exe -l -c "patch" "-p1" "-d" "C:/users/dh/_bazel_dh/qoon6usn/external/png_archive" "-i" "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/png_fix_rpi.patch"':
Stdout:
Stderr: Timed out and referenced by '//tensorflow/core/platform/default/build_config:png'
ERROR: Analysis of target '//tensorflow:libtensorflow_cc.so' failed; build aborted: no such package '@png_archive//': Traceback (most recent call last):
File "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/repo.bzl", line 106
_apply_patch(ctx, ctx.attr.patch_file)
File "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/repo.bzl", line 73, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail("Non-zero return code({1}) when ...))
Non-zero return code(256) when executing 'C:\msys64\usr\bin\bash.exe -l -c "patch" "-p1" "-d" "C:/users/dh/_bazel_dh/qoon6usn/external/png_archive" "-i" "C:/tensorflow_installation/tensorflow-windows-build-script/source/third_party/png_fix_rpi.patch"':
Stdout:
Stderr: Timed out
INFO: Elapsed time: 188.657s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (68 packages loaded)
Metadata
Metadata
Assignees
Labels
No labels