Troubleshooting
Problem
NMAKE/make fatal errors occur when building a component in Rose RealTime
Resolving The Problem
SYMPTOM:
When building a component in Rose RealTime, you receive one of the following errors:
Error 1:
NMAKE : fatal error U1045: spawn failed : Invalid argument
Stop.
Error: Makefile generation failed
Build failed.
Error 2:
fatal error in make: Access is denied.
make: *** [RTmakefiles] Error 0x5
Error: Makefile generation failed
Build failed.
CAUSE:
The ComSpec environment variable is set incorrectly.
The ComSpec environment variable points to the command prompt executable. This variable is used by both the nmake and make utilities.
RESOLUTION:
Set the ComSpec environment variable to: %SystemRoot%\system32\cmd.exe.
NOTE: There should be only one entry for ComSpec. To verify that the variable is set correctly, use the command: echo %ComSpec%.
e.g.
C:\>echo %ComSpec%
C:\WINNT\system32\cmd.exe
Historical Number
20818
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21127046