This repository was archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
This repository was archived by the owner on May 28, 2024. It is now read-only.
Build on Windows causes stack overflow in bash.exe #87
Copy link
Copy link
Open
Description
I try to build the example ops in this repo as a pip package on Windows 10. I followed the instructions here to set up the requirements using the given compatible versions as in the uppermost row in the table here. Then I copy my python executable and rename the copy to phyton3.exe.
Following the instructions in this repo, I do
- ./configure.sh in msys2 bash
- bazel build build_pip_pkg --verbose_failures
The latter fails and gives me the following output:
INFO: Found 1 target...
ERROR: C:/msys64/home/thies/_bazel_thies/7k73csjp/external/local_config_tf/BUILD:17:1: Executing genrule @local_config_tf//:tf_header_include failed (Exit 35584): bash.exe failed: error executing command
cd C:/msys64/home/thies/_bazel_thies/7k73csjp/execroot/__main__
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1
SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\nodejs;C:\Go\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.4.0;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Users\thies\go\bin;C:\msys64\usr\bin;C:\Users\thies\miniconda3\condabin;C:\Users\thies\Documents\Bazel\bazel-3.1.0-dist\output;C:\Users\thies\AppData\Local\Programs\Python\Python38\Scripts;C:\Users\thies\AppData\Local\Programs\Python\Python38
SET RUNFILES_MANIFEST_ONLY=1
SET TF_CUDA_VERSION=10.1
SET TF_CUDNN_VERSION=7
SET TF_HEADER_DIR=C:/Users/thies/AppData/Local/Programs/Python/Python38/lib/site-packages/tensorflow/include
SET TF_NEED_CUDA=1
SET TF_SHARED_LIBRARY_DIR=C:/Users/thies/AppData/Local/Programs/Python/Python38/lib/site-packages/tensorflow/python
SET TF_SHARED_LIBRARY_NAME=_pywrap_tensorflow_internal.lib
C:/msys64/usr/bin/bash.exe bazel-out/x64_windows-opt/bin/external/local_config_tf/tf_header_include.genrule_script.sh
Execution platform: @local_config_platform//:host
0 [] bash 1410 cygwin_exception::open_stackdumpfile: Dumping stack trace to bash.exe.stackdump
Target //:build_pip_pkg failed to build
ERROR: C:/msys64/home/thies/_bazel_thies/7k73csjp/external/local_config_tf/BUILD:3:1 Executing genrule @local_config_tf//:tf_header_include failed (Exit 35584): bash.exe failed: error executing command
cd C:/msys64/home/thies/_bazel_thies/7k73csjp/execroot/__main__
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1
SET PATH=C:\msys64\usr\bin;C:\msys64\bin;C:\Windows;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\nodejs;C:\Go\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.4.0;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Users\thies\go\bin;C:\msys64\usr\bin;C:\Users\thies\miniconda3\condabin;C:\Users\thies\Documents\Bazel\bazel-3.1.0-dist\output;C:\Users\thies\AppData\Local\Programs\Python\Python38\Scripts;C:\Users\thies\AppData\Local\Programs\Python\Python38
SET RUNFILES_MANIFEST_ONLY=1
SET TF_CUDA_VERSION=10.1
SET TF_CUDNN_VERSION=7
SET TF_HEADER_DIR=C:/Users/thies/AppData/Local/Programs/Python/Python38/lib/site-packages/tensorflow/include
SET TF_NEED_CUDA=1
SET TF_SHARED_LIBRARY_DIR=C:/Users/thies/AppData/Local/Programs/Python/Python38/lib/site-packages/tensorflow/python
SET TF_SHARED_LIBRARY_NAME=_pywrap_tensorflow_internal.lib
C:/msys64/usr/bin/bash.exe bazel-out/x64_windows-opt/bin/external/local_config_tf/tf_header_include.genrule_script.sh
Execution platform: @local_config_platform//:host
INFO: Elapsed time: 0.852s, Critical Path: 0.72s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
Apparently, the execution of the last command (C:/msys64/usr/bin/bash.exe bazel-out/x64_windows-opt/bin/external/local_config_tf/tf_header_include.genrule_script.sh) causes a stack overflow in bash. Here is the content of the corresponding bash.exe.stackdump.
Exception: STATUS_STACK_OVERFLOW at rip=001004142BF
rax=0000000800216900 rbx=0000000000000020 rcx=0000000000000010
rdx=0000000000000008 rsi=00000000FFFFFFFF rdi=0000000000000008
r8 =0000000000000120 r9 =00000000FFFFFFFF r10=0000000100000000
r11=0000000000000000 r12=0000000800216930 r13=0000000800216640
r14=00000000FFFFFFFF r15=0000000000000000
rbp=00000000FFFFCC00 rsp=00000000FFE04000
program=C:\msys64\usr\bin\bash.exe, pid 967, thread
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Any help to solve this would be much appreciated.
Metadata
Metadata
Assignees
Labels
No labels