Sign in Join

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

Mailing lists / lazarus / 2012-02

lazarus for arm-linux

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Ajay Garg

Hi all.

Does there exist a lazarus for "linux-arm"? If yes, I will be grateful if someone could point me to its links.
I already have managed to procure fpc from
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.2.2/arm-linux/fpc-2.2.2.arm-linux.tar

Looking forward to a reply.

Regards,
Ajay

Reply by email

Felipe Monteiro de Carvalho
to Ajay Garg
Ajay Garg wrote
Does there exist a lazarus for "linux-arm"?

Yes. But to better help you, you should much much more precise: Do you want to run Lazarus on arm-linux? Or run Lazarus in x86-linux and cross-compile to arm-linux?

In either case you need to define much better what is "arm" in your case. Which device exactly are you targeting? It is not at all like there is only 1 ARM, because there are many configurations which are important, like the ARM version, if there is a FPU or not, etc.

If yes, I will be grateful if someone could point me to its links.

Download Lazarus Trunk via subversion as explained here:

http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_Lazarus_SVN_development_version

And then build it from your linux command line with the command "make bigide"

But you will need a newer FPC as 2.2.2 is too old. At least 2.4.2 is required at the moment.

Felipe Monteiro de Carvalho

Reply by email

Ajay Garg

Hi Felipe.

Heartful thanks for the reply.

I wish to run Lazarus on arm-liux, and build the target for itself (arm-linux that is).

I was able to procure fpc-2.4.4, and install it on the arm-linux machine. I also checked-out Lazarus from the link you gave; and ran "make bigide".

It ran fine for a while, but then termintaed, with the following error ::

==========================================================

.....
Compiling outputfilter.pas
Fatal: Compilation aborted
An unhandled exception occurred at $00089FB8 :
EAccessViolation : Access violation
<
A
BUNCH
OF
ADDREESSES

make[2]: *** [lazarus] Error 217
make[2]: Leaving directory '/home/ajay/lazarus/ide' make[1]: *** [bigide] Error 2
make[1]: Leaving directory '/home/ajay/lazarus/ide' make: *** [idebig] Error 2

============================================================

What could I try? I may have been very stupid in missing something :|

Regards,
Ajay

Ajay Garg wrote
Does there exist a lazarus for "linux-arm"?

Yes. But to better help you, you should much much more precise: Do you want to run Lazarus on arm-linux? Or run Lazarus in x86-linux and cross-compile to arm-linux?

In either case you need to define much better what is "arm" in your case. Which device exactly are you targeting? It is not at all like there is only 1 ARM, because there are many configurations which are important, like the ARM version, if there is a FPU or not, etc.

If yes, I will be grateful if someone could point me to its links.

Download Lazarus Trunk via subversion as explained here:

http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_Lazarus_SVN_development_version

And then build it from your linux command line with the command "make bigide"

But you will need a newer FPC as 2.2.2 is too old. At least 2.4.2 is required at the moment.

Felipe Monteiro de Carvalho

Reply by email

Ludo Brands
to Ajay Garg
Show quoted text 34 lines
I was able to procure fpc-2.4.4, and install it on the arm-linux machine. I also checked-out Lazarus from the link you gave; and ran "make bigide". It ran fine for a while, but then termintaed, with the following error :: ========================================================== ..... Compiling outputfilter.pas Fatal: Compilation aborted An unhandled exception occurred at $00089FB8 : EAccessViolation : Access violation < A BUNCH OF ADDREESSES > make[2]: *** [lazarus] Error 217 make[2]: Leaving directory '/home/ajay/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory '/home/ajay/lazarus/ide' make: *** [idebig] Error 2 ============================================================ What could I try? I may have been very stupid in missing something :|

Compiling lazarus with fpc 2.6.0 worked for me on arm debian sid. Fpc 2.6.0 is in the debian sid repositories but can also be found here: http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/. Lazarus from debian sid repo (0.9.30.2) isn't working correctly. Some patches to correct alignment errors didn't make it in that release. Lazarus from svn works fine though.

Ludo

Reply by email

Mark Morgan Lloyd
to Ludo Brands
Ludo Brands wrote 17 lines
> I was able to procure fpc-2.4.4, and install it on the > arm-linux machine. I also checked-out Lazarus from the link > you gave; and ran "make bigide". > > It ran fine for a while, but then termintaed, with the > following error :: > > What could I try? I may have been very stupid in missing something :| > Compiling lazarus with fpc 2.6.0 worked for me on arm debian sid. Fpc 2.6.0 is in the debian sid repositories but can also be found here: http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/. Lazarus from debian sid repo (0.9.30.2) isn't working correctly. Some patches to correct alignment errors didn't make it in that release. Lazarus from svn works fine though.

I'm setting off a trial compilation of 2.6.0 hosted on ARM Debian "Squeeze", which will take a few hours. If that is OK then I'll try Lazarus 0.9.31 plus your patches- I'm not sure that it's appropriate to go straight to trunk for this but if anybody is confident that a particular revision is robust please say and I'll use this in preference.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 28 lines
Ludo Brands wrote: >> I was able to procure fpc-2.4.4, and install it on the arm-linux >> machine. I also checked-out Lazarus from the link you gave; and ran >> "make bigide". >> >> It ran fine for a while, but then termintaed, with the following >> error :: >> >> What could I try? I may have been very stupid in missing something :| >> > > Compiling lazarus with fpc 2.6.0 worked for me on arm debian sid. Fpc > 2.6.0 > is in the debian sid repositories but can also be found here: > http://sourceforge.net/projects/freepascal/files/Linux/2.6.0/. Lazarus > from > debian sid repo (0.9.30.2) isn't working correctly. Some patches to > correct > alignment errors didn't make it in that release. Lazarus from svn > works fine > though. I'm setting off a trial compilation of 2.6.0 hosted on ARM Debian "Squeeze", which will take a few hours. If that is OK then I'll try Lazarus 0.9.31 plus your patches- I'm not sure that it's appropriate to go straight to trunk for this but if anybody is confident that a particular revision is robust please say and I'll use this in preference.

In case it's still relevant: 2.6.0 + 0.9.31 with the align_all.diff patch from http://mantis.freepascal.org/view.php?id=19109 appears OK. I've not tried 2.6.0+trunk on account of how long a full build takes.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email