[fpc-devel] ""make clean" builds ppc1 [[Re: Getting error building fpc for clang 16]]

Tomas Hajny xhajt03 at hajny.biz
Sat Dec 9 19:25:45 CET 2023


9. prosince 2023 18:24:10 SEČ, Martin Frb via fpc-devel <fpc-devel at lists.freepascal.org> napsal:
>On 09/12/2023 17:03, Martin Frb via fpc-devel wrote:
>> Anyway, I changed the make
>>      make install INSTALL_PREFIX=/home/m/fpc/$INSTPATH/gw3  OPT=" -Clv16.0 " LLVM=1
>> 
>> Then next it fails, with the same error on
>>     make clean
>> 
>> Yes, it tries to compile a file while doing "make clean"
>
>Even stranger, if I do  delete the ppc1 before "make clean"
>rm /home/m/fpc/$INSTSRC/source/compiler/ppc*
>
>Then "make clean" will build a new ppc1. Why?

I believe that it might be because the compiler is used in FPC makefiles to determine the default target (used if no target is specified on the make command line specifically) and this target determines the location of files to be cleaned.

Tomas



More information about the fpc-devel mailing list