bugmake - Bugs: bug #55863, '-load' directive adds its object...

 
 

bug #55863: '-load' directive adds its object to the target list if unsuccessful

Submitter:  None
Submitted:  Fri 08 Mar 2019 09:26:21 AM UTC
   
 
Severity:  3 - Normal Item Group:  Documentation
Status:  Not A Bug Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.2.1 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Jan 2020 04:05:55 PM UTC, comment #4: 

I think it means given the following makefile:


-load nonexistent.so

all:
        @echo loaded: $(.LOADED)


The hyphen has avoided Make saying "image not found // failed to load.  Stop" but even with -load it still stops with "No rule to make target 'nonexistent.so'.  Stop".

Conversely the corresponding makefile for include, with "-include nonexistent.mk", will carry on and run recipes even though it has had no way to remake nonexistent.mk.

This could be worked around by providing a rule to remake nonexistent.so as the manual's example does, but I can see why the OP might not want to do that if the dynamic object is intended to be supplied from some external directory.

(I tried this with 4.2.1; I haven't tried recent development or the prerelease.)

John Marshall <jmarshall>
Thu 16 Jan 2020 08:33:34 PM UTC, comment #3: 

I don't understand this issue and no help has been forthcoming, so I'm closing it.  If someone knows what it means please add an explanation and I'll re-open.

Paul D. Smith <psmith>
Group administrator
Mon 13 May 2019 08:17:56 PM UTC, comment #2: 

Can you explain what you mean by "the target list"?  I don't know what that means.  Can you provide a repro case?

Paul D. Smith <psmith>
Group administrator
Fri 08 Mar 2019 09:28:43 AM UTC, comment #1: 

"If unsuccessful" in the title should be changed into "if the object is missing", sorry.

Anonymous
Fri 08 Mar 2019 09:26:21 AM UTC, original submission:  

The manual says that "you can use the -load directive instead of load, so failure to load will not be reported as an error". However, it doesn't clearly state if the missing object be added to the target list or not (in case of using -load). As it turns out, presently it DOES, which, IMO, is counter-intuitive.

So, at the least, such behaviour should be clearly documented, or it'd be better to change it, so -load would match -include, and would NOT add non-existing object into the target list.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmarshall (Posted a comment)
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes 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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-16 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code