Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2023-12

Lazarus make clean fails...

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I have installed Lazarus 2.2.6 from sources on my RPi4B using fpc 3.2.0. This works fine.

Then I compiled fpc 3.2.2 to get to a later version and did a make install/make sourceinstall on that version of fpc.

Then I wanted to rebuild Lazarus with the new fpc so I first tried with a Lazarus rebuild from within Lazarus but that failed so I decied to do a clean build instead.
Enter command line and:

~/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.

Google does not know about VSPTPSOTO...

So I did as suggested:

~/devtools/lazarus/2.2.6 $ fpcmake
Processing Makefile.fpc
Error: Target "linux", package "rtl" not found

Then I expanded the lazarus sources into a clean directory and tried make clean in that but with the same result.

And concerning the compiler:

$ which fpc
/home/bosse/bin/fpc
$ which ppcarm
/home/bosse/bin/ppcarm
$ fpc
Free Pascal Compiler version 3.2.2 [2023/11/29] for arm
$ ppcarm
Free Pascal Compiler version 3.2.2 [2023/11/29] for arm

What can I do now?

Bo Berglund Developer in Sweden

Reply by email

Giuliano Colla
to Bo Berglund

I?m not familiar with your environment, but I?ve never seen a lazarus directory which is not named ?lazarus?. Therefore I?d cd one step further: cd ~/devtools/lazarus/2.2.6/lazarus
Sorry for top posting. iPhone does it!
Giuliano

Inviato da iPhone

Show quoted text 55 lines
Il giorno 2 dic 2023, alle ore 19:03, Bo Berglund via lazarus ha scritto: ?I have installed Lazarus 2.2.6 from sources on my RPi4B using fpc 3.2.0. This works fine. Then I compiled fpc 3.2.2 to get to a later version and did a make install/make sourceinstall on that version of fpc. Then I wanted to rebuild Lazarus with the new fpc so I first tried with a Lazarus rebuild from within Lazarus but that failed so I decied to do a clean build instead. Enter command line and: ~/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. Google does not know about VSPTPSOTO... So I did as suggested: ~/devtools/lazarus/2.2.6 $ fpcmake Processing Makefile.fpc Error: Target "linux", package "rtl" not found Then I expanded the lazarus sources into a clean directory and tried make clean in that but with the same result. And concerning the compiler: $ which fpc /home/bosse/bin/fpc $ which ppcarm /home/bosse/bin/ppcarm $ fpc Free Pascal Compiler version 3.2.2 [2023/11/29] for arm $ ppcarm Free Pascal Compiler version 3.2.2 [2023/11/29] for arm What can I do now? -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

Reply by email

Sven Barth
to Giuliano Colla

Giuliano Colla via lazarus schrieb am So.,
3. Dez. 2023, 11:42:

I?m not familiar with your environment, but I?ve never seen a lazarus directory which is not named ?lazarus?. Therefore I?d cd one step further: cd ~/devtools/lazarus/2.2.6/lazarus

I extract all sources into a directory with only the version number, so, no, it doesn't have to be called "lazarus". Thus your suggestion won't work. If that were case the error message would be that no Makefile has been found anyway.

Regards,
Sven

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20231203/e173f488/attachment.htm>

Reply by email

Bo Berglund
to Bo Berglund: I have installed Lazarus 2.2.6 from sources on my RPi4B using fpc 3.2.0. This works fine.…
Bo Berglund wrote 16 lines
And concerning the compiler: $ which fpc /home/bosse/bin/fpc $ which ppcarm /home/bosse/bin/ppcarm $ fpc Free Pascal Compiler version 3.2.2 [2023/11/29] for arm $ ppcarm Free Pascal Compiler version 3.2.2 [2023/11/29] for arm What can I do now?

So I have now retired the Lazarus old source dir (rename to 2.2.6.bak). Then I expanded the source tgz file yet again to get the *clean* Lazarus release 2.2.6 sources from GitLab into my system. It was expanded into a directory named 2.2.6.

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...

Why and how to fix?

Bo Berglund Developer in Sweden

Reply by email

Michael Van Canneyt
to Bo Berglund
Bo Berglund wrote 46 lines
On Sat, 02 Dec 2023 19:03:41 +0100, Bo Berglund via lazarus wrote: > And concerning the compiler: > > $ which fpc > /home/bosse/bin/fpc > > $ which ppcarm > /home/bosse/bin/ppcarm > > $ fpc > Free Pascal Compiler version 3.2.2 [2023/11/29] for arm > > $ ppcarm > Free Pascal Compiler version 3.2.2 [2023/11/29] for arm > > What can I do now? > So I have now retired the Lazarus old source dir (rename to 2.2.6.bak). Then I expanded the source tgz file yet again to get the *clean* Lazarus release 2.2.6 sources from GitLab into my system. It was expanded into a directory named 2.2.6. 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.

Reply by email

Bo Berglund
to Michael Van Canneyt
Michael Van Canneyt wrote 38 lines
> 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

Reply by email

Michael Van Canneyt
to Bo Berglund
Bo Berglund wrote 31 lines
> (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?

If you have multiple compilers on your system, you may be using a different compiler compared to when you do not specify this parameter.

I always specify the starting compiler (because I have many versions installed) so for me it is a way to make sure I am using the intended compiler.

Michael.

Reply by email

Bo Berglund
to Michael Van Canneyt
Michael Van Canneyt wrote
If you have multiple compilers on your system, you may be using a different compiler compared to when you do not specify this parameter.

I have several fpc:s too...

I always specify the starting compiler (because I have many versions installed) so for me it is a way to make sure I am using the intended compiler.

Is that switch also available for startlazarus?
So it can be specified inside the desktop file for the GUI menu?

Like this:
Exec=/home/bosse/devtools/lazarus/2.2.4/startlazarus PP=$HOME/bin/ppcarm --pcp=/home/bosse/.lazarus_2.2.4 %f

Bo Berglund Developer in Sweden

Reply by email

Michael Van Canneyt
to Bo Berglund
Bo Berglund wrote 18 lines
On Mon, 4 Dec 2023 11:40:02 +0100 (CET), Michael Van Canneyt via lazarus wrote: > If you have multiple compilers on your system, you may be using a different > compiler compared to when you do not specify this parameter. I have several fpc:s too... > I always specify the starting compiler (because I have many versions > installed) so for me it is a way to make sure I am using the intended > compiler. Is that switch also available for startlazarus? So it can be specified inside the desktop file for the GUI menu? Like this: Exec=/home/bosse/devtools/lazarus/2.2.4/startlazarus PP=$HOME/bin/ppcarm --pcp=/home/bosse/.lazarus_2.2.4 %f

Since in the config files in home/bosse/.lazarus_2.2.4 there is already a compiler specified, it would be useless to be able to specify it again.

Michael.

Reply by email