Beta 2 error, Project : error PRJ0003 : Error spawning 'cmd.exe'.

Hi, I've just installed the new visual c++ beta 2, and I get this weird error when compiling a project.


Build started: Project: FindWeights, Configuration: Debug Win32

Embedding manifest...

Project : error PRJ0003 : Error spawning 'cmd.exe'.

Build log was saved at "file://c:\My\Active\FindWeights\Debug\BuildLog.htm"

FindWeights - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any idea what I can do to fix this?

Thanks

[701 byte] By [andrewness] at [2008-2-18]
# 1
Have you done a "clean" install of Beta 2? Or was there some other beta products installed?
JochenKalmbach at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
Just for the record: I am running into the exact same problem with a clean install of beta 2 after removing all the beta 1 components.
rradtke at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3
Even more for the record, setting the environment PATH variable in the control panel to the same value as the one echo %path% produces in the visual studio shell fixes this issue.
rradtke at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 4
Hi,

Do you happen to have a really large environment (> 15KB or so)?

Ronald Laeremans
Visual C++ team

RonaldLaeremans at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 5
We'd like to investigate this issue but we need more information.

Can you set the opton (from Tools.Options.VC++Directoris) to dump the environment block in the build log and attach the build log to this thread?

Thanks,
Tarek

TarekMadkourMS at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 6

To whom this may concern,

I am getting the same error but with a different file;

Build started: Project: Netmsg, Configuration: Debug Win32

Creating Type Library...

Project : error PRJ0003 : Error spawning 'midl.exe'.

Creating browse information file...

Microsoft Browse Information Maintenance Utility Version 8.00.50215

Copyright (C) Microsoft Corporation. All rights reserved.

BSCMAKE: error BK1506 : cannot open file '.\Debug\ColorOptions.sbr': No such file or directory

Build log was saved at "file://e:\Projects\Debug\BuildLog.htm"

Netmsg - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

What is going wrong?

pmj172 at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 7
I've had the same problem, just a bit different. I've had an error saying:

1>Embedding manifest...

1>mt.exe:general error c101008e:Failed to create the manifest from the identity string: "My App, type=win32, version=1.0.0.0, processorArchitecture=x86". The operation failed.

1>Project : error PRJ0002 : Error result 31 returned from 'D:\Gal\C++\Visual C++ 2005\Installed\VC\bin\mt.exe'.

1>Build log was saved at "file://d:\Gal\C++\Visual C++ 2005\Installed\My Projects\Gal's Botter\Gal's Botter\Debug\BuildLog.htm"

1>Gal's Botter - 1 error(s), 0 warning(s)
P.S - I didn't install any other beta and the only other C++ I have is Microsoft Visual C++ 6. Is it possible that it clashed?

BladeMaster at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 8
Edit: nevermind
KrazeIke at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 9
andrewness wrote:

Hi, I've just installed the new visual c++ beta 2, and I get this weird error when compiling a project.


Build started: Project: FindWeights, Configuration: Debug Win32

Embedding manifest...

Project : error PRJ0003 : Error spawning 'cmd.exe'.

Build log was saved at "file://c:\My\Active\FindWeights\Debug\BuildLog.htm"

FindWeights - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Any idea what I can do to fix this?

Thanks


Project -> "Your project" Properties -> Configuration Properties-> Manifest Tool ->Input and Output -> Embed Manifest = No
The manifest file will be creating.
P.

http://cpp.g5.pl - forum dla polskich programistów

Przemys?awRokicki at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 10

Hi, I'm also experiencing this error when compiling. The above solution with the embed manifest worked for one of the projects im compiling, but not for another one. They are both experiencing the exact same error, so im not sure why it would work for one and not the other.
The project that is still experiencing an error is very large, and has lots of subfolders/files, but ive checked all of them to make sure that they all have embed manifest off.
This is the only error im getting when compiling:

Build started: Project: Torque Shader Engine, Configuration: Release Win32

Performing Custom Build Step

Project : error PRJ0003 : Error spawning 'cmd.exe'.

Build log was saved at "file://c:\tse\engine\out.VC7.RELEASE\BuildLog.htm"

Torque Shader Engine - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========


Im running win XP SP 2. I never had the first beta of the express compiler installed, so I didnt have to uninstall anything. I do have a lot of directories linked with this project, does that make a difference? (I modified the config file to include the directories)
Thanks.
JS

JackStone at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 11
I once run into the same problem for several days with VS .NET 2003. I did try fix/reinstall VS .NET 2003. It does not work at all. The problem remains until I add the following entries into VC++ list of Excutable Directories in VS's Options dialog:

$(VCInstallDir)bin
$(VSInstallDir)Common7\Tools\bin\prerelease
$(VSInstallDir)Common7\Tools\bin
$(VSInstallDir)Common7\Tools
$(VSInstallDir)Common7\IDE

The Options dialog is off Tools menu and it's in Projects->VC++ Directories page.

Hope this would be any helpful.

Gaukulius at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 12
the values for all the paths set in the tools->options->projects->VC++ Directories dialog are stored in a file called "VCComponents.dat" in the local application data directory for Visual Studio (e.g. x:\Documents and Settings\<username>\Local Settings\Application Data\Microsoft\Visual Studio\8.0\VCComponents.dat). if you remove this file, the settings will all be set back to default, which should make the problems encountered by the folks on this thread go away, though you will lose any modifications you have made to these paths.

it is possible that these problems have arisen due to the VCComponents.dat file not being removed between installs of different versions of VS 8 (for instance, beta 1 and beta 2). to the best of my knowledge the VS installer/uninstaller doesn't remove this file.

josh

joshep at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 13

I have installed the full Visual Studio 2005 Professional
I never installed any beta

I previously had Visual Studio 2002 (vc7)
which was uninstalled before installing VS 2005

I have the file
C:\Documents and Settings\braunal01\Local Settings\Application Data\Microsoft\VisualStudio\7.0\VCComponents.dat

I do not have file
C:\Documents and Settings\braunal01\Local Settings\Application Data\Microsoft\VisualStudio\8.0\VCComponents.dat

The problem still occurs when I sent the 7.0 folder to the recycle bin

AllanBraun at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 14
Hai

I got same error with cmd.exe when i said manifest=no and debugged then no error
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

The log file is:
Build Log

Build started: Project: Ex1_01, Configuration: Debug|Win32


Command Lines
Creating temporary file "f:\testFiles\Test1\Ex1_01\Ex1_01\Debug\RSP00001935243144.rsp" with contents
[
/out:..\debug\Ex1_01.exe.manifest /manifest

.\Debug\Ex1_01.exe.intermediate.manifest
]
Creating command line "mt.exe @f:\testFiles\Test1\Ex1_01\Ex1_01\Debug\RSP00001935243144.rsp /nologo"

Output Window
Creating manifest...
Results
Build log was saved at "file://f:\testFiles\Test1\Ex1_01\Ex1_01\Debug\BuildLog.htm"

Ex1_01 - 0 error(s), 0 warning(s)


but when i compiled (F5) i am getting

'Ex1_01.exe': Loaded 'F:\testFiles\Test1\Ex1_01\debug\Ex1_01.exe', Symbols loaded.
'Ex1_01.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Ex1_01.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Ex1_01.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', No symbols loaded.
'Ex1_01.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', No symbols loaded.
'Ex1_01.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
The program '[2688] Ex1_01.exe: Native' has exited with code 0 (0x0).

The problem is i can see command prompt it is coming and closing by itself in a fraction of moment

Srikanth_mr at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 15

if you don't create a manifest then the C Runtime Library will not be able to be loaded and the OS will not be able to execute your application. you will get an error message that is something like "the application configuration is incorrect".

to see what error message you are getting in a console application, set your debug command line to have "& pause" appended to it. the pause command will print "Press any key to continue..." and wait for a keypress, giving you as much time as you want to read any error messages that were printed.

hth,

josh

VC++ project system developer

joshep at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 16
After installing visual c++ express edition, I followed carefully the instructions and installed the sdk.
I built the first WIN32 console application (empty) and after building I got this error

Project : error PRJ0003 : Error spawning 'cmd.exe'.

I read trough the error line carefully and just added to the exe directories (tools->options->P&S->...) the one that has cmd.exe in it (windows/system32).

It just works now.

Hope this helps

Fabio Ferrario
Quanta Sysetem S.p.A.

FabioF at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 17

i'm having the same problem about the cmd.exe but i'm running vista (amd 64 x2 2.2Ghz) but i cant find vccomponents.dat on my computer anywhere.

thanks in advacned

short_stack at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 18
im getting same problem @_@ here is the error

Build started: Project: Hangman, Configuration: Debug Win32
Hangman : error PRJ0006 : Could not open the temporary file '\\clc-svr\marshal_grice\Documents\4th Quarter\Passage\hangman\Hangman\Hangman\Debug\RSP00001324564000.rsp'. Make sure the file exists and that the directory is not write-protected.
Hangman : error PRJ0006 : Could not open the temporary file '\\clc-svr\marshal_grice\Documents\4th Quarter\Passage\hangman\Hangman\Hangman\Debug\RSP00001424564000.rsp'. Make sure the file exists and that the directory is not write-protected.
Compiling...
Project : error PRJ0003 : Error spawning '/Od'.
Build log was saved at "file://\\clc-svr\marshal_grice\Documents\4th Quarter\Passage\hangman\Hangman\Hangman\Debug\BuildLog.htm"
Hangman - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

can u play assist me on this ... i got a book called Microsoft Visual C++ 2005 Express Edition Programming (for the absolute beginner)

im doing a hangman game program and its not working i did all this typing and im confused would be awsome if u could help me!

rattek at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 19

Hi,

Probably your environment variable PATH is changed for some reasons.

To remove the problem, this part should be included in your PATH:

%SystemRoot%\system32;

You can manually add it in:

Control Panel > System > Advanced > Environment Variables > System Variables > Path

Best Wishes

AliEshkevari at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...