[fpc-devel] Error building branch targetandroid
tom_at_work at gmx.at
Mon Jul 9 09:42:08 CEST 2012
On Mon, 2012-07-09 at 08:53 +0200, Felipe Monteiro de Carvalho wrote:
> On Sun, Jul 8, 2012 at 5:15 PM, Thomas Schatzl <tom_at_work at gmx.at> wrote:
> > can you check whether the correct assembler is used, e.g. change into the
> > rtl directory, and run the ppcrossarm as above with -al -s appended? And
> > then verify the ppas.sh that the correct assembler is used?
> Could you be more specific about which command to type? I tryed to
> deduce by myself and I came up with:
> user-31-175-219-83:rtl felipe$ ../compiler/ppcrossarm
> -FE. -FU/Users/felipe/Programas/targetandroid/rtl/units/arm-android
> -dFPC_ARMEL -darm -dRELEASE -CpARMv6 -CfSoft -Us -Sg -al -s -Fiarm
> -Fiunix -Filinux/arm -Fiinc -Filinux linux/system.pp
> which results in a compilation error:
-Tandroid -Parm -XParm-linux-androideabi- -Xr -Ur -Xs -O2 -n -Fi../inc
-Fi../arm -Fi../unix -Fiarm -Fi../linux -Fi../linux/arm
-dFPC_ARMEL -darm -dRELEASE -CpARMv6 -CfSoft -Us -Sg -al -s
(I.e. the command line that failed, including "-al -s")
in the "/Users/felipe/Programas/targetandroid/rtl/android" directory
(this is where make was when the error occurred), and have a look at the
generated ppas.sh file which contains the calls to the assembler and
linker. They should refer to correct cross-assembler and linker.
Btw, I had some time to have a look at what method exit code fpc
generates when using -Cparmv5. It generates bx instructions then.
I.e. the default code generator uses something less than armv5.
More information about the fpc-devel