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/