Microsoft.Cpp.Win32.Targets(147,5): error MSB6006: "CL.exe" exited with code -1073741819.

Answered Microsoft.Cpp.Win32.Targets(147,5): error MSB6006: "CL.exe" exited with code -1073741819.

  • 2012年4月13日 下午 02:00
     
     

    Hi,

    cl.exe in VS2010 (C++) suddenly stopped working and began to crash with the above error code.

    I'm a bit clueless, but I suspect it is some Windows security update that is causing the problems (IT have pushed some updates recently).

    It fails on compiling even a simple Win32 console application.

    I've tried the following:

    1. Rebooted.
    2. Repaired VS2010 (I was using SP1).
    3. Installing VS2010 from scratch.

    Any suggestions?

    Best regards,

    Rasmus

    My latest security updates are:

所有回覆

  • 2012年4月13日 下午 07:59
     
     

    Hi again,

    I tried to build with Diagnostic output from MSbuild and got the following. I did the following to create this.

    1. Created a Win32 Console application called helloworld
    2. Attemted to compile the file helloworld.cpp using Ctrl+F7

    Any clue what's going on here?

    Best regards,

    Rasmus

    [...]

    1>Building with tools version "4.0".
    1>Target "_CheckForInvalidConfigurationAndPlatform: (TargetId:2)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (entry point):
    1>Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
    1>Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
    1>Using "Message" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    1>Task "Message" (TaskId:2)
    1>  Configuration=Release (TaskId:2)
    1>Done executing task "Message". (TaskId:2)
    1>Task "Message" (TaskId:3)
    1>  Platform=Win32 (TaskId:3)
    1>Done executing task "Message". (TaskId:3)
    1>Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\Release\' != '' and !HasTrailingSlash('C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\Release\')).
    1>Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
    1>Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('Release\' != '' and !HasTrailingSlash('Release\')).
    1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "helloworld.vcxproj".: (TargetId:2)
    1>Target "PlatformPrepareForBuild: (TargetId:3)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "PrepareForBuild" depends on it):
    1>Task "VCMessage" skipped, due to false condition; (!(exists('$(VCTargetsPath)\Platforms\Win32\PlatformToolsets\$(PlatformToolset)\Microsoft.Cpp.Win32.$(PlatformToolset).targets'))) was evaluated as (!(exists('C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\\Platforms\Win32\PlatformToolsets\v100\Microsoft.Cpp.Win32.v100.targets'))).
    1>Done building target "PlatformPrepareForBuild" in project "helloworld.vcxproj".: (TargetId:3)
    1>Target "GetFrameworkPaths: (TargetId:4)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.NETFramework.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "PrepareForBuild" depends on it):
    1>Done building target "GetFrameworkPaths" in project "helloworld.vcxproj".: (TargetId:4)
    1>Target "GetWinFXPath" skipped, due to false condition; (('@(Page)' != '' or '@(ApplicationDefinition)' != '' or '@(Resource)' != '') and ('$(GetWinFXNativePath)' != '' or '$(GetWinFXWoWPath)' != '' )) was evaluated as (('' != '' or '' != '' or '' != '') and ('' != '' or '' != '' )).
    1>Target "GetReferenceAssemblyPaths: (TargetId:5)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "PrepareForBuild" depends on it):
    1>Task "GetReferenceAssemblyPaths" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and ('$(_TargetFrameworkDirectories)' == '' or '$(_FullFrameworkReferenceAssemblyPaths)' == '')) was evaluated as ('.NETFramework,Version=v4.0' != '' and ('C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '' or 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '')).
    1>Done building target "GetReferenceAssemblyPaths" in project "helloworld.vcxproj".: (TargetId:5)
    1>Target "PrepareForBuild: (TargetId:6)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "_SelectedFiles" depends on it):
    1>Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(ConfigurationPlatformExists)' != 'true') was evaluated as (''!='true' and 'true' != 'true').
    1>Using "MakeDir" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    1>Task "MakeDir" (TaskId:4)
    1>Done executing task "MakeDir". (TaskId:4)
    1>Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCInstallDir)'=='' and '$(UseEnv)' != 'true' and ($(TargetFrameworkVersion)=='v3.5' or $(TargetFrameworkVersion)=='v3.0' or $(TargetFrameworkVersion)=='v2.0' )) was evaluated as (''!='true' and 'C:\Program Files\Microsoft Visual Studio 10.0\VC\'=='' and '' != 'true' and (v4.0=='v3.5' or v4.0=='v3.0' or v4.0=='v2.0' )).
    1>Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCInstallDir)'=='' and '$(UseEnv)' != 'true' and '$(PlatformToolset)'=='v90') was evaluated as (''!='true' and 'C:\Program Files\Microsoft Visual Studio 10.0\VC\'=='' and '' != 'true' and 'v100'=='v90').
    1>Task "VCMessage" skipped, due to false condition; ('$(VCInstallDir)'=='' and '$(UseEnv)' != 'true') was evaluated as ('C:\Program Files\Microsoft Visual Studio 10.0\VC\'=='' and '' != 'true').
    1>Task "VCMessage" skipped, due to false condition; ('$(WindowsSDKDir)'=='' and '$(UseEnv)' != 'true') was evaluated as ('C:\Program Files\Microsoft SDKs\Windows\v7.0A\'=='' and '' != 'true').
    1>Task "VCMessage" skipped, due to false condition; ('$(IntDirTrailingSlashWarning)'=='true') was evaluated as (''=='true').
    1>Task "VCMessage" skipped, due to false condition; ('$(OutDirTrailingSlashWarning)'=='true') was evaluated as (''=='true').
    1>Task "MakeDir" (TaskId:5)
    1>Done executing task "MakeDir". (TaskId:5)
    1>Done building target "PrepareForBuild" in project "helloworld.vcxproj".: (TargetId:6)
    1>Target "SetBuildDefaultEnvironmentVariables: (TargetId:7)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "_SelectedFiles" depends on it):
    1>Using "SetEnv" task from assembly "Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    1>Task "SetEnv" (TaskId:6)
    1>  PATH=C:\Program Files\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 10.0\Common7\tools;C:\Program Files\Microsoft Visual Studio 10.0\Common7\ide;C:\Program Files\HTML Help Workshop;C:\Program Files\Microsoft SDKs\Windows\v7.0A\\bin;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\;C:\Program Files\Microsoft Visual Studio 10.0\;C:\WINDOWS\SysWow64;;h:\bin\;C:\Program Files\MiKTeX 2.9\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Windows Imaging\;C:\Program Files\Altiris\Software Virtualization Agent\;C:\Program Files\\winzip;H:\Settings\Notesdat;C:\Program Files\IXOS\bin;C:\WINDOWS\system32\WindowsPowerShell\v1.0;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;c:\Programs\cygwin17\bin;C:\Program Files\doxygen\bin;C:\Programs\Exceed.nt;C:\IFOR\WIN\BIN;C:\IFOR\WIN\BIN\EN_US;C:\Program Files\Java\jdk1.6.0_25\bin;C:\Program Files\GhostView\gs7.00\bin;C:\Program Files\MATLAB\R2010b\runtime\win32;C:\Program Files\MATLAB\R2010b\bin;C:\Program Files\Quest Software\PuTTY\;C:\Programs\GridPro\bin; (TaskId:6)
    1>Done executing task "SetEnv". (TaskId:6)
    1>Task "SetEnv" skipped, due to false condition; ('$(_IsNativeEnvironment)' == 'true') was evaluated as ('' == 'true').
    1>Task "SetEnv" (TaskId:7)
    1>  LIB=C:\Program Files\Microsoft Visual Studio 10.0\VC\lib;C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\lib;C:\Program Files\Microsoft SDKs\Windows\v7.0A\lib;C:\Program Files\Microsoft SDKs\Windows\v7.0A\\lib;C:\Program Files\VisualAssert\lib\i386 (TaskId:7)
    1>Done executing task "SetEnv". (TaskId:7)
    1>Task "SetEnv" (TaskId:8)
    1>  LIBPATH=C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\lib;C:\Program Files\Microsoft Visual Studio 10.0\VC\lib (TaskId:8)
    1>Done executing task "SetEnv". (TaskId:8)
    1>Task "SetEnv" (TaskId:9)
    1>  INCLUDE=C:\Program Files\Microsoft Visual Studio 10.0\VC\include;C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include;C:\Program Files\Microsoft SDKs\Windows\v7.0A\include;C:\Program Files\Microsoft SDKs\Windows\v7.0A\\include;C:\Program Files\VisualAssert\include (TaskId:9)
    1>Done executing task "SetEnv". (TaskId:9)
    1>Done building target "SetBuildDefaultEnvironmentVariables" in project "helloworld.vcxproj".: (TargetId:7)
    1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != '').
    1>Target "_SelectedFiles: (TargetId:8)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "SelectClCompile" depends on it):
    1>Done building target "_SelectedFiles" in project "helloworld.vcxproj".: (TargetId:8)
    1>Target "ComputeMIDLGeneratedCompileInputs: (TargetId:9)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "SelectClCompile" depends on it):
    1>Done building target "ComputeMIDLGeneratedCompileInputs" in project "helloworld.vcxproj".: (TargetId:9)
    1>Target "ComputeCLInputPDBName: (TargetId:10)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "SelectClCompile" depends on it):
    1>Done building target "ComputeCLInputPDBName" in project "helloworld.vcxproj".: (TargetId:10)
    1>Target "BeforeResolveReferences: (TargetId:11)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "ResolveReferences" depends on it):
    1>Done building target "BeforeResolveReferences" in project "helloworld.vcxproj".: (TargetId:11)
    1>Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
    1>Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
    1>Target "_SplitProjectReferencesByFileExistence: (TargetId:12)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "ResolveProjectReferences" depends on it):
    1>Task "ResolveNonMSBuildProjectOutput" skipped, due to false condition; ('$(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!='') was evaluated as ('true'=='true' and ''!='').
    1>Done building target "_SplitProjectReferencesByFileExistence" in project "helloworld.vcxproj".: (TargetId:12)
    1>Target "_RemoveNameMetadataFromProjectReferenceItems" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
    1>Target "ResolveProjectReferences: (TargetId:13)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "ResolveReferences" depends on it):
    1>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and ('true' == 'true' or 'false' != 'true') and '' != '').
    1>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' != 'true' and 'false' == 'true' and '' != '').
    1>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingProject)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' == 'true' and '' != '').
    1>Task "Warning" skipped, due to false condition; ('@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceNonexistent)' != '') was evaluated as ('' != '' and '' != '').
    1>Done building target "ResolveProjectReferences" in project "helloworld.vcxproj".: (TargetId:13)
    1>Target "ResolveNativeReferences" skipped, due to false condition; ('@(NativeReference)'!='') was evaluated as (''!='').
    1>Target "ResolveAssemblyReferences" skipped, due to false condition; ('@(Reference)'!='' or '@(_ResolvedProjectReferencePaths)'!='' or '@(_ExplicitReference)' != '') was evaluated as (''!='' or ''!='' or '' != '').
    1>Target "ResolveComReferences" skipped, due to false condition; ('@(COMReference)'!='' or '@(COMFileReference)'!='') was evaluated as (''!='' or ''!='').
    1>Target "AfterResolveReferences: (TargetId:14)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "ResolveReferences" depends on it):
    1>Done building target "AfterResolveReferences" in project "helloworld.vcxproj".: (TargetId:14)
    1>Target "ResolveTestReferences" skipped, due to false condition; ('@(Shadow)'!='') was evaluated as (''!='').
    1>Target "ResolveReferences: (TargetId:15)" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "ComputeReferenceCLInput" depends on it):
    1>Done building target "ResolveReferences" in project "helloworld.vcxproj".: (TargetId:15)
    1>Target "ComputeReferenceCLInput: (TargetId:16)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "SelectClCompile" depends on it):
    1>Task "WriteLinesToFile" skipped, due to false condition; (('@(ProjectReference)'!='' or '@(Reference)'!='')) was evaluated as ((''!='' or ''!='')).
    1>Task "Message" skipped, due to false condition; ('$(_REFERENCE_DEBUG)'=='true' and '%(ClCompile.CompileAsManaged)' != 'false' and '%(ClCompile.CompileAsManaged)' != '') was evaluated as (''=='true' and '' != 'false' and '' != '').
    1>Done building target "ComputeReferenceCLInput" in project "helloworld.vcxproj".: (TargetId:16)
    1>Target "_SelectedFiles" skipped. Previously built successfully.
    1>Target "SelectCustomBuild: (TargetId:17)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "SelectClCompile" depends on it):
    1>Done building target "SelectCustomBuild" in project "helloworld.vcxproj".: (TargetId:17)
    1>Target "SelectClCompile: (TargetId:18)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (target "ClCompile" depends on it):
    1>Done building target "SelectClCompile" in project "helloworld.vcxproj".: (TargetId:18)
    1>Target "GenerateTargetFrameworkMonikerAttribute" skipped, due to false condition; ('$(GenerateTargetFrameworkAttribute)' == 'true') was evaluated as ('false' == 'true').
    1>Target "ClCompile: (TargetId:19)" in file "C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets" from project "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj" (entry point):
    1>Using "Delete" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    1>Task "Delete" (TaskId:10)
    1>  File "Release\helloworld.pch" doesn't exist. Skipping. (TaskId:10)
    1>Done executing task "Delete". (TaskId:10)
    1>Task "CL" skipped, due to false condition; ('%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true') was evaluated as ('Use' == 'Create' and ''!='true').
    1>Using "CL" task from assembly "Microsoft.Build.CppTasks.Win32, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    1>Task "CL" (TaskId:11)
    1>  Environment Variables passed to tool: (TaskId:11)
    1>    VS_UNICODE_OUTPUT=1072 (TaskId:11)
    1>  Tracking command: (TaskId:11)
    1>  C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\Tracker.exe /d C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\FileTracker.dll /i "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\Release" /r "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO 10.0\COMMON7\IDE\VISUAL STUDIO 2010PROJECTS\HELLOWORLD\HELLOWORLD\HELLOWORLD.CPP" /b MSBuildConsole_CancelEventaaaf98acaec04d78b5b30ab101ac4efd  /c "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe"  /c /Zi /nologo /W3 /WX- /O2 /Oi /Oy- /GL /D WIN32 /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /MD /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Yu"StdAfx.h" /Fp"Release\helloworld.pch" /Fo"Release\\" /Fd"Release\vc100.pdb" /Gd /TP /analyze- /errorReport:prompt helloworld.cpp (TaskId:11)
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error MSB6006: "CL.exe" exited with code -1073741819.
    1>Done executing task "CL" -- FAILED. (TaskId:11)
    1>Done building target "ClCompile" in project "helloworld.vcxproj" -- FAILED.: (TargetId:19)
    1>
    1>Project Performance Summary:
    1>     8547 ms  C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Visual Studio 2010Projects\helloworld\helloworld\helloworld.vcxproj   1 calls
    1>               8547 ms  ClCompile                                  1 calls
    1>
    1>Target Performance Summary:
    1>        0 ms  GetReferenceAssemblyPaths                  1 calls
    1>        0 ms  SelectClCompile                            1 calls
    1>        0 ms  _SplitProjectReferencesByFileExistence     1 calls
    1>        0 ms  GetFrameworkPaths                          1 calls
    1>        0 ms  ResolveReferences                          1 calls
    1>        0 ms  PrepareForBuild                            1 calls
    1>        0 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
    1>        0 ms  PlatformPrepareForBuild                    1 calls
    1>        0 ms  ComputeCLInputPDBName                      1 calls
    1>        0 ms  ComputeMIDLGeneratedCompileInputs          1 calls
    1>        0 ms  SelectCustomBuild                          1 calls
    1>        0 ms  ResolveProjectReferences                   1 calls
    1>        0 ms  SetBuildDefaultEnvironmentVariables        1 calls
    1>        0 ms  BeforeResolveReferences                    1 calls
    1>        0 ms  _SelectedFiles                             1 calls
    1>        0 ms  AfterResolveReferences                     1 calls
    1>       16 ms  ComputeReferenceCLInput                    1 calls
    1>     8531 ms  ClCompile                                  1 calls
    1>
    1>Task Performance Summary:
    1>        0 ms  Message                                    2 calls
    1>        0 ms  SetEnv                                     4 calls
    1>        0 ms  Delete                                     1 calls
    1>        0 ms  MakeDir                                    2 calls
    1>     8500 ms  CL                                         1 calls
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:08.56
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  • 2012年4月14日 下午 03:56
     
     

    Hi again,

    I'm still attempting to resolve this and I have the following additional findings:

    • I am able to run cl.exe directly from the command prompt, so I'm guessing it is the interplay between msbuild and cl.exe?
    • msbuild fails from the command prompt.

    also tried (without luck):

    • Clearing the registry for any VS2010 settings and then reinstalling.
    • Installed NDP40-KB2532942-x86
    • Installed VS10SP1-KB2632377

    Best regards,

    Rasmus

  • 2012年4月14日 下午 06:41
     
     
    Still attempting...

    I've installed the following hotfixes

    And still I'm getting

    Notice that the direct call of cl.exe does not crash. :-/

    Best regards,

    Rasmus

  • 2012年4月14日 下午 06:55
     
     

    I also did a ProcessMonitor trace of msbuild, Tracker and cl.exe until the point where cl.exe crashes. This can be downloaded here:

    Trace until crash

    Hope it is helpful for finding the bug. Please let me know if I need to include other processes.

    BR,

    Rasmus

  • 2012年4月14日 下午 07:45
     
     

    >Microsoft.Cpp.Win32.Targets(147,5): error MSB6006: "CL.exe" exited with code -1073741819. "

    The only comment i can make "-1073741819 is 0xc0000005, which is the code for STATUS_ACCESS_VIOLATION."  I.e. cl.exe exited with Access violation.

    (from http://forum.sysinternals.com/psexec-error-code-1073741819_topic14138.html

    But i have no idea what follows from this knowledge. That is what some source suggests: "Typically, the 1073741819 error message can be because of Microsoft Windows system data file malfunction. ...There are several situations which may trigger system file errors. An unfinished installation setup, a partial uninstall, incorrect erasure of applications or equipment." (http://www.pcmmc.com/1073741819.php)

    All these uninstalls of yours confirm that situation slightly improves, but still VC++ is either installed incorrectly, or there are left uninstalled parts.


  • 2012年4月15日 上午 05:58
     
     

    I don't think it's quite that simple. I'm having a similar problem, and it seems like quite a coincidence that we would both begin seeing this at the same time, immediately after some Microsoft updates that are also causing problems with other applications.

    I'm not getting exactly the same error, but it is very close.

    Description: error MSB6006: "CL.exe" exited with code -1073741515.
    File: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets
    Line: 62
    Column: 6

    I can reproduce the error by creating a new C++ Win32 console application within the IDE and trying to build it.

    This error is different trouble (-1073741515 is 0xC0000135) - 

    0xC0000135
    STATUS_DLL_NOT_FOUND
    {Unable To Locate Component} This application has failed to start because %hs was not found. Reinstalling the application may fix this problem. (from http://msdn.microsoft.com/en-us/library/cc704588(v=prot.10).aspx)

    You can use Dependancy Walker (http://www.dependencywalker.com/) to locate missing DLL.

    Also (from here http://trac.webkit.org/wiki/BuildingOnWindows) - 

    "If you see this error ... then you need to ensure that the directory C:\Program Files\Microsoft Visual Studio 8\Common7\IDE is listed in the PATH environment variable."

  • 2012年4月15日 下午 08:00
     
     

    Hi Sergei,

    Thanks for your replies - I tried adding the path without luck. Regarding access_violation I'm guessing that it is an attempt from Cl.exe to access some memory that doesn't belong to the process - probably some nullpointer + something.

    Best regards,

    Rasmus

  • 2012年4月15日 下午 08:19
     
     

    ... Further digging... I was comparing the above trace with the files from my windows directory that has been modified after my troubles start.

    C:\windows\system32\sysfer.dll is the ONLY modified file that is used by MSBuild (Also checked Tracker or Cl.exe)

    This seems to belong to Symantec (http://www.processlibrary.com/directory/files/sysfer/415756/)

    I'm still a bit clueless I must admit... :-/

    BR,

    Rasmus

  • 2012年4月16日 下午 07:03
     
     
    Have you tried to add the folder which contains the project to the exclude list in Symantec AntiVirus?

    My MSDN Blog: http://blogs.msdn.com/xiangfan

  • 2012年4月20日 上午 07:56
     
     已答覆

    Hi,

    It turned out to be the "Application and Device Control" of Symantec Endpoint Protection that caused the troubles on XP. Uninstalling it solved the problem.

    Hope my comments can help others NOT to waste a week like I did :-/

    Best regards,

    Rasmus

  • 2012年4月21日 下午 03:19
     
     

    check this link this may help you out

    http://dotnetforum.net/topic/10405-msb6006-clexe-exited-with-code-1073741515/

  • 2012年4月21日 下午 04:26
     
     

    It turned out to be the "Application and Device Control" of Symantec Endpoint Protection that caused the troubles on XP. Uninstalling it solved the problem.

    Ah, them again! good to know, thanks

    -- pa