[Lazarus] Lazarus make clean fails...

Bo Berglund bo.berglund at gmail.com
Mon Dec 4 10:38:54 CET 2023


On Sun, 3 Dec 2023 21:45:57 +0100 (CET), Michael Van Canneyt via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>> Now I still get the same error when I try to do the make clean operation.
>>
>> ~/devtools/lazarus/2.2.6 $ make clean
>> make: -iVSPTPSOTO: No such file or directory
>> Makefile:234: *** The Makefile doesn't support target -, please run fpcmake
>> first.  Stop.
>>
>> Check compiler:
>> ~/devtools/lazarus/2.2.6 $ fpc
>> Free Pascal Compiler version 3.2.2 [2023/11/29] for arm
>> Copyright (c) 1993-2021 by Florian Klaempfl and others
>>
>> ~/devtools/lazarus/2.2.6 $ ppcarm
>> Free Pascal Compiler version 3.2.2 [2023/11/29] for arm
>> Copyright (c) 1993-2021 by Florian Klaempfl and others
>>
>> So there is an fpc/ppcarm compiler available on path and it starts OK without
>> arguments so the version can be checked.
>>
>> Still with this fresh source tree and a working fpc compiler it throws this
>> strange error...
>
>The error means it cannot find the compiler.
>
>>
>> Why and how to fix?
>
>Try this:
>
>make clean PP=ppcarm
>
>(preferably use the full path to the ppcarm compiler)
>
>If you then still get the error, it means the makefiles for Lazarus indeed
>do not support your target, but how to fix that is up to the lazarus team to
>answer.
>
>Michael.

Thanks!

Indeed, it seems like the make tool does not honor the PATH setting....

$ echo $PATH
/home/bosse/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:

$ which ppcarm
/home/bosse/bin/ppcarm

But I do not get the errors when make is started like this:
$ make clean PP=$HOME/bin/ppcarm

So now I went back to my lazarus 2.2.6 source dir where I have installed all of
my customizations and ran  the make clean and make bigide with a specification
of the compiler location as above, and it seems to have worked this time around.
But when I start Lazarus it has lost the package customizations I made earlier,
so I had to go over these again and rebuild the GUI afterwards from within
Lazarus itself.
OLPM + my own custom components
But after that was done it seems like Lazarus is OK.

What are the ramifications of adding the PP= directive to the make commands?


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list