Re: [Lazarus] Lazarus make clean fails...

2023-12-07 Thread Giuliano Colla via lazarus


  
  
Il 04/12/23 17:48, Michael Van Canneyt via lazarus ha scritto:


  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. 

In my experience lazarus doesn't always honor the compiler
  settings in the config files.
My Mac supports both the aarch64 native architecture and the
  x86_64 architecture (via Rosetta) and you may specify in compiler
  options the target architecture for the applications. But it works
  only for the target application.

You cannot rebuild lazarus for an architecture different from the
  one of your lazarus binary. It will properly compile all the
  required package for the target architecture you specified, but
  when it comes to compiling lazarus itself, instead of calling fpc,
  it will call directly the ppca64 or ppcx64 compiler for the
  current architecture of Lazarus, which of course will reject the
  PP= option!
The only way is to rebuild Lazarus from command line (make clean
  useride ..etc) specifying both OPT="-Paarchwhatever .." and
  PP=ppcwhatever. OPT= makes the makefile scripts happy,
  while PP= force the usage of the good compiler instead of the
  default one.
Just my two cents.
Giuliano

-- 
Do not do to others as you would have them do to you.They might have different tastes.
  

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-04 Thread Michael Van Canneyt via lazarus




On Mon, 4 Dec 2023, Bo Berglund via lazarus wrote:


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.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-04 Thread Bo Berglund via lazarus
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


-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-04 Thread Michael Van Canneyt via lazarus




On Mon, 4 Dec 2023, Bo Berglund via lazarus wrote:


(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.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-04 Thread Bo Berglund via lazarus
On Sun, 3 Dec 2023 21:45:57 +0100 (CET), Michael Van Canneyt via lazarus
 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

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-03 Thread Michael Van Canneyt via lazarus




On Sun, 3 Dec 2023, Bo Berglund via lazarus wrote:


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.
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-03 Thread Bo Berglund via lazarus
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...

Why and how to fix?


-- 
Bo Berglund
Developer in Sweden

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-03 Thread Sven Barth via lazarus
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

>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus make clean fails...

2023-12-03 Thread Giuliano Colla via lazarus
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

> 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
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus make clean fails...

2023-12-02 Thread Bo Berglund via lazarus
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
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus