I am trying to test Lazarus 1.8 RC1 (and following versions) under Raspbian Jessie with PIXEL.
But unfortunately I could not find any instructions or scripts helping to install *this* RC.
Any hint?
Regards -Joe
Mailing lists / lazarus / 2017-05
Lazarus 1.8 RC1 under Raspbian Jessie
29 messages · 4 people · –
- JJoe 15
- BBo Berglund 7
- MMark Morgan Lloyd 6
- MMattias Gaertner 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Joe wrote 5 lines
You could try my script for installation of FPC + Lazarus on an RPi3. http://blog.boberglund.com/install_lazfpc_local_pi.sh
In order to get the version you need just edit the script before running it and replace the versions at the top of the file with the one you want.
It will install into the pi user space rather than make a global installation using sudo.
I have not tested with the more recent Lazarus 1.8, but it worked fine with 1.6RCx and 1.6 release.
Bo Berglund wrote 5 lines
Just to check the "standard way of doing it" in case there's any surprises, with FPC 3.0.2 installed:
svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC1 cd lazarus_1_8_0_RC1
make
That worked as expected.
make clean bigide
That also worked, except that there was a message about purist woult probably object that the
binary hadn't been added to the desktop environment's menu.
That's an up-to-date "full" Raspbian (i.e. not "lite").
Mark Morgan Lloyd wrote 17 lines
I made the script in order to install "everything" on a bare bones RPi with Raspbian from the install image. So it therefore also installs FPC, then Lazarus. And it uses a start compiler I made myself since I could not find any 3.0.0 FPC for ARMHF on RPi at the time. It is downloaded as part of running the script.
Bo Berglund wroteOn Fri, 26 May 2017 13:29:50 +0000, Mark Morgan Lloyd via Lazarus wrote: >> Just to check the "standard way of doing it" in case there's any >surprises, with FPC 3.0.2 installed:>>svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC1>cd lazarus_1_8_0_RC1>make>>That worked as expected.>>make clean bigide>>That also worked, except that there was a message about > purist woult probably object that the >binary hadn't been added to the desktop environment's menu.>>That's an up-to-date "full" Raspbian (i.e. not "lite"). I made the script in order to install "everything" on a bare bones RPiwith Raspbian from the install image. So it therefore also installsFPC, then Lazarus. And it uses a start compiler I made myself since Icould not find any 3.0.0 FPC for ARMHF on RPi at the time.It is downloaded as part of running the script.
My apologies, but since you hadn't tested it for the current RC I assumed you'd abandoned it.
Mark Morgan Lloyd wroteMy apologies, but since you hadn't tested it for the current RC I assumed you'd abandoned it.
No apology needed!
It's just that I have 6 RPi:s running at home for different purposes and those I use for FPC programming are working well as it is, so I have not even looked for new releases of Lazarus recently.
The script was done for this:
1) To simplify the initial installation on a brand new RPi
2) To make sure the install is done to the pi environment rather than global with sudo.
Bo Berglund wrote 5 lines
Noted. But I'd got one next to me earmarked for development onto which I could easily checkout the RC (using the original published URL) and where I could check the build using the basic commands that the developers expected and which are probably buried somewhere in the Wiki :-)
On Thu, 25 May 2017 18:46:43 +0200, Joe via Lazarus You could try my script for…
Bo Berglund wrote 6 lines
Bo,
unfortunately, this failed with error message something could not be found. Seems, I did not edit the script the right way. What lines are to be edited and exactly how for Lazarus 1.8.0 RC1? Thanx -- Joe
Just to check the "standard way of doing it" in case there's any surprises, with FPC…
Mark Morgan Lloyd wrote 10 lines
Mark,
I installed FPC 3.0.2 and then followed your proposal. But the compilation of Lazarus 1.8.0 RC1 was aborted with an error message saying FPC 3.0.0 was needed.
How to fix?
Regards -- Joe
Show quoted text 16 lines
What is the exact error message?
Mattias
I installed FPC 3.0.2 and then followed your proposal. But the compilation of Lazarus…
Joe wrote 8 lines
Make sure that the ppcarm command points to the 3.0.2 binary. Here's what I've got in my /usr/local/bin:
lrwxrwxrwx 1 root staff 12 Mar 25 14:14 ppcarm -> ppcarm-3.0.2 lrwxrwxrwx 1 root staff 31 Mar 25 14:13 ppcarm-3.0.2 -> /usr/local/lib/fpc/3.0.2/ppcarm
The fpc -v command should give you version info:
$ fpc -v
Free Pascal Compiler version 3.0.2 [2017/03/02] for arm Copyright (c) 1993-2017 by Florian Klaempfl and others Fatal: No source file name in command line
Fatal: Compilation aborted
Error: /usr/local/bin/ppcarm returned an error exitcode
unfortunately, this failed with error message something could not be found. Seems, I did…
Joe wrote 11 lines
I have not used the scripts in a while, the last time was when I installed on a Raspbian Pixel RPi in January-February, and at that time the script worked for me.
One note though:
The script is for installing on a bare bones RPi Raspbian and it deals with both the FPC seed and release versions and then Lazarus.
So if you are only interested in Lazarus 1.8RCx but have no need to get a new FPC then this is probably not for you.
I might set up a new Pi soon for use at my vacation home over the summer and when I do I will check the script again...
Bo Berglund wroteI might set up a new Pi soon for use at my vacation home over the summer and when I do I will check the script again...
I'm sure, this will be another very useful contribution from the famous 'Developer in Sweden'. Are you using the Pi Zero W?
unfortunately, this failed with error message something could not be found. Seems, I did…
Joe wrote 12 lines
Hi again!
I have now returned home and been able to check the script. I used a brand new Jessie PIXEL image and did this before starting the script:
- Created dir /home/pi/bin where the fpc binary will reside
- Logged off and back on again to put this dir into the PATH
Turns out that the fpc sourceinstall command on line #150 fails because there is no current path to the seed compiler ppcarm.... So I have added option FPC=<path to ppcarm> on that line and with that done the script runs OK to the end and Lazarus is available on the main Jessie menu below "Programming".
The corrected script is found here:
http://blog.boberglund.com/install_lazfpc_local_pi.sh
Regarding configuration, these lines need to be handled by editing the versions mainly (lines #32 and #43-46):
LAZDESK=/home/pi/.local/share/applications/lazarus_1.6.2.desktop FPCTAG=release_3_0_0
FPCVER=3.0.0
LAZTAG=lazarus_1_6_2
LAZVER=1.6.2
In your case change them to this:
LAZDESK=/home/pi/.local/share/applications/lazarus_1.8.RC1.desktop FPCTAG=release_3_0_2
FPCVER=3.0.2
LAZTAG=lazarus_1_8_0_RC1
LAZVER=1.8.RC1
HTH
I'm sure, this will be another very useful contribution from the famous 'Developer in…
Joe wroteI'm sure, this will be another very useful contribution from the famous 'Developer in Sweden'. Are you using the Pi Zero W?
No, I am buying the RPi3 now but have a number of earlier generation Pi running their tasks also. I want the most performance I can get out of them.
On Sat, 27 May 2017 11:20:17 +0200, Joe via Lazarus Hi again! I have now returned home…
Bo Berglund wrote 51 lines
.
.
Bo, helps a lot. Very kind. Have a nice day.
Cordialmente -- Joe
On Sat, 27 May 2017 11:20:17 +0200, Joe via Lazarus Hi again! I have now returned home…
Bo Berglund wroteThe corrected script is found here: http://blog.boberglund.com/install_lazfpc_local_pi.sh
.
.
On a Raspberry Pi Zero W, the script failes with this error:
(9009) Assembling buildprojectdlg
buildprojectdlg.pas(603) Error: (9008) Can't call the assembler, error -1 switching to external assembling
buildprojectdlg.pas603) Fatal: (10026) There were 2 errors compiling module, stopping
I had selected the option 'for all Pis'.
Could it be a swap file size problem? On the Pi Zero W, the default size is 100 MB.
Joe
Joe wrote 10 lines
Yes, assume you need at least 512Mb. Put a temporary swap partition onto an external USB stick or whatever.
Mark Morgan Lloyd wrote 7 lines
.
.
I'll give it 1024 MBytes and a try.
Thanx -- Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170531/c4297f41/attachment.html>
. . Bo, helps a lot. Very kind. Have a nice day. Cordialmente -- Joe
Joe wrote 56 lines
.
.
I stored this script as install_lazfpc_local_pi-0.sh and the modified version for Lazarus 1.8.RC1 as install_lazfpc_local_pi-1.sh. See http:/transfer.joepgen.com/diffresult.txt
Then, on a Pi Zero W, I prepared a brand new Jessie PIXEL image on a 32 GB card and
- Set Locale Settings to Germany and WiFi settings
- Created dir /home/pi/bin
- Logged off and back on again to put this dir into the PATH
- Enlarged the swap file size from 100 MB to 1024 MB, stopped and restarted swapfile
- started the script
- the question 'Which model of RPi do you want to build for' I answered with 'ARMv6'
62 minutes later the compilation was aborted due to access violations. See http://transfer.joepgen.com/ErrorMessages
SWeems
.. Joe
-------- Weitergeleitete Nachricht --------
Betreff: Re: [Lazarus] Lazarus 1.8 RC1 under Raspbian Jessie Datum: Wed, 31 May 2017 20:22:35 +0200
Von: Joe
An:
Joe wrote 56 lines
.
.
I stored this script as install_lazfpc_local_pi-0.sh and the modified version for Lazarus 1.8.RC1 as install_lazfpc_local_pi-1.sh. See http:/transfer.joepgen.com/diffresult.txt
Then, on a Pi Zero W, I prepared a brand new Jessie PIXEL image on a 32 GB card and
- Set Locale Settings to Germany and WiFi settings
- Created dir /home/pi/bin
- Logged off and back on again to put this dir into the PATH
- Enlarged the swap file size from 100 MB to 1024 MB, stopped and restarted swapfile
- started the script
- the question 'Which model of RPi do you want to build for' I answered with 'ARMv6'
62 minutes later the compilation was aborted due to access violations. See http://transfer.joepgen.com/ErrorMessages
SWeems
.. Joe
.
.
Sorry, the file name extent was missing.
Please use http://transfer.joepgen.com/ErrorMessages.png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170531/d4cc4438/attachment.html>
On Sat, 27 May 2017 11:25:56 +0200 What is the exact error message? Mattias
Mattias Gaertner wrote 21 lines
.
.
Another attempt lead to this result:
http://transfer.joepgen.com/ErrorMessage.png
Pi Zero W, Bo's script, swap file enlarged from 100 to 1024 MBytes.
On Sat, 27 May 2017 11:25:56 +0200 What is the exact error message? Mattias
Mattias Gaertner wrote 21 lines
.
Sorry, must be ErrorMessages.png, not ErrorMessage.png
Another attempt lead to this result:
http://transfer.joepgen.com/ErrorMessages.png
Pi Zero W, Bo's script, swap file enlarged from 100 to 1024 MBytes.
-- Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170531/eb04b57c/attachment.html>
On Sat, 27 May 2017 11:25:56 +0200 What is the exact error message? Mattias
Mattias Gaertner wrote 21 lines
.
Somethin is wrong with this link. Trying again:
Please use http://transfer.joepgen.com/ErrorMessages.png
-------- Weitergeleitete Nachricht -------- Betreff: Re: [Lazarus] Lazarus 1.8 RC1 under…
Joe wrote62 minutes later the compilation was aborted due to access violations.
Here the Error Log of another attempt:
Enter selection [ARMv7/ARMv6] : ARMv7A[K[K[K[K[K[KARMV[Kv6 --2017-06-01 13:56:49--
http://blog.boberglund.com/projects/freepascal/files/Linux/3.0.0/fpc-3.0.0.arm-linux.tar Auflösen des Hostnamen »blog.boberglund.com (blog.boberglund.com)«... 194.9.94.14
Verbindungsaufbau zu blog.boberglund.com
(blog.boberglund.com)|194.9.94.14|:80... verbunden. HTTP-Anforderung gesendet, warte auf Antwort... 200 OK Länge: 2918400 (2,8M) [application/x-tar]
In »»fpc-3.0.0.arm-linux.tar«« speichern.
0K .......... .......... .......... .......... .......... 1% 282K 10s 50K .......... .......... .......... .......... .......... 3% 677K 7s 100K .......... .......... .......... .......... .......... 5% 702K 6s 150K .......... .......... .......... .......... .......... 7% 683K 5s 200K .......... .......... .......... .......... .......... 8% 694K 5s 250K .......... .......... .......... .......... .......... 10% 188K 6s 300K .......... .......... .......... .......... .......... 12% 1,41M 5s 350K .......... .......... .......... .......... .......... 14% 1,40M 5s 400K .......... .......... .......... .......... .......... 15% 1,08M 5s 450K .......... .......... .......... .......... .......... 17% 1,38M 4s 500K .......... .......... .......... .......... .......... 19% 1,13M 4s 550K .......... .......... .......... .......... .......... 21% 881K 4s 600K .......... .......... .......... .......... .......... 22% 680K 4s 650K .......... .......... .......... .......... .......... 24% 696K 3s 700K .......... .......... .......... .......... .......... 26% 680K 3s 750K .......... .......... .......... .......... .......... 28% 227K 4s 800K .......... .......... .......... .......... .......... 29% 4,84M 3s 850K .......... .......... .......... .......... .......... 31% 1,40M 3s 900K .......... .......... .......... .......... .......... 33% 1,91M 3s 950K .......... .......... .......... .......... .......... 35% 540K 3s 1000K .......... .......... .......... .......... .......... 36% 698K 3s 1050K .......... .......... .......... .......... .......... 38% 676K 3s 1100K .......... .......... .......... .......... .......... 40% 702K 3s 1150K .......... .......... .......... .......... .......... 42% 675K 3s 1200K .......... .......... .......... .......... .......... 43% 696K 2s 1250K .......... .......... .......... .......... .......... 45% 684K 2s 1300K .......... .......... .......... .......... .......... 47% 701K 2s 1350K .......... .......... .......... .......... .......... 49% 676K 2s 1400K .......... .......... .......... .......... .......... 50% 680K 2s 1450K .......... .......... .......... .......... .......... 52% 701K 2s 1500K .......... .......... .......... .......... .......... 54% 675K 2s 1550K .......... .......... .......... .......... .......... 56% 675K 2s 1600K .......... .......... .......... .......... .......... 57% 689K 2s 1650K .......... .......... .......... .......... .......... 59% 716K 2s 1700K .......... .......... .......... .......... .......... 61% 670K 2s 1750K .......... .......... .......... .......... .......... 63% 703K 2s 1800K .......... .......... .......... .......... .......... 64% 679K 2s 1850K .......... .......... .......... .......... .......... 66% 677K 1s 1900K .......... .......... .......... .......... .......... 68% 700K 1s 1950K .......... .......... .......... .......... .......... 70% 658K 1s 2000K .......... .......... .......... .......... .......... 71% 724K 1s 2050K .......... .......... .......... .......... .......... 73% 675K 1s 2100K .......... .......... .......... .......... .......... 75% 692K 1s 2150K .......... .......... .......... .......... .......... 77% 687K 1s 2200K .......... .......... .......... .......... .......... 78% 702K 1s 2250K .......... .......... .......... .......... .......... 80% 676K 1s 2300K .......... .......... .......... .......... .......... 82% 681K 1s 2350K .......... .......... .......... .......... .......... 84% 698K 1s 2400K .......... .......... .......... .......... .......... 85% 679K 1s 2450K .......... .......... .......... .......... .......... 87% 684K 1s 2500K .......... .......... .......... .......... .......... 89% 694K 0s 2550K .......... .......... .......... .......... .......... 91% 698K 0s 2600K .......... .......... .......... .......... .......... 92% 676K 0s 2650K .......... .......... .......... .......... .......... 94% 700K 0s 2700K .......... .......... .......... .......... .......... 96% 678K 0s 2750K .......... .......... .......... .......... .......... 98% 676K 0s 2800K .......... .......... .......... .......... ..........100% 709K 0s 2850K 100% 0,00 =4,3s
2017-06-01 13:56:54 (667 KB/s) - »»fpc-3.0.0.arm-linux.tar«« gespeichert [2918400/2918400]
make: -iVSPTPSOTO: Kommando nicht gefunden
An unhandled exception occurred at $000678A0:
EAccessViolation: Access violation
$000678A0
$000448B8
$0003E91C
An unhandled exception occurred at $000678A0:
EAccessViolation: Access violation
$000678A0
$000448B8
$0003E91C
An unhandled exception occurred at $000678A0:
EAccessViolation: Access violation
$000678A0
$000448B8
$0003E91C
An unhandled exception occurred at $000678A0:
EAccessViolation: Access violation
$000678A0
$000448B8
$0003E91C
An unhandled exception occurred at $000678A0:
EAccessViolation: Access violation
$000678A0
$000448B8
$0003E91C
An unhandled exception occurred at $000678A0:
EAccessViolation: Access violation
$000678A0
$000448B8
$0003E91C
make[6]: *** clean: Datei oder Verzeichnis nicht gefunden. Schluss. make[5]: *** [rtlclean] Error 2
make[4]: *** [next] Error 2
make[3]: *** [ppc1.exe] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.-] Error 2
install_lazfpc_local_pi-1.sh: 149: Cannot make all! Aborting
Regards -- Joe
On Sat, 27 May 2017 11:20:17 +0200, Joe via Lazarus Hi again! I have now returned home…
Bo Berglund wroteThe corrected script is found here: http://blog.boberglund.com/install_lazfpc_local_pi.sh
.
On Pi Zero W, using the ARMv6 option and De-de locale, i get this error message:
"make: -iVSPTPSOTO Kommando nicht gefunden"
What does this say? How to fix?
-- Joe
Joe wrote 6 lines
It says it can't find the compiler binary. Hopefully Bo will be able to give you some direct help, but the classical way of fixing it would be by something like
make clean all PP=ppcXXX
Mark Morgan Lloyd wrote 14 lines
.
Went to /home/pi/dev/fpc/3.02 and did make clean all PP=ppcarm. Got "An unhandled exception occurred at $000678A0". Maybe the ARMv6 CPU got some ARMv7 code?
-- Joe
Joe wroteWent to /home/pi/dev/fpc/3.02 and did make clean all PP=ppcarm. Got "An unhandled exception occurred at $000678A0". Maybe the ARMv6 CPU got some ARMv7 code?
You should probably use this instead:
make clean all PP=/home/pi/dev/fpc/ppcarm
because my script downloads the seed compiler (ppcarm ver 3.0.0) to the base fpc directory in which there are the version subdirs like 3.0.2 and the only files are supposed to be the relevant ppcarm compiler binary.
