-
Notifications
You must be signed in to change notification settings - Fork 74.1k
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
Cmake build with GPU fails on Windows 10 with a MSB6006 error #19895
Comments
@gunan Can you take a look at this? |
I will look more into it but for now a random guess: |
@annarev I have several anaconda environments setup on the machine I attempted to build TensorFlow, and one of the environments does have TensorFlow installed from pip. The anaconda environment which I attempted the build however does not have TensorFlow installed. My environment details are below,
From the above, the 'deep-learning' environment has TensorFlow installed from pip (tensorflow-gpu 1.5.0), while the other environments does not have it. I attempted the cmake build on the 'tfbuild' environment. But, let me remove the environment with TensorFlow installed and re-run the build to see whether it has an effect. |
I attempted the following:
I re-ran the build using the following command (this time using the 'base' anaconda environment, which had Python 3.6),
And the build failed (after 4 hours 40 minutes) with the following error,
I found the following issue: #18931 which points to the same error with "cpp_shape_inference.pb.h". I will attempt the fix mentioned in that issue next. |
The fix suggested in #18931 did not solve the problem (although, the build did run few minutes longer). The build now fails with the following error.
|
Sorry for not replying earlier. To answer your earlier question, any version is ok to try for building. |
@annarev I didn't see any other errors in the output. But let me re-run the build with 'detailed' verbosity and see if it shows any errors. |
@annarev I re-ran the build with detailed verbosity with the latest code from the master branch as of today (26/6/18 - 91780a3). The build still fails, but now it gives a different error.
I did a search for "error:" in the build log as you suggested, which returned the following lines,
": error" didn't have any matches. Please find the complete build log here: msbuild.log. Please note that the log file is about 100MB. |
For the latest issue, I just pushed a fix to master. Could you try pulling head and retrying? |
@gunan I re-attempted the build, by cloning a fresh copy (with the head commit at bfcfad5). However, it still failed with the following error,
Please find the full build log here. Question: does the build depend on any python modules already being installed? Can already installed python modules conflict with it? I have verified that tensorflow is not installed anywhere in my machine before building. But, I do have protobuf, and absl-py installed. Can it cause an issue? |
Hi, I have the exact same errors, here is my config if that helps :
MSBuild /m:4 /p:Configuration=Release /p:PreferredToolArchitecture=x64 tensorflow.sln And the resulting errors :
|
For windows and cmake buiding, there is an issue when generating python api, in the scipt |
Thank you @LoSealL , uninstalling PS : I first tried to remove just |
Nagging Assignee @gunan: It has been 59 days with no activity and this issue has an assignee. Please update the label and/or status accordingly. |
I think this was fixed, but I forgot to update this issue. As a bonus, building TF on windows with GPU support is 5x faster using bazel than cmake! |
System information
Describe the problem
The build fails with a "error MSB6006: "cmd.exe" exited with code 1". Full error message below.
The line 259 of referred to in the error message points to a "tensorflow\tensorflow\contrib\cmake\build\tf_python\tensorflow\tools\api\generator\api\keras\preprocessing\text_init_.py" file, which does not exist. The .......\preprocessing\text\ directory is empty.
Source code / logs
The text was updated successfully, but these errors were encountered: