I am trying to compile Lazarus on my raspberry pi. I have the raspian image installed and updated. I have installed fpc 2.6.0 from the repositories, but the repo only has lazarus 0.9.30. I want to compile Lazarus 1.0.2 but the compile fails near the end with the following message:

I am using fpc 2.6.0 which is the current stable version. I also downloaded Lazarus 1.0.2 source and tried to compile that. I have in the meantime managed to compile a Lazarus project and it runs. I just cannot seem to compile the IDE.

I used to increase swap file and then managed to compile Lazarus 1.0.2 from the source (latest SVN at the time) on my old 256MB Pi. I am not sure, but I think I have increased swap to 512MB. I can check when I get home if anyone is interested. X was not started. I used FPC 2.6.0 from repository.

Combining lazarus with a debian version( wheezy raspbian) of linux on a raspberry pi provides a huge number of opportunities for a bad outcome. The raspberry pi folks have addressed this with pre validated packages. So if using these packages has value to you ....here are the steps.

At this point the lazarus IDE should run.Now the raspberry pi OS distro is for a 2gb SD card. ( even an 8gb card will only get a 2gb partition) Use Win32DiskImager.exe( to R/w linux image) and a partition manager to expand the linux partition space...I run lazarus on a 8gb sd card pi is 512MB rev B

I did install bgracontrols and other components that I wrote myself and the IDE did recompile without error but it was slow ( several minutes). Now you may have a dependency issue between the zeos and the version of lazarus it will run on....further the version of lazarus that will run zeos may not run on the pi. Opportunities to encounter issues like this exist with every new version of lazarus or the linux pi OS. Fortunately these opportunities are free opportunities.

I am trying your message about compile Lazarus on Raspberry PI. I use the Mitchel guide and everything was fine , Lazarus run on my PI, but when I try to install Zeos uisng lazbuild --build-ide=component,I get an error

I've lost half a day trying this tutorial and failed (error from the first post, then some errors while building Lazarus) I'm guessing that people who did it successfuly, did it not on the "fresh" system, but installed something additional before, what wasn't mentioned in the tutorial.