tag:help.appveyor.com,2012-11-13:/discussions/kb/47-visual-studios-clexe-fails-only-with-python-33-and-34-and-only-on-64bit-not-on-unixAppVeyor: Discussion 2018-10-19T08:18:13Ztag:help.appveyor.com,2012-11-13:Comment/420359272017-02-26T23:19:16Z2017-02-26T23:19:17ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Build: <a href="https://ci.appveyor.com/project/hyllos/effectus-python/build/1.0.63">
https://ci.appveyor.com/project/hyllos/effectus-python/build/1.0.63</a></p>
<p>error: command 'c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\Bin\x86_amd64\cl.exe' failed with exit status
-1073741515</p>
<p>What can be the cause of the digression?<br>
How can I increase verbosity / debug?</p>
<p>Thanks.</p>
<p>Benjamin</p></div>Benjamintag:help.appveyor.com,2012-11-13:Comment/420359272017-02-26T23:37:00Z2017-02-26T23:37:00ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>I've rebuilt the last successful commit for Python 3.3 x64 and
it worked: <a href="https://ci.appveyor.com/project/FeodorFitsner/effectus-python/build/1.0.3">
https://ci.appveyor.com/project/FeodorFitsner/effectus-python/build...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/420359272017-02-26T23:48:55Z2017-02-26T23:48:58ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Thanks Feodor for your prompt response.<br>
I cannot confirm that would clarify my issue.<br>
The last successful commit for Python 3.3 x64 did not rely on
cl.exe from Visual Studio as no C code was present.</p>
<p>The error only occurs on 64 bit, not on 32 bit and only for
Python 3.3 and Python 3.4.</p>
<p>If Visual Studio 2015 passes without glitches both 32 bit and 64
bit (2010 32 bit anyways), does the issue reside on the side of my
code?</p>
<p>Feedback from #python:<br>
The exit code should indicate a missing DLL. How can I find out
which?<br>
A: "I would start by making sure the 64-bit VS2010 is in fact
(correctly) installed on the machines this is being run on."<br>
Q: "Would that explain the digression to occur on py3.3 and py3.4
and only on win64 bit to occur (not on darwin)?"<br>
A: "if the VS2010 32-bit install is fine but the 64-bit install is
missing, incomplete or broken, yes. 3.3 and 3.4 both use VS2010.
3.5 and later use VS2015."</p></div>Benjamintag:help.appveyor.com,2012-11-13:Comment/420359272017-02-26T23:59:55Z2017-02-26T23:59:55ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Unfortunately, I don't have much experience with Python, so I
can't say what might be wrong.<br>
You can login into build VM via RDP and find out what's missing. If
you know how to fix that you'll help others.</p>
<p>Btw, I built the last commit on <code>Previous Visual Studio
2015</code> (January 24) and it also failed: <a href="https://ci.appveyor.com/project/FeodorFitsner/effectus-python/build/1.0.5">
https://ci.appveyor.com/project/FeodorFitsner/effectus-python/build...</a></p>
<p>If something is broken on a build image it was broken before the
last update.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T00:20:41Z2017-02-27T00:20:44ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>I was able to login via RDP twice, however this time fails:<br>
Unable to connect to remote PC. Please verify Remote Desktop is
enabled, the remote PC is turned on and available on the network,
and then try again.</p>
<p><a href="https://ci.appveyor.com/project/hyllos/effectus-python/build/job/s3yj2kg1va4850qf">
https://ci.appveyor.com/project/hyllos/effectus-python/build/job/s3...</a></p>
<p>Should I wait for it to be reset after 60 mins?</p></div>Benjamintag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T00:24:33Z2017-02-27T00:24:33ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Just restart the build to get onto different VM (you may leave
just this job in appveyor.yml's matrix to speed up things). There
might be gaps in port mappings - will take a look.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T01:27:29Z2017-02-27T01:27:31ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Feodor,</p>
<p>here is my reconstruction:</p>
<p>mspdb100.dll is missing.</p>
<p><a href="http://stackoverflow.com/a/6476764/2490706">http://stackoverflow.com/a/6476764/2490706</a></p>
<p>tells to run the following to get the ENV and amenities prepared
correctly</p>
<p>"C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" x86</p>
<p>obviously the x86 must be changed to anything suitable for x64,
like (typing anything wrong instead of x86 shows list of valid
options):<br>
ia64 | amd64 | x86_amd64 | x86_ia64</p>
<p>All of which raise:<br>
"The specified configuration type is missing. The tools for the
configuration might not be installed."</p>
<p>I suspect some 64 bit specific tools for Visual Studio to be
missing, both for 2010 and 2015:</p>
<p><a href="https://social.msdn.microsoft.com/Forums/en-US/e0ef4613-d90f-4eec-90db-41339ed31367/vs2010-express-and-missing-x64-compiler?forum=Vsexpressinstall">
https://social.msdn.microsoft.com/Forums/en-US/e0ef4613-d90f-4eec-9...</a></p>
<p>which would be</p>
<p><a href="https://blogs.msdn.microsoft.com/windowssdk/2010/05/25/released-windows-sdk-for-windows-7-and-net-framework-4/">
https://blogs.msdn.microsoft.com/windowssdk/2010/05/25/released-win...</a></p>
<p>Firstly, what can I or you do to make one of the following lines
working?<br>
"C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" ia64 "C:\Program Files (x86)\Microsoft
Visual Studio 10.0\VC\vcvarsall.bat" amd64 "C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86_amd64
"C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" x86_ia64</p>
<p>Secondly, how can I define this varsall only to be executed on
init for 64 bit variants in my appveyor.yml?</p></div>Benjamintag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T01:48:35Z2017-02-27T01:48:39ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>So then I tried to install that Visual Studio SDK stuff (by not
knowing whether this is actually the problem).</p>
<p>It shows (screenshot 1) x64 libraries to be installed (if the
files in question are really in it, the image might be corrupted).
I can't install the C++ tools, as mentioned in the MSDN post, due
to missing .NET 4.0.</p>
<p>However if I try to install .NET 4.6.2, it tells me blatantly
that it already is installed (screenshot 2).</p>
<p>Kindly request you to revert on this issue back to me.</p>
<p>Benjamin</p></div>Benjamintag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T15:26:15Z2017-02-27T15:26:16ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Hey Benjamin, have you taken a look at this example project?
They have some information/scripts to deal w VIsual Studio/Python.
I suspect the run_with_env.cmd should do what you need.</p>
<p><a href="https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor/run_with_env.cmd">
https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyo...</a></p>
<p>For my project we build python libraries using visual studio as
well, but getting the setup right to deal w all the different
visual studio configurations was a pain.</p>
<p><a href="https://ci.appveyor.com/project/pythonnet/pythonnet/branch/master">
https://ci.appveyor.com/project/pythonnet/pythonnet/branch/master</a></p></div>Victor tag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T15:32:03Z2017-02-27T15:32:05ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Since you are using TOX you may need to add to its config
PASSENV so that the env_vars make it through. You may want to test
without TOX first too.</p>
<p>Kudos on getting TOX setup with 32/64 combination. I been
meaning to figure that one out.</p></div>Victor tag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T18:20:10Z2017-02-27T18:20:11ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>PROBLEM RESOLVED</p>
<p>Victor —</p>
<p>Thanks for your input. That have been the missing bits I
needed.<br>
My tests pass all now: <a href="https://ci.appveyor.com/project/hyllos/effectus-">https://ci.appveyor.com/project/hyllos/effectus-</a><br>
python/build/1.0.78<br>
Due to the two examples you provided, I was able to add
appveyor_env.cmd and to adapt appveyor.yml.<br>
Further, I simplified the matrix extensively appreciating your
appveyor.yml.</p>
<p>Best wishes,</p>
<p>Benjamin</p></div>Benjamintag:help.appveyor.com,2012-11-13:Comment/420359272017-02-27T18:38:13Z2017-02-27T18:38:20ZVisual Studio's cl.exe fails only with Python 3.3 and 3.4 and only on 64bit (not on Unix)<div><p>Awesome! glad it worked and thanks for the reference in your
<code>appveyor.yml</code> :)</p>
<p>Since you put python and scripts in PATH you can now call
<code>pip</code> and <code>tox</code> directly.<br>
There's a couple other tweaks you can do on your TOX / AppVeyor
config. I can open a ticket on bitbucket if u want.</p></div>Victor