Thaddy
Posts: 171
Joined: Wed Mar 06, 2013 11:28 am

Freepascal 2.7.1 Daily builds

Mon Mar 17, 2014 6:35 am

I have decided to push daily builds for the latest and greatest version of the Freepascal compiler to http://freepascal.thaddy.co.uk/raspberrypi.html
The reason for that is that the official Freepascal distribution for Raspbian is many, many versions behind and trunk contains many, many language improvements and optimizations.

There is a win32 to armhf standalone crosscompiler for those that need just that and there is a full package including all libraries that runs on the Raspberry Pi itself. It doesn't include the sourcecode. You can obtain the sources with svn from freepascal.org.

Current revision is fpc271 - R27169

To install, delete any ppcarm and samplecfg from /usr/local/bin, extract the archive and copy the contained directories to /usr/local. That would be /usr/local/bin, /usr/local/share and /usr/local/lib

Then create these links:
sudo ln -sf /usr/local/lib/fpc/2.7.1/ppcarm /usr/local/bin/ppcarm
sudo ln -sf /usr/local/lib/fpc/2.7.1/samplecfg /usr/local/bin/samplecfg

When I have the time, I wil probably include this in a script and maybe even a distribution as a deb.
These releases are unofficial and they do not include Lazarus. Just the textmode IDE (FP).

But they are cutting edge and fresh from the press.

If you want to compile it yourself, first download and install the full compiler as explained above.
Then make sure subversion is installed and checkout the sources from freepascal.org:
// first time install subverion: sudo apt-get install subversion
cd ~/
// first time checkout the sources: svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc
// after that, for future builds you need to just update the sources
svn up
cd fpc
sudo make clean all distinstall OPT="-dREVINC -dFPC_ARMHF -CX -CpARMV6 -CfVFPV2 -CaEABIHF -OpARMV6 -O2 -OoFASTMATH -XX -Xs"

Then delete fpcarm and samplecfg from /usr/local/bin and create the symlinks as explained above.

This will give you a full installation in /usr/local .
You still have to create the two links above.
To check if everything went to plan - provided the make didn't throw any errors - , you can start fp (just type fp in a terminal ) and check the revision number in the aboutbox...

I do not supply any support on these builds!
But I may answer questions here or on the freepascal mailinglist.
It is NOT recommended to do the daily builds yourself, not on an SD card anyway.
It will ruin the card very quickly. I compile on an external disk and push it through a script to my website.
(Which for now looks like sh*t, but at least now it serves a purpose. It lay dormant for years.)

Ahmadian
Posts: 12
Joined: Wed Aug 28, 2013 4:19 pm

Re: Freepascal 2.7.1 Daily builds

Mon Apr 07, 2014 7:32 pm

Thanks thaddy
I have Lazarus + fpc2.6.2 on RPI.
If I use your instruction the Lazarus work with fpc2.7.1?

Thaddy
Posts: 171
Joined: Wed Mar 06, 2013 11:28 am

Re: Freepascal 2.7.1 Daily builds

Sat Apr 19, 2014 1:08 pm

No, not yet.
But it is no problem for me to also build Lazarus, automated.
Just don't expect support ;-) I (frankly, almost) don't use Lazarus ;-).

User avatar
jackokring
Posts: 815
Joined: Tue Jul 31, 2012 8:27 am
Location: London, UK
Contact: ICQ

Re: Freepascal 2.7.1 Daily builds

Sun Apr 20, 2014 1:30 pm

I use

Code: Select all

fp
at the terminal. I just don't need Lazarus at the moment, though I may later when I need a GUI for my code. Just wondering if ansichar 0 can be accessed from an ansistring as an array index yet? Cos the apparent warning is actually flagged as an error.
Pi[NFA]=B256R0USB CL4SD8GB Raspbian Stock.
Pi[Work]=A+256 CL4SD8GB Raspbian Stock.
My favourite constant 1.65056745028

Ahmadian
Posts: 12
Joined: Wed Aug 28, 2013 4:19 pm

Re: Freepascal 2.7.1 Daily builds

Thu Apr 24, 2014 9:19 am

Thanks Thaddy
But I'm using the LCL of Lazarus1.2 on Raspberry and only need newer FPC for speed-up my softwares. For Example, TAChart.

papelhigienico
Posts: 1
Joined: Thu Jul 17, 2014 1:32 am

Re: Freepascal 2.7.1 Daily builds

Thu Jul 17, 2014 1:35 am

Somebody, using these builds, can test if this bug persists?

http://bugs.freepascal.org/view.php?id=26454

tednilsen
Posts: 10
Joined: Fri Dec 06, 2013 10:37 am

Re: Freepascal 2.7.1 Daily builds

Wed Nov 19, 2014 12:06 am

Thanks Thaddy, will check it out! :D

BLL
Posts: 164
Joined: Fri Jun 07, 2013 2:30 pm

Re: Freepascal 2.7.1 Daily builds

Wed Jul 22, 2015 7:49 pm

Hi
Can anyone help please? I am trying to follow these instructions but I am having problems:
The link http://freepascal.thaddy.co.uk/raspberrypi.html doesn't work

In the To install paragraph, it says to:
To install, delete any ppcarm and samplecfg from /usr/local/bin, extract the archive and copy the contained directories to /usr/local. That would be /usr/local/bin, /usr/local/share and /usr/local/lib

Extract what archive and from where?

I have also tried from here:
http://michellcomputing.co.uk/blog/2014 ... pberry-pi/ but the dead link above is again referred to!

I am lost!

Thanks
Brian

Thaddy
Posts: 171
Joined: Wed Mar 06, 2013 11:28 am

Re: Freepascal 2.7.1 Daily builds

Wed Jul 29, 2015 8:22 am

I am currently updating to include B2. Dunno where the page went, but it will be back soon.

BLL
Posts: 164
Joined: Fri Jun 07, 2013 2:30 pm

Re: Freepascal 2.7.1 Daily builds

Wed Jul 29, 2015 8:43 pm

Hi Thaddy
Thanks for the reply. I have since used the excellent tutorial from http://otapi.com. The installation went like a dream and I have fpc and lazarus installed and working well on the model 2 B.

Brian

Return to “Other languages”

Who is online

Users browsing this forum: No registered users and 6 guests