Sign in Join

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

Mailing lists / lazarus / 2008-08

Building native Lazarus for ARM on Linux (little-endian)

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

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

Mark Morgan Lloyd

I'm exploring the capabilities of a small ARM-based system, I've got Debian "Etch" on it with kernel 2.6.18.

FPC 2.2.0 installs and runs as a binary. I've not yet tried rebuilding from source. Binutils are installed, there is one copy of as on the system, reporting v2.17.

I've moved Lazarus 0.9.24-0 source onto the system, I've successfully built this for i386 (NT and Linux) and SPARC (Linux) in the past.

If I attempt to compile using

lazarus-0.9.24-0$ # make clean PP=ppcarm
lazarus-0.9.24-0$ # make all PP=ppcarm

everything runs successfully to this point:

Assembling dialogs
imglist.inc(189,4) Note: User defined: implement
imglist.inc(726,2) Note: User defined: implement
imglist.inc(863,4) Note: User defined: implement
imglist.inc(996,60) Warning: Mixing signed expressions and longwords gives a 64bit result
imglist.inc(1430,4) Note: User defined: implement
imglist.inc(1452,4) Note: User defined: implement
imglist.inc(1570,4) Note: User defined: implement
Assembling imglist
Compiling toolwin.pp
Assembling toolwin
Compiling ./widgetset/wscomctrls.pp
Compiling ./widgetset/wstoolwin.pp
Assembling wstoolwin
Assembling wscomctrls
Assembling comctrls
comctrls.pp(2706) Error: Can't call the assembler, error -1 switching to external assembling
comctrls.pp(2706) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `/usr/local/share/lazarus-0.9.24-0/lcl' make: *** [lcl] Error 2

Where do I go from here?

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
I'm exploring the capabilities of a small ARM-based system, I've got Debian "Etch" on it with kernel 2.6.18.

..

Show quoted text 8 lines
Assembling comctrls comctrls.pp(2706) Error: Can't call the assembler, error -1 switching to external assembling comctrls.pp(2706) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/usr/local/share/lazarus-0.9.24-0/lcl' make: *** [lcl] Error 2

The cause of the problem appears to have been lack of memory. The Debian installer had created a 90Mb swap partition which was inadequate, I rebuilt the system with 1Gb of which I believe around 200Mb was used during the Lazarus build (make all).

I believe I've got a good set of binaries out of it but execution fails with exceptions. I can't put any more time into this one right now but I will revisit at some point.

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