[fpc-devel] fpc on arm-linux-uclibc and OABI

Nataraj S Narayan natarajsn at gmail.com
Mon Mar 1 12:24:31 CET 2010


Yep. Got the zip

root  nataraj  15342919 Mar  1 15:59 /software/fpc/fpc-2.5.1.arm-linux.tar.gz

using

#gmake all crosszipinstall CPU_TARGET=arm OS_TARGET=linux OPT=-dFPC_ARMEL

After that, replaced  /usr/local/lib/fpc/2.5.1/units/arm-linux with
the corresponding one inside the tar.gz

The tried compiling a lazarus-qt program using :-

#  ppcrossarm  -MObjFPC -Sgi -CX -TLinux -Parm -gl -XX  -l
-Fi/home/siddhiq/:/software/lazarus-svn/lcl/units/arm-linux/include/
-Fl/cdrom/output/build/staging_dir/usr/lib/
-Fl/cdrom/output/build/staging_dir/lib/
-Fu/software/lazarus-svn/lcl/units/arm-linux/
-Fu/software/lazarus-svn/lcl/units/arm-linux/qt/
-Fu/software/lazarus-svn/packager/units/arm-linux/ -Fu. -dFPC_ARMEL
-XLAc= -XR/cdrom/output/target /home/siddhiq/noy1.lpr
Free Pascal Compiler version 2.5.1 [2010/03/01] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARMEL
Compiling /home/siddhiq/noy1.lpr
Assembling noy1
Compiling resource /home/siddhiq/noy1.or
Linking /home/siddhiq/noy1
/usr/local/lib/fpc/2.5.1/units/arm-linux/rtl/system.o: In function
`SYSTEM_SYSTEM_EXIT':
system.pp:(.text.n_system_system_exit+0x10): undefined reference to
`_haltproc_eabi'
noy1.lpr(23) Error: Error while linking
noy1.lpr(23) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

Again, have I missed out something?


regards

Nataraj



On 3/1/10, Florian Klaempfl <florian at freepascal.org> wrote:
> Nataraj S Narayan schrieb:
>> Florian
>>
>> Getting this kinda errors when using:-
>
> No wonder. Read again what I wrote.
>
>>
>> # gmake distclean crosszipinstall CPU_TARGET=arm OS_TARGET=linux
>> CROSSOPT='-dFPC-ARMEL '
>>
>>>> #make distclean crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -darm
>>>> -dFPC-ARMEL -gl'
>>> As I said multiple times, only OPT=-dFPC_ARMEL is needed. No -CfSOFT, no
>>> -darm, especially not in CROSSOPT.
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>



More information about the fpc-devel mailing list