[Lazarus] on ARM Linux ,SoftFloat and EABI issues

Henry Vermaak henry.vermaak at gmail.com
Fri May 30 21:27:03 CEST 2008


2008/5/30 Nataraj S Narayan <nataraj at gsis.ac.in>:
> Hi Florian and other friends
>
> I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek
> board with 340x220 display. I need to write lots of console kinda apps.
>
> I am using a "qemu-system-arm" emulated  Armel Debian machine on a
> Debian x86 Lenny distro for writing code. I installed
> fpc-2.2.0.arm-linux.tar on the emulated linux.
> Which compiling a simple helloworld.pas , i get the classic error of
> System.o  being EABI 0 while target is EABI 4.
>
> I have got the svn download of fpc, and trying to compile it in the
> emulated machine for ARM for the past 2 days.  I have given :-
>
> make clean all ARCH=arm OPT="-CfSoft".

the makefiles use CPU_TARGET, but this shouldn't be necessary when
you're compiling natively (or inside an emulator, even).

i'd recommend going the cross compile route (since i know that works
with trunk).  just compile binutils (./configure --target arm) and
compile fpc with:

make crossall CPU_TARGET=arm CROSSOPT="-CfSOFT"

you can use other envvars, too, just inspect the makefile if you're
brave, or read the buildfaq for some good info.

henry



More information about the Lazarus mailing list