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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bogdan Barbu
URL:
  <https://savannah.gnu.org/bugs/?55863>

                 Summary: '-load' directive adds its object to the target list
if unsuccessful
                 Project: make
            Submitted by: None
            Submitted on: Пт. 08 марта 2019 09:26:21
                Severity: 3 - Normal
              Item Group: Documentation
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55863>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Reply | Threaded
Open this post in threaded view
|

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

Bogdan Barbu
Follow-up Comment #1, bug #55863 (project make):

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

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55863>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Reply | Threaded
Open this post in threaded view
|

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

Bogdan Barbu
Follow-up Comment #2, bug #55863 (project make):

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

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55863>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-make
Reply | Threaded
Open this post in threaded view
|

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

Bogdan Barbu
Update of bug #55863 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up 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.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55863>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


Reply | Threaded
Open this post in threaded view
|

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

Bogdan Barbu
Follow-up Comment #4, bug #55863 (project make):

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.)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55863>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/