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

 
 

bug #17740: make fails without any message

Submitter:  None
Submitted:  Thu 14 Sep 2006 01:44:30 PM UTC
Votes: 1
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  bosk Open/Closed:  Closed
Component Version:  3.81 Operating System:  None
Fixed Release:  3.82 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

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

Fix is in CVS.

Boris Kolpackov <bosk>
Group Member
  Spam posted by 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>
Group Member
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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by psmith (Updated the item)
  • -email is unavailable- added by bosk (Posted a comment)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-28 psmith Fixed Release4.0 3.82
    2009-09-30 bosk Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0
        Assigned toNone bosk
    2009-09-30 bosk StatusNone Fixed
    2006-10-06 tony_silva Attached File- Added Makefile, #10907
    2006-10-05 tony_silva Carbon-Copy- Added tony_silva

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code