--
Kind regards,
Lahfa Samy
Le 2022-03-18 15:56, Karl Semich a écrit :
> On Fri, Mar 18, 2022, 10:56 AM Lahfa Samy
samy@lahfa.xyz wrote:
>
>> Hey so here is what I found out about the error and solved it, it
>> was
>> actually making this error because the folder named 'cp' exists, as
>> soon
>> as I renamed the folder 'cp' to something else, the build got
>> working
>> again.
>>
>> Very weird issue, if anyone has an idea why it happened, my shell
>> being
>> used is ZSH.
>
> I was able to reproduce your error with:
>
> sudo mkdir /usr/local/bin/asdf
> echo -e 'all:\n\tasdf' > Makefile
> make
>
> I have gnu make 4.3 .
>
> This could be considered a bug with gnu make, trying to execute
> directories. Ideally it would be reported to them and a fix
> contributed. It is likely very easy to fix.
>
>> Kind regards,
>>
>> Lahfa Samy
>>
>>>> cp -p ../../gcc-11.2.0/gcc/ada/sinfo.ads
>>>> ../../gcc-11.2.0/gcc/ada/sinfo.adb
>>>> ../../gcc-11.2.0/gcc/ada/xsinfo.adb
>>>> ../../gcc-11.2.0/gcc/ada/csinfo.adb ada/bldtools/sinfo
>>>> make[2]: cp: Permission denied
>>>> make[2]: *** [../../gcc-11.2.0/gcc/ada/Make-generated.in:44:
>>>> ada/sinfo.h] Error 127