bernd331
Posts: 3
Joined: Sun Sep 02, 2012 4:00 pm

Lazarus didn't run proper?

Sun Sep 23, 2012 9:39 pm

Hi all,

after my problems with LNet I startet again from the beginning. Create a SD-Card with wheezy, configer it, make a sudo apt-get install Lazarus and try to compile the IDE. No additional configuration or installing any additional app.

Compiling Lazarus stops with /usr/lib/lazarus/0.9.30.4/ide/sourceeditor.pp(9011) Error: Can't call the assembler, error -9 switching to external assembling.

So I think there is a problem in general with Lazarus on the Raspberry Pi. Can anyoue confirm this?

Thanks in advance, Bernd

woodengineer
Posts: 5
Joined: Sat Jun 09, 2012 12:32 pm

Re: Lazarus didn't run proper?

Tue Oct 02, 2012 12:35 am

Hello Bernd,

I had the same problem.
It seems this problem is related to insufficient memory. Try using arm224_start.elf. Also, you must setup a swap file at least 256MB. When you compile Lazarus, you could use "make clean all" instead of "make clean bigide" the later one, needs more resources on linking. Also, do not start X, compile Lazarus on the console.
That worked for me :D .

Cheers!
Alex

rudiratlos
Posts: 179
Joined: Tue May 01, 2012 8:47 am

Re: Lazarus didn't run proper?

Thu Oct 11, 2012 4:37 pm

hi,
i'm fine with lazarus.
I'm using occidentalis v0.2 distro from adafruit.
Install it on the sd card.
expand the partition by running raspi-confg.
apt-get update
apt-get upgrade
apt-get install lazarus

should work

ByteArts
Posts: 15
Joined: Mon Oct 29, 2012 3:52 pm

Re: Lazarus didn't run proper?

Mon Oct 29, 2012 4:15 pm

Why would you need to recompile the IDE? (I'm a noob at Lazarus, and was just wondering).

I was able to install and use Lazarus with no problems on Wheezy using "apt-get install lazarus". I just got a 512MB Pi and am anxious to try out Lazarus on that to see if the app builds go any faster -- they aren't unbearably long currently, but when you are used to builds taking a couple seconds on a PC with Delphi, it seems like a LONG time.

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

Re: Lazarus didn't run proper?

Sat Oct 05, 2013 12:43 pm

If you want to install a new component, you will need to recompile the IDE because of the way Lazarus handles components.
The design-time part is actually compiled into the IDE whereas in Delphi that is loaded dynamically.
With more powerful processors this is generally not a problem. On the Pi it is a bit time consuming. (Although several magnitudes faster than trying to compile GCC (if at all possible)). Some people are working on a more convenient way to install components.

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: Lazarus didn't run proper?

Sat Oct 05, 2013 3:16 pm

Thaddy,
...several magnitudes faster than trying to compile GCC (if at all possible))
I have compiled GCC on the Pi many times. Specifically propgcc, that compiles code for the Propeller MCU from Parallax Inc. So I'm sure compiling GCC for other targets is possible.

It is a bit slow though, took 21 hours last time!
Memory in C++ is a leaky abstraction .

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

Re: Lazarus didn't run proper?

Sun Oct 06, 2013 4:52 pm

Compared to 30 - 50 (depending on the speed of your storage medium, I have Raspbian itself on a fast SSD and only bootstrap from SD) minutes that is several magnitudes ;) The - separate - full freepascal compiler distribution including libraries takes about 1 hour. The freepascal compiler itself takes a couple of minutes.

I probably broke off my GCC build process to soon... After 6 hours or so.

Return to “Other programming languages”