Nmake Error Codes
Contents |
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine nmake syntax Forums Blogs Channel 9 Documentation APIs and reference Dev centers Samples
Nmake Fatal Error U1077 Return Code '0x1'
Retired content We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 nmake fatal error u1077 'cd' return code '0x2' second. Building on the Command Line NMAKE Reference Running NMAKE Running NMAKE Exit Codes from NMAKE Exit Codes from NMAKE Exit Codes from NMAKE NMAKE Options Tools.ini
Nmake Fatal Error U1077 Return Code '0x2'
and NMAKE Exit Codes from NMAKE TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Exit Codes from NMAKE Visual Studio 2015 Other Versions Visual Studio 2013 Visual Studio 2012 Visual Studio 2010 Visual nmake fatal error u1077 return code 0xc0000135 Studio 2008 Visual Studio 2005 Visual Studio .NET 2003 NMAKE returns the following exit codes:CodeMeaning0No error (possibly a warning)1Incomplete build (issued only when /K is used)2Program error, possibly due to one of the following: A syntax error in the makefile An error or exit code from a command An interruption by the user4System error — out of memory255Target is not up-to-date (issued only when /Q is used)See AlsoRunning NMAKE Show: Inherited Protected Print Export (0) Print Export (0) Share IN THIS ARTICLE Is this page helpful? Yes No Additional feedback? 1500 characters remaining Submit Skip this Thank you! We appreciate your feedback. Dev centers Windows Office Visual Studio Microsoft Azure More... Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies Terms of use Trademarks © 2016 Microsoft © 2016 Microsoft
1984-1998. All rights reserved. NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio\VC98\bin\NMAKE.EXE"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.exe"' : return code
Nmake Wiki
'0x2' Stop. Compilation Failed Reason Agent Compiler requires the environment variables of VC++ to
Nmake Fatal Error U1077 'if' Return Code '0x1'
be set appropriately before starting it. This is because, the "nmake" utility is used to compile the generated source files. If nmake fatal error u1077 'cd' return code '0x1' you are using MS VC++, you can do this by running "vcvars32.bat" present in the "Bin" directory of your VC++ installation. For example, make the following entry in you AgentCompiler.bat file or Agent Toolkit.bat (which https://msdn.microsoft.com/en-us/library/xsyc3e16.aspx ever you are using to start the Agent Compiler): call "
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://stackoverflow.com/questions/316157/handling-nmake-errorlevel-return-codes Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us https://www.ruby-forum.com/topic/5513865 Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, nmake fatal helping each other. Join them; it only takes a minute: Sign up Handling nmake errorlevel/return codes up vote 2 down vote favorite I have an nmake-based project which in turn calls the asp compiler, which can throw an error, which nmake seems to recognize: NMAKE : fatal error U1077: 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe' : return code '0x1' However, when I nmake fatal error call nmake from within a batch file, the environment variable %ERRORLEVEL% remains set at zero: nmake /NOLOGO echo BUILD RETURNING: %ERRORLEVEL% If I control-c the nmake task, I do end up getting a non-zero ERRORLEVEL (it's set to 2) so my assumption is that I'm able to catch errors okay, but nmake isn't bubbling up the non-zero exit code from it's task. Or, at least, I'm mis-trapping it. Any help would be appreciated. error-handling batch-file dos nmake errorlevel share|improve this question asked Nov 25 '08 at 2:18 Tom Lianza 2,16622944 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote First thig, please post your batch file so we see how you trap the error. Also comment this post so I read again. As a first git, i'd guess something like: nmakebatch.cmd usual nmake arguments, without /NOLOGO @echo off rem Args[x]: nmake arguments echo.>> %~n0.log echo %date% %time%>> %~n0.log echo nmake /NOLOGO %*>> %~n0.log nmake /NOLOGO %* echo %errorlevel%>> %~n0.log Is a start for trappin
List Log In VS12 NMAKE : fatal error U1077: 'cl' : return code '0x2' Jules A. (jules_a) on 2014-08-27 15:53 Hello, i would like a hand to understand what's wrong with what i'm doing to compile ruby with VS12. When i run .\win32\configure.bat from powershell in the source folder,i get the error NMAKE : fatal error U1077: 'cl' : return code '0x2' since NMAKE started, it confirms my path works (as cl and NMAKE are in the same folder) From Microsoft's documentation, 0x2 is a "missing file" error, but path of the potential missing file isn't specified, from there, i don't really know where to start searching as the missing file isn't specified. To save some time, here's my PATH %SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\SysinternalsSuite\;C:\Program Files\Microsoft\Web Platform installer\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\GNU\GnuPG\pub;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Perl\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin My LIB C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib; My INCLUDE C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include Please don't redirect me to MinGW or tools using it as it won't help me understand why it didn't work with VS12 Thanks Report post Edit Move Delete topic Reply with quote Re: VS12 NMAKE : fatal error U1077: 'cl' : return code '0x2' Josh Karamuth (Guest) on 2014-08-27 20:17 Looks like cl.exe cannot be found. You should use vcvarsall.bat to configure your path properly. http://msdn.microsoft.com/en-us/library/x4d2c09s.aspx Report post Edit Delete Reply with quote Re: VS12 NMAKE : fatal error U1077: 'cl' : return code '0x2' Matt Talebi (Guest) on 2014-08-27 21:29 unsubscribe — Sent from Mailbox Report post Edit Delete Reply with quote Re: VS12 NMAKE : fatal error U1077: 'cl' : return code '0x2' Jules A. (jules_a) on 2014-08-27 22:09 Josh Karamuth wrote in post #1156140: > Looks like cl.exe cannot be found. You should use vcvarsall.bat to > configure your path properly. > > http://msdn.microsoft.com/en-us/library/x4d2c09s.