[fpc-pascal] where to set the binutils-path
Lukas Gradl
fpc at ssn.at
Wed Jun 25 13:21:49 CEST 2014
I'm trying to compile fpc for arm-android using the following script:
FPCBIN=/usr/lib/fpc/2.6.2/ppcx64
SRCDIR=/space/projekte/Sourcen/fpc27
ANDROIDBINDIR="~/Software/Android_Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin"
export PATH=$ANDROIDBINDIR:$PATH
make crossall CPU_TARGET=arm OS_TARGET=android FPC=$FPCBIN
CROSSOPT=-CfVFPV3 CROSSBINDIR=$ANDROIDBINDIR
BINUTILSPREFIX=arm-linux-androideabi-
The script stops with:
/bin/mkdir -p /space/projekte/Sourcen/fpc27/rtl/units/arm-android
~/Software/Android_Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as -o /space/projekte/Sourcen/fpc27/rtl/units/arm-android/prt0.o
arm/prt0.as
~/Software/Android_Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as -o /space/projekte/Sourcen/fpc27/rtl/units/arm-android/dllprt0.o
arm/dllprt0.as
/space/projekte/Sourcen/fpc27/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
-FD~/Software/Android_Development/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin -FE. -FU/space/projekte/Sourcen/fpc27/rtl/units/arm-android -darm -dRELEASE -CfVFPV3 -Us -Sg
../linux/system.pp
system.inc(1804,8) Warning: Implicit string type conversion from
"RawByteString" to "UnicodeString"
system.pp(376) Error: Assembler arm-linux-androideabi-as not found,
switching to external assembling
system.pp(376) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
So, prt0.o is built, dllprt0.o as well, but for system.pp it fails.
So - where do I have to set the path to the arm-android binutils as well?
Any help appreciated...
regards
Lukas
More information about the fpc-pascal
mailing list