Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-04

Lazarus issues on ARM Linux

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michel Catudal

I am also having some issues with Lazarus, I am not sure if it is the right forum to talk about it. I had a previous version working fine on Rasphberry Pi. For some reason I can't get it to work on Mele A2000G. I have compiled it on gentoo on the Mele, using distcc and locally, same results. I didn't get any error during compile so I was expecting it to work. fpc seems to work, I haven't written any code with it yet, I was expecting to use lazarus to do that.

My system on Mele A2000G is gentoo with mate desktop. I have everything compiled with hard float as I did on the Raphsberry Pi. This is a much faster ARM processor (1Ghz with 1G of RAM). Gentoo is on a 32G SD Card. Speed throttles down to 408 Mhz when idle, could that be the problem? If that is I might need to put a heatsink and recompile the uboot and/or kernel to stop the change in speed.

qt is 4.10.1 I have 4.9 on rasphberry pi

~ $ lazarus
bash: /usr/bin/lazarus: Aucun fichier ou dossier de ce type ~ $ ls -la /usr/bin/laz
lazarus lazbuild
~ $ ls -la /usr/bin/lazarus
lrwxrwxrwx 1 root root 29 4 avr 07:39 /usr/bin/lazarus -> ../share/lazarus/startlazarus ~ $ ls -la /usr/share/lazarus/startlazarus
-rwxr-xr-x 1 root root 18763274 4 avr 07:30 /usr/share/lazarus/startlazarus ~ $

~ $ fpc
Free Pascal Compiler version 2.6.0 [2013/04/03] for arm

Lazarus is 1.0.4, i think that I have a slightly earlier version on Rasphberry Pi. It works nicely on mate. Interesting considering that the browser isn't too good on it and some applications were rather slow. Rasphberry pi is much slower than the Mele A2000G

~ $ emerge -p lazarus

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R *] dev-lang/lazarus-1.0.4

Michel Catudal

For Linux Software visit http://home.comcast.net/~mcatudal

Reply by email

Sven Barth
to Michel Catudal
"Michel Catudal" wrote
I am also having some issues with Lazarus, I am not sure if it is the

right forum to talk about it. I had a previous version working fine on Rasphberry Pi.

For some reason I can't get it to work on Mele A2000G. I have compiled it

on gentoo on the Mele, using distcc and locally, same results. I didn't get any error during compile so I was expecting it to work. fpc seems to work, I haven't written any code with it yet, I was expecting to use lazarus to do that.

My system on Mele A2000G is gentoo with mate desktop. I have everything

compiled with hard float as I did on the Raphsberry Pi.

This is a much faster ARM processor (1Ghz with 1G of RAM). Gentoo is on a

32G SD Card. Speed throttles down to 408 Mhz when idle, could that be the problem? If that is I might need to put a heatsink and recompile the uboot and/or kernel to stop the change in speed.

Show quoted text 9 lines
qt is 4.10.1 I have 4.9 on rasphberry pi ~ $ lazarus bash: /usr/bin/lazarus: Aucun fichier ou dossier de ce type ~ $ ls -la /usr/bin/laz lazarus lazbuild ~ $ ls -la /usr/bin/lazarus lrwxrwxrwx 1 root root 29 4 avr 07:39 /usr/bin/lazarus ->

../share/lazarus/startlazarus

~ $ ls -la /usr/share/lazarus/startlazarus -rwxr-xr-x 1 root root 18763274 4 avr 07:30

/usr/share/lazarus/startlazarus

Show quoted text 6 lines
~ $ ~ $ fpc Free Pascal Compiler version 2.6.0 [2013/04/03] for arm Lazarus is 1.0.4, i think that I have a slightly earlier version on

Rasphberry Pi. It works nicely on mate. Interesting considering that the browser isn't too good on it and some applications were rather slow. Rasphberry pi is much slower than the Mele A2000G

Show quoted text 8 lines
~ $ emerge -p lazarus These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R *] dev-lang/lazarus-1.0.4

Is it just me or did you forget to mention which problems you have exactly?

Regards,
Sven

Reply by email

peter green
to Michel Catudal: I am also having some issues with Lazarus, I am not sure if it is the right forum to talk…
Michel Catudal wrote 11 lines
I am also having some issues with Lazarus, I am not sure if it is the right forum to talk about it. I had a previous version working fine on Rasphberry Pi. For some reason I can't get it to work on Mele A2000G. I have compiled it on gentoo on the Mele, using distcc and locally, same results. I didn't get any error during compile so I was expecting it to work. fpc seems to work, I haven't written any code with it yet, I was expecting to use lazarus to do that. My system on Mele A2000G is gentoo with mate desktop. I have everything compiled with hard float as I did on the Raphsberry Pi.

Upstream 2.6.x does not support the hard float ABI so unless you have a patched version (such as the one shipped in debian) it won't correctly link against C libraries on a system that uses hard float ABIS. Also even when the hard float ABI support is present in the compiler source code you need to either bootstrap with a starting compiler that uses the hard float ABI or explictly specify -d FPC_ARMHF during the build.

Reply by email

Unknown author
to peter green

----- Original Message -----

Earlier message 23 lines
From: "peter green" To: "FPC developers' list" Sent: Monday, April 8, 2013 8:49:06 AM Subject: Re: [fpc-devel] Lazarus issues on ARM Linux Michel Catudal wrote: > I am also having some issues with Lazarus, I am not sure if it is the > right forum to talk about it. I had a previous version working fine on > Rasphberry Pi. > For some reason I can't get it to work on Mele A2000G. I have compiled > it on gentoo on the Mele, using distcc and locally, same results. I > didn't get any error during compile so I was expecting it to work. fpc > seems to work, I haven't written any code with it yet, I was expecting > to use lazarus to do that. > > My system on Mele A2000G is gentoo with mate desktop. I have > everything compiled with hard float as I did on the Raphsberry Pi. Upstream 2.6.x does not support the hard float ABI so unless you have a patched version (such as the one shipped in debian) it won't correctly link against C libraries on a system that uses hard float ABIS. Also even when the hard float ABI support is present in the compiler source code you need to either bootstrap with a starting compiler that uses the hard float ABI or explictly specify -d FPC_ARMHF during the build.

Reply by email

Michel Catudal
to Unknown author
Show quoted text 9 lines
I am not using an upstream binary file but compiled my own on gentoo. On gentoo you compile everything. The scripts that come with gentoo ARM are setup for hard floats only. I will check what you are saying tonight anyway. I will first write some pascal code to test. I think that lazarus might be the only problem since fpc didn't barf when I ran it. I might have tried lazarus on debian on Rasphberry Pi, not sure, I will double check that. I know that it worked perfectly when I did and it was hard float. I will just use Rasphberry pi as a programmer for AVR32 and PIC32, too slow for anything graphical. Michel

It was on debian that I tested Lazarus. On my rasphberry Pi I tried both. I went to debian when I realized that it was no possible to get firefox compiled on gentoo on the rasphberry Pi. Funny thing, I had no problem compiling it on Mele A2000G same version 17.0.
I did manage to compile Mate Desktop on the raphberry Pi. It is not very fast though, much better on Mele A2000G.

I will try to compile the way you explained later this week and will post my results.

For Linux Software visit http://home.comcast.net/~mcatudal

Reply by email

Thaddy
to peter green: Upstream 2.6.x does not support the hard float ABI so unless you have a patched version…
peter green wrote 22 lines
Michel Catudal wrote: > I am also having some issues with Lazarus, I am not sure if it is the > right forum to talk about it. I had a previous version working fine > on Rasphberry Pi. > For some reason I can't get it to work on Mele A2000G. I have > compiled it on gentoo on the Mele, using distcc and locally, same > results. I didn't get any error during compile so I was expecting it > to work. fpc seems to work, I haven't written any code with it yet, I > was expecting to use lazarus to do that. > > My system on Mele A2000G is gentoo with mate desktop. I have > everything compiled with hard float as I did on the Raphsberry Pi. Upstream 2.6.x does not support the hard float ABI so unless you have a patched version (such as the one shipped in debian) it won't correctly link against C libraries on a system that uses hard float ABIS. Also even when the hard float ABI support is present in the compiler source code you need to either bootstrap with a starting compiler that uses the hard float ABI or explictly specify -d FPC_ARMHF during the build. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

At the moment the current lazarus doesn't compile here for trunk, not even on raspberry. A couple of days ago it did.
But this is today. I will put in a bug report if I checked my build stup, can reproduce it and if so isn't fixed within two days or so. Most of the time it will.
You probably definitely must use trunk to get proper results for arm. Lot's of changes/improvements.

Reply by email