Michell Computing

Free Pascal 2.7.1 on the Raspberry Pi

The copy of Free Pascal in the Raspbian repositories in 2014 was 2.6.0, which was already old. This note was the follow-up to the 2012 Lazarus-on-the-Pi article: build 2.7.1 from source for ARMHF and keep the tree on the Pi so it can be updated.

Linux desktop with an SFTP view of a FreePascal 2.7.1 tree and an SSH session on a Raspberry Pi

The desktop above is the working arrangement. A folder named FreePascal/2.7.1 holds compiler, ide, packages, rtl and a Makefile.fpc. Next to it, an SSH session is logged into a Pi running Raspbian 3.10 on ARM, dated May 2014. The Free Pascal site in the browser still lists 2.6.4 as the current release; 2.7.1 was the development snapshot we wanted on the board.

Konsole on a Pi compiling Test.lpr with Free Pascal 2.7.1 for ARMHF

Once the compiler is on the Pi it identifies itself as Free Pascal Compiler version 2.7.1 (2014/05/25) for arm, target Linux for ARMHF. A small X11 test project compiles and links. The familiar crtbegin.o / crtend.o warnings appear and can be ignored if the binary still runs, which this one did.

Network manager showing an RPI Direct Connection

The remaining figures are the network setup used to talk to the board: a connection named RPI Direct Connection, shared to other computers, so the Pi can be reached over a point-to-point Ethernet lead without a router in the way.

The original post included the build scripts. Those scripts went with the WordPress database. The 2012 predecessor (Lazarus on the Raspberry Pi) is in the same state. I have not reinvented the commands here; a current Pi should use a current FPC, not these snapshots.

Back to news