bugmake - Bugs: bug #17740, make fails without any message

 
 

bug #17740: make fails without any message

Submitted by:  None
Submitted on:  Thu 14 Sep 2006 01:44:30 PM UTC  
Votes:  1  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Boris Kolpackov <bosk>Open/Closed: Closed
Component Version: 3.81Operating System: None
Fixed Release: 3.82Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Wed 30 Sep 2009 10:03:16 AM UTC, comment #6:

Fix is in CVS.

Boris Kolpackov <bosk>
Project MemberIn charge of this item.
 Spam posted by an anonymous
Sun 08 Oct 2006 06:32:13 AM UTC, comment #5:

I am pretty sure this is related to (or even the same as) bug #15110.

Boris Kolpackov <bosk>
Project MemberIn charge of this item.
Fri 06 Oct 2006 04:56:28 PM UTC, comment #4:

Here's a Makefile and test procedure that produces 4 (related) symptoms. Please let me know if I can provide any other information.

Is there any chance that Make does not catch and/or propagate non-zero exit status properly when it occurs while processing secondary, dashed include makefiles? When using "-include", it seems odd that Make returns non-zero exit status when something fails but does not display a warning message. I'm wondering if it should do either both or neither, not one or the other.

Thanks,

-- Tony

Tony Silva <tony_silva>
Thu 05 Oct 2006 11:10:48 PM UTC, comment #3:

Someone who sees this problem will need to either provide a reproducible test case, or a description clear enough to allow me to create one. Based on the information in this bug I tried this:

include foo.d
foo.d: foo.x ; : cp $< $@
all: ; : all

Then "touch foo.d"... but it didn't show the behavior you describe:

$ touch foo.d
$ make
make: *** No rule to make target `foo.x', needed by `foo.d'.
Stop.
$ /opt/src/make/old/make-3.81/make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
...

Paul D. Smith <psmith>
Project Administrator
Thu 05 Oct 2006 10:20:44 PM UTC, comment #2:

Here's another data point. "make -k" partially exposes a silent error:

tsilva@walt-tsilva> make_
tsilva@walt-tsilva> make_ -k
make_: Target `default' not remade because of errors.

-- Tony

Tony Silva <tony_silva>
Thu 05 Oct 2006 09:50:14 PM UTC, comment #1:

I, too, have seen this problem when automatically building and
including dependency makefiles (for C++ headers). I'd really like to
see it resolved. The silent failure can cause users to lose a lot of
time since there are no hints what is wrong when running make
normally. Users have to use "make -d" and search for "Failed to
remake target file" and "Giving up on target file", assuming they
notice the non-zero exit status indicating that the build failed. I
think I'm gonna have a tough time selling this workaround to the many
casual users around my office that I'm trying to get to use GNU Make.

-- Tony

Tony Silva <tony_silva>
Thu 14 Sep 2006 01:44:30 PM UTC, original submission:

make 3.81 fails without any hint on why:
jasper:/lhome/seved/xx> ./usr/bin/make M=rcmd pkg
make: *** [pkg] Error 2
jasper:/lhome/seved/xx>

whereas make 3.80 tells me why:
jasper:/lhome/seved/xx> make M=rcmd pkg
make[1]: *** No rule to make target `/lhome/seved/xx/no-file', needed by `/lhome/seved/xx/obj/rcmd/.deps/rcmd_client.d'. Stop.
make: *** [pkg] Error 2
jasper:/lhome/seved/xx>

jasper:/lhome/seved/xx> make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
jasper:/lhome/seved/xx> ./usr/bin/make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu
jasper:/lhome/seved/xx>

Found after several hours of detective work.
The cause is that a dependency file contains a dep. to a
file that does not exist and has no rule for creation.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #10907:  Makefile added by tony_silva (2KiB - application/octet-stream - test case makefile)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Updated the item)
  • -unavailable- added by bosk (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Jul 2010 06:19:37 AM UTCpsmithFixed Release4.0=>3.82
    Wed 30 Sep 2009 10:03:16 AM UTCboskOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.0
      Assigned toNone=>bosk
    Wed 30 Sep 2009 10:03:15 AM UTCboskStatusNone=>Fixed
    Fri 06 Oct 2006 04:56:29 PM UTCtony_silvaAttached File-=>Added Makefile, #10907
    Thu 05 Oct 2006 09:50:14 PM UTCtony_silvaCarbon-Copy-=>Added tony_silva

    Back to the top


    Powered by Savane 3.1-cleanup1