bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #62200] Make tries to execute directories name as commands instead


From: anonyme
Subject: [bug #62200] Make tries to execute directories name as commands instead of using shell PATH resulting failure with permission denied
Date: Fri, 18 Mar 2022 17:00:17 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62200>

                 Summary: Make tries to execute directories name as commands
instead of using shell PATH resulting failure with permission denied
                 Project: make
            Submitted by: None
            Submitted on: ven. 18 mars 2022 21:00:15 UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.3
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

I've been trying to build a big project and exchanging back and forth with the
community, we have created a minimal Makefile for what we think is a bug and
not an intended feature.

If a binary is named 'cp' and a directory is named 'cp', then the make build
fails with "cp: permission denied", if the directory is renamed, then the
build will go on, I met this issue whilst trying to build gcc from source.


Reproduce the bug with a minimal Makefile:

sudo mkdir /usr/local/bin/asdf
echo -e 'all:\n\tasdf' > Makefile
make


Output:

asdf
make: asdf: Permission denied
make: *** [Makefile:2: all] Error 127


I don't think this should be happening, if it should, this should be
documented and maybe the error message should be more helpful, the current
error leads someone to think there are permissions issues when it is not a
permission issue.






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]