Makefile doesnt stop for non zero error codes
Hi I am working in a makefile issue where the makefile doesn't stop compilation even after it encounters the error in the cpp file. The make continues with next rule even though the earlier rule gives the non zero exit status. What could be the possible cause for this scenario? -- K.Murali Mohana Krishna ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make
RE: Makefile doesnt stop for non zero error codes
-k ? http://www.gnu.org/software/make/manual/make.html#Testing Another possiblity is a command script that unexpectedly returns true. E.g.: foo: gcc ... || true ...will never fail even if gcc fails... /Lasse From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ext Murali Krishna Sent: Wednesday, June 25, 2008 08:38 To: bug-make@gnu.org Subject: Makefile doesnt stop for non zero error codes Hi I am working in a makefile issue where the makefile doesn't stop compilation even after it encounters the error in the cpp file. The make continues with next rule even though the earlier rule gives the non zero exit status. What could be the possible cause for this scenario? -- K.Murali Mohana Krishna ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make
RE: Makefile doesnt stop for non zero error codes
Murali Krishna wrote on 25 June 2008 07:38: Hi I am working in a makefile issue where the makefile doesn't stop compilation even after it encounters the error in the cpp file. The make continues with next rule even though the earlier rule gives the non zero exit status. What could be the possible cause for this scenario? There's a bug on line 278 of your makefile. You just need to fix it and everything will work fine. . . . Nahh, seriously, an example or some details would be nice. Did you use -k when invoking make? Are the command-lines prefixed with - to suppress errors? Are you mistaken about whether the earlier rule actually does return non-zero status? It's pretty hard to diagnose a problem when the only information you give is It doesn't work - why?! Can you show us an example, with the relevant lines of your makefile and the output you see in your shell when building? cheers, DaveK -- Can't think of a witty .sigline today ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make
RE: Reg Make build on LINUX
Dear Johan Bezem, Iam able to recompile only modified resources after verifying below site. I need help if I need to include my .o files also in same folder. In my projects we maintain separate folders for object files in each subfolder. Also would be grateful if you explain further on $(*F). My Makefile ia64-cross: cat Makefile OBJECTS=b.o \ c.o DEPDIR = rh3 df = $(DEPDIR)/$(*F) SRCS=b.cc c.cc CFLAGS= -I/home/sa20358/test/base/ MAKEDEPEND = $(CC) -M $(CFLAGS) -o $(df).d $ all: $(OBJECTS) %.o: %.cc #generate the *.d file with the dependency targets. @$(MAKEDEPEND); \ cp $(df).d $(df).P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' $(df).d $(df).P; \ rm -f $(df).d @echo ++making .o file $(CC) $(CFLAGS) -c $ -o $@ -include $(SRCS:%.cc=$(DEDIR)%.P) My Files ia64-cross: ls -ltr total 24 -rw-r--r-- 1 sa20358 sa20358 156 Jun 23 07:19 c.cc -rw-r--r-- 1 sa20358 sa20358 156 Jun 25 02:44 b.cc drwxr-xr-x 2 sa20358 sa20358 4096 Jun 25 02:48 rh3 - Currently only .P files available. want to include object files -rw-r--r-- 1 sa20358 sa20358 483 Jun 25 02:49 Makefile Thanks, Sravanthi FID DPS team Citi Technology Services Ascendas, International Tech Park, Chennai,India Desk No.: +91-44-4294-4158 Group Line: +91-44-4294-4971 -Original Message- From: Johan Bezem [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 12:00 AM To: A, Sravanthi [CCC-OT_IT] Cc: bug-make@gnu.org Subject: Re: Reg Make build on LINUX Sravanthi, go to Paul's website at http://make.paulandlesley.org/autodep.html, read and _understand_ what he's showing you, and implement it in your environment. HTH, Johan Bezem http://blog.bezem.de/ A, Sravanthi wrote: Smith /Team, Would you help me on this issue. Recompilation of object files is not happening if the source file is changed. I want to know how to use include dependency file when I have recursive make. ... -- JB Enterprises - Johan Bezem Tel: +49 172 5463210 Interim Manager - Project Manager Fax: +49 172 50 5463210 Management Consultant Email: [EMAIL PROTECTED] automotive - real-time - embedded Web: http://www.bezem.de ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make
make-3.81: bug-report: function abspath works incorrectly on widows
Hello, FSF community. I found a bug in GNU Make 3.81 on MS Windows. So let me discuss it and suggest a patch. The problem take place in function abspath when trying to expand paths which are already full qualified. makefile for test is the next: --- $(info test - $(abspath C:/)) $(info test - $(abspath C:)) $(info test - $(abspath C:/Windows/system32/)) $(info test - $(abspath C:/Windows/system32/..)) $(info test - $(abspath C:/Windows/system32/../..)) $(info test - $(abspath C:/../../)) $(info test - $(abspath C:/../..)) $(info test - $(abspath .)) $(info test - $(abspath ../..)) --- Output with Gnu Make 3.81 (current directory is H:/make-3.81): --- test - H:/make-3.81/C: test - H:/make-3.81/C: test - H:/make-3.81/C:/Windows/system32 test - H:/make-3.81/C:/Windows test - H:/make-3.81/C: test - H: test - H: test - H:/make-3.81 test - H:/make-3.81 make: *** No targets. Stop. --- Output after apppling my patch for the function.c : --- test - C: test - C: test - C:/Windows/system32 test - C:/Windows test - C: test - C: test - C: test - h:/make-3.81 test - h: make_msvc.net2003: *** No targets. Stop. --- Suggested patch is in attachment. function.c.patch Description: Binary data ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make
Re: make-3.81: bug-report: function abspath works incorrectly on widows
Date: Wed, 25 Jun 2008 20:19:39 +0400 From: Vitaly Murashev [EMAIL PROTECTED] I found a bug in GNU Make 3.81 on MS Windows. So let me discuss it and suggest a patch. Thanks. Your code is generally OK, but, unless I'm missing something, it has a few deficiencies: . It doesn't add an explicit drive letter to file names such as /foo/bar, and generally treats such names incorrectly. . It doesn't produce fully qualified file names from drive-relative names such as d:foo/bar. . It assumes Windows file names use only `/' as directory separator character, while in reality there could be `\' as well. Apologies if I misread your patch (I didn't really try to apply and use it). Thanks again for working on this. ___ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make