[fpc-devel] targetandroid

Adriaan van Os fpc at microbizz.nl
Sun Jun 17 21:47:23 CEST 2018


Jonas Maebe wrote:
> On 17/06/18 18:00, Adriaan van Os wrote:
> 
>> What I suspect is that, when building the rtl for android, fpcrossarm 
>> calls the installed clang assembler rather than the (separately built) 
>> arm-linux-androideabi-as.
> 
> That would surprise me. With -vx, you can see which external tools the 
> compiler invokes and with which command lines.

Indeed

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C android all
/bin/mkdir -p /Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android
arm-linux-androideabi-as  -o /Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/prt0.o arm/prt0.as
arm-linux-androideabi-as  -o /Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/dllprt0.o 
arm/dllprt0.as
/Users/dev1/fpc-android/fpc-3.0.4/compiler/ppcrossarm -Ur -Tandroid -Parm -XParm-linux-androideabi- 
-Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -Fi../linux -Fi../linux/arm -FE. 
-FU/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android -vx -darm -dRELEASE -Us -Sg 
../linux/system.pp
Executing "/usr/local/bin/arm-linux-androideabi-as" with command line "-mfpu=softvfp -o 
/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/system.o 
/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/system.s"
/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/system.s: Assembler messages:
/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/system.s:84: Error: invalid constant (7f) 
after fixup
/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/system.s:99: Error: invalid constant (7f) 
after fixup
/Users/dev1/fpc-android/fpc-3.0.4/rtl/units/arm-android/system.s:114: Error: invalid constant (ff) 
after fixup

But why would arm-linux-androideabi-as behave differently on OS X 10.12.6 with Xcode 8.3.3 than on 
OS X 10.10 ? ? Or could it be that the assembly files produced by ppcrossarm are different ?

Regards,

Adriaan van Os




More information about the fpc-devel mailing list