Make Clean Error 127 Ignored
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this recipe for target clean failed eclipse site About Us Learn more about Stack Overflow the company Business Learn more make: del: command not found about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x mingw32-make clean Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “make clean” make del command not found eclipse issue in MSYS/Cygwin up vote 1 down vote favorite 2 I finally managed to compile a program in Windows, which took a while and would have not been possible without some help from here. It all works now, except: "make clean" yields /bin/sh: del: command not found Makefile:44: recipe for target `clean' failed make: *** [clean] Error 127 In the makefile, the clean command
Make: Rm: Command Not Found
looks like clean: del /S *.o *~ *.out [...], eliminating all resulting .o and executables resulting from make. mingw64 is in the path, and I tried with cygwin/bin in the path and without, both with the same result. "Make" was done with mingw32-make in msys. I also tried "mingw-32-make clean" in msys, still no luck; I am also not sure if "make clean" is supported in Cygwin at all. I run the whole thing on Windows 7, 64 bit. How can I fix this problem? windows makefile recipe share|improve this question edited Mar 9 '13 at 21:50 Peter Mortensen 10.3k1369107 asked Jan 18 '13 at 20:34 Peter 15917 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted It seems like you are mixing your platforms. del is a cmd.exe builtin, which is why it cannot be found by Bash. The analog to del is rm. Try running make under cmd.exe or editing the Makefile, replacing del /S with rm -f ref share|improve this answer edited Jan 18 '13 at 21:35 answered Jan 18 '13 at 21:22 Steven Penny 1 add a comment| up vot
Error: 127 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select
Recipe For Target Failed Eclipse
the forum that you want to visit from the selection below. Welcome to Qt Centre. make error 127 linux Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions asked here gets makefile error 1 answered. If you are looking for information about Qt related issue — register and post your question. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our http://stackoverflow.com/questions/14407172/make-clean-issue-in-msys-cygwin other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 4 of 4 Thread: make: command not found, Error: 127 http://www.qtcentre.org/threads/6928-make-command-not-found-Error-127 Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 9th May 2007,05:41 #1 ct View Profile View Forum Posts View Blog Entries View Articles Intermediate user Join Date Feb 2006 Posts 91 Thanks 4 Qt products Platforms make: command not found, Error: 127 : command not found make: *** [appname] Error 127 I am using a linux box and the same makefile and the srcs work in my local computer as root, but when I try to upload it to a server then I get this error for that particular set of sources, its a CGI application in C. Other similar makefiles work like charm and I am having problem with this particular folder only. Applying my commonsense I did chmod -R 777 srcfolder but this didn't help I keep getting the error. I can use gcc,g++ and plld a front-end compiler and linker of C-files for prolog from the command line so there isn't much problem int that.The very thing that is amusing me is that a similar makefile in other directory under the same username works like a charm. Aggghhhh...I am getting frustrated.. here is the makefile if it is due to any error on this one #/////////////////////////////////////////////////////////////////////// # This makefile generates the final executable to be used as cgi #
in the recipe is executed in a new shell; after the last line is finished, the rule is finished. If there is an error (the exit status is nonzero), make gives up on the current rule, and https://www.gnu.org/s/make/manual/html_node/Errors.html perhaps on all rules. Sometimes the failure of a certain recipe line does not indicate a problem. For example, you may use the mkdir command to ensure that a directory exists. If the directory already exists, mkdir will report an error, but you probably want make to continue regardless. To ignore errors in a recipe line, write a ‘-’ at the beginning of the line’s text (after the initial tab). The ‘-’ command not is discarded before the line is passed to the shell for execution. For example, clean: -rm -f *.o This causes make to continue even if rm is unable to remove a file. When you run make with the ‘-i’ or ‘--ignore-errors’ flag, errors are ignored in all recipes of all rules. A rule in the makefile for the special target .IGNORE has the same effect, if there are no prerequisites. These ways of command not found ignoring errors are obsolete because ‘-’ is more flexible. When errors are to be ignored, because of either a ‘-’ or the ‘-i’ flag, make treats an error return just like success, except that it prints out a message that tells you the status code the shell exited with, and says that the error has been ignored. When an error happens that make has not been told to ignore, it implies that the current target cannot be correctly remade, and neither can any other that depends on it either directly or indirectly. No further recipes will be executed for these targets, since their preconditions have not been achieved. Normally make gives up immediately in this circumstance, returning a nonzero status. However, if the ‘-k’ or ‘--keep-going’ flag is specified, make continues to consider the other prerequisites of the pending targets, remaking them if necessary, before it gives up and returns nonzero status. For example, after an error in compiling one object file, ‘make -k’ will continue compiling other object files even though it already knows that linking them will be impossible. See Summary of Options. The usual behavior assumes that your purpose is to get the specified targets up to date; once make learns that this is impossible, it might as well report the fai