Sign in Join

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

Mailing lists / fpc-pascal / 2021-11

Make clean error when building fpc 3.2.2 from sources

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

I am trying to build fpc 3.2.2 on an Ubuntu 20.04.3 virtual machine while documenting my steps along the way.
I am doing this so I can later repeat it on the real target and after getting the fpc sources not through SVN but using this wget command which I received after asking on the forum:

wget
https://gitlab.com/freepascal.org/fpc/source/-/archive/release_3_2_2/source-release_3_2_2.tar.gz

Then expanding the file into dir ~/devel/fpc/3.2.2 using:

tar -xvf source-release_3_2_2.tar.gz
mv source-release_3_2_2 3.2.2

I have also downloaded a seed compiler ppcx64 version 3.2.0 and symlinked it into my ~/bin dir.

This is what happens when I execute the first make command inside the fpc source dir:

~/devel/fpc/3.2.2$ make clean
make: -iVSPTPSOTO: Command not found
/usr/bin/rm -f build-stamp.*
/usr/bin/rm -f base.build-stamp.*

I have checked that build-essentials are installed on this Ubuntu machine.

Where do I go from here?

Bo Berglund Developer in Sweden

Reply by email

Jonas Maebe
to Bo Berglund
Bo Berglund wrote 11 lines
This is what happens when I execute the first make command inside the fpc source dir: ~/devel/fpc/3.2.2$ make clean make: -iVSPTPSOTO: Command not found /usr/bin/rm -f build-stamp.* /usr/bin/rm -f base.build-stamp.* I have checked that build-essentials are installed on this Ubuntu machine. Where do I go from here?

FPC needs a previous version of FPC to bootstrap. So first install fpc using apt-get on the VM.

Jonas

Reply by email

Tomas Hajny
to Jonas Maebe
Jonas Maebe wrote 17 lines
On 22/11/2021 16:02, Bo Berglund via fpc-pascal wrote: > This is what happens when I execute the first make command inside the > fpc source > dir: > > ~/devel/fpc/3.2.2$ make clean > make: -iVSPTPSOTO: Command not found > /usr/bin/rm -f build-stamp.* > /usr/bin/rm -f base.build-stamp.* > > I have checked that build-essentials are installed on this Ubuntu > machine. > > Where do I go from here? FPC needs a previous version of FPC to bootstrap. So first install fpc using apt-get on the VM.

While the answer from Jonas is obviously the simplest and most complete solution, there is an alternative workaround (not necessarily a fully guaranteed solution!) for your situation. The particular failing / missing command used by make is the fpc binary. If you have installed a bootstrap compiler _and_ if you try to perform a native build (not to build for a different CPU), you can run make with an additional parameter setting the variable "FPC" to the path of your compiler binary (e.g. 'make all "FPC=/usr/bin/ppcx64"').

Tomas

Reply by email

Bo Berglund
to Tomas Hajny
Tomas Hajny wrote 27 lines
On 2021-11-22 16:21, Jonas Maebe via fpc-pascal wrote: > On 22/11/2021 16:02, Bo Berglund via fpc-pascal wrote: >> This is what happens when I execute the first make command inside the >> fpc source >> dir: >> >> ~/devel/fpc/3.2.2$ make clean >> make: -iVSPTPSOTO: Command not found >> /usr/bin/rm -f build-stamp.* >> /usr/bin/rm -f base.build-stamp.* >> >> I have checked that build-essentials are installed on this Ubuntu >> machine. >> >> Where do I go from here? > > FPC needs a previous version of FPC to bootstrap. So first install fpc > using apt-get on the VM. While the answer from Jonas is obviously the simplest and most complete solution, there is an alternative workaround (not necessarily a fully guaranteed solution!) for your situation. The particular failing / missing command used by make is the fpc binary. If you have installed a bootstrap compiler _and_ if you try to perform a native build (not to build for a different CPU), you can run make with an additional parameter setting the variable "FPC" to the path of your compiler binary (e.g. 'make all "FPC=/usr/bin/ppcx64"').

Thanks, I thought that would not be needed when only doing clean... Was going to add it in the next step "make all"
Now running the build.

Bo Berglund Developer in Sweden

Reply by email