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

error MSB6006: "cmd.exe" exited with code 3 #4

Open
iziamtso opened this issue Nov 5, 2019 · 12 comments
Open

error MSB6006: "cmd.exe" exited with code 3 #4

iziamtso opened this issue Nov 5, 2019 · 12 comments

Comments

@iziamtso
Copy link

iziamtso commented Nov 5, 2019

Hello,
Do not mean to replicate the same problem but it seems the other person is not responding.
I have very similar issue, I followed your steps precisely but still failed to build. I would really appreciate any help you can give me on this.
error_tf

This is a screenshot after running MSBUILD cmd. I am using VS2017 with 2015 toolchain

@nnhattan
Copy link

nnhattan commented Nov 5, 2019 via email

@iziamtso
Copy link
Author

iziamtso commented Nov 5, 2019

@nnhattan were you be able to fix this issue? I am a bit confused. I see that you originally posted a similar issue right?

@nnhattan
Copy link

nnhattan commented Nov 5, 2019 via email

@arnaldog12
Copy link
Owner

Hi, guys
I need the full error log to help. The last lines are not very useful, actually. If you scroll up a bit, you'll be able to see the error started at some point earlier.

Please, attach it as a file to the comment instead of copying & pasting.

@iziamtso
Copy link
Author

iziamtso commented Nov 6, 2019

@arnaldog12 Thank you for responding I am in the process producing that file for you. I will post it in 10 min.

@iziamtso
Copy link
Author

iziamtso commented Nov 6, 2019

@arnaldog12 in the first step you set up your python evn and asks user to remember the path of the python and its libs but you never use it below. Does it mean that I should run configure.py and give these path?

@nnhattan
Copy link

nnhattan commented Nov 6, 2019 via email

@nnhattan
Copy link

nnhattan commented Nov 6, 2019 via email

@nnhattan
Copy link

nnhattan commented Nov 6, 2019 via email

@iziamtso
Copy link
Author

iziamtso commented Nov 6, 2019

@arnaldog12 Thank you for your help. The output of the last run is in the file attached. Please let me know what you think.

For my last run output of which is in the file below I provided PY_EXE & PY_LIB the two path from the step 1.

Step 1:
conda create -n tfbuild python=3.5 numpy

output.txt

My .bat config:

  • IF DEFINED CMAKE_EXE (ECHO CMAKE_EXE is set to %CMAKE_EXE%) ELSE (SET CMAKE_EXE="C:\Program Files\CMake\bin\cmake.exe")
  • IF DEFINED SWIG_EXE (ECHO SWIG_EXE is set to %SWIG_EXE%) ELSE (SET SWIG_EXE="C:\swigwin\swig.exe")
  • IF DEFINED PY_EXE (ECHO PY_EXE is set to %PY_EXE%) ELSE (SET PY_EXE="C:\Anaconda3\envs\tfbuild\python.exe")
  • IF DEFINED PY_LIB (ECHO PY_LIB is set to %PY_LIB%) ELSE (SET PY_LIB="C:\Anaconda3\envs\tfbuild\libs\python35.lib")
  • IF DEFINED CUDNN_HOME (ECHO CUDNN_HOME is set to %CUDNN_HOME%) ELSE (SET CUDNN_HOME="C:\cudnn_6.0_cuda_8")
  • verbosity:quiet
  • SET CMAKE_DIR=%REPO_ROOT%\tensorflow\contrib\cmake
  • SET MSBUILD_EXE="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"

I did not touch CUDNN_HOME since I only want to build CPU version. Is it correct?

One more thing:
@arnaldog12 Would you mind sharing a visual studio VS2017 full solution folder with all the tensorflow binaries already built? If it all fails could just maybe use that instead. All I need to do is just some simple inference in C++.

Last little questions:
Why are you only showing the release version? It is possible to build a debug right?

@iziamtso
Copy link
Author

iziamtso commented Nov 7, 2019

@arnaldog12 Hello again. I think I managed to built the static library. I would like to attach it now to my other VS project. I understand I should provide the lib and a path to it in the linker but what folder/folders should I provide for the include part. (C/C++ --> Additional Include Directories)?

@arnaldog12
Copy link
Owner

Hi, @iziamtso

Nice to hear you did that. Can you share how you accomplished that here to help others as well?

Answering your questions:

Why are you only showing the release version? It is possible to build a debug right?

No, TensorFlow does not support debug build, only release.

what folder/folders should I provide for the include part. (C/C++ --> Additional Include Directories)

Please, check this link to see how to configure the Visual Studio solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants