Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cl.exe returing error code D8050

Tags:

visual-c++

I have the following error on fresh windows 8 install with microsoft visual studio ultimate 2013 :

cl : Command line error D8050 : cannot execute 'C:\Program Files (x86)\Microsoft
 Visual Studio 12.0\VC\BIN\amd64\c1xx.dll': failed to get command line into debu
g records

The weird thing is that trying to compile in an admin cmd is working.... I tried to change ownership/rights of the VS12 folder but it changes nothing.

cl /Fobin\x64\Release\file.obj /c src\file.cpp 
/TP /nologo /MP /GS /W4 /wd4800 /wd4138 /wd4530 /wd4512 /wd4996 /wd4251 
/wd4661 /wd4505 /WX- /Gd /Zi /Gm- /Zc:wchar_t /errorReport:prompt /Zc:forScope 
/Fplibvideostitch.pch /FS /Fdvc120.pdb /fp:precise /GL /O2 /Oy- /Oi /MD /Ot 
/DWIN32 /D_USE_MATH_DEFINES /D_WINDLL /DNOMINMAX /D_CONSOLE /DNDEBUG
"/IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include"
like image 869
MisterJ Avatar asked Oct 24 '14 11:10

MisterJ


People also ask

What is CL exe on Windows?

cl.exe is a tool that controls the Microsoft C++ (MSVC) C and C++ compilers and linker. cl.exe can be run only on operating systems that support Microsoft Visual Studio for Windows. Note. You can start this tool only from a Visual Studio developer command prompt.

Where is Cl exe stored?

cl.exe is usually located at %VCINSTALLDIR%\bin\ . VCINSTALLDIR environment variable is not set by default, but it is being set when you open Visual Studio's Native Tools Command Prompt.


3 Answers

I had this issue with a cleared environment, and it was resolved (at least in part) by setting the TMP environment variable.

like image 111
Greg Domjan Avatar answered Oct 14 '22 10:10

Greg Domjan


I had my %TEMP% and %TMP% vars pointing to a directory that contained a $. Replacing it with an _ solved the issue for me.

like image 35
fmuecke Avatar answered Oct 14 '22 12:10

fmuecke


I ran into this error after I cleaned up my C drive (deleted temporary files of all sorts). I was able to fix it by re-setting the environment variables for Visual C++ command-line tools. This page was my reference. I was building 64 bit.

Run cmd as admin.

c:\>cd YourVSInstallDir\VC
c:\YourVSInstallDir\VC>vcvarsall.bat amd64
like image 3
robinhood9 Avatar answered Oct 14 '22 11:10

robinhood9