[fpc-devel] targetandroid - x86 as target cpu

Thomas Schatzl tom_at_work at gmx.at
Thu Aug 9 16:57:01 CEST 2012


Hi,

On Thu, 2012-08-09 at 16:41 +0200, Dennis Spreen wrote:
> thanks, but still does not compile / link:
> 
> [0.201] (9017) Using util
> /home/dennis/android/android-ndk-r8b/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-linux-android-ld
> [0.228] fppkg.pp(396,1) Error: Error while linking
> [0.228] fppkg.pp(396,1) Fatal: There were 1 errors compiling module,
> stopping
> [0.233] Fatal: Compilation aborted
> 
> which ndk version do you use?

r8, but that's likely not the problem.

Can you retry the failing command? Can you give exact steps to
reproduce?

E.g. change into that last directory make reports (most likely fppkg, at
least it has always been that one at my place) and retry the failing
command as reported by fpmake.

Here, it looks like the following:
 <path_to_source_install>/compiler/ppcrossarm -Tandroid
-FEbin/arm-android -FUunits/arm-android
-Fu<path_to_source_install>/rtl/units/arm-android
-Fu<path_to_source_install>/packages/fcl-base/units/arm-android
-Fu<path_to_source_install>/packages/fcl-xml/units/arm-android
-Fu<path_to_source_install>/packages/fcl-process/units/arm-android
-Fu<path_to_source_install>/packages/fcl-net/units/arm-android
-Fu<path_to_source_install>/packages/fcl-passrc/units/arm-android
-Fu<path_to_source_install>/packages/paszlib/units/arm-android
-Fu<path_to_source_install>/packages/hash/units/arm-android
-Fu<path_to_source_install>/packages/fppkg/units/arm-android
-Fu<path_to_source_install>/packages/fpmkunit/units/arm-android
-Tandroid -Parm -XParm-linux-androideabi- -Xr -Ur -Xs -O2 -n
-Fu<path_to_source_install>/rtl/units/arm-android
-Fu<path_to_source_install>/packages/paszlib/units/arm-android
-Fu<path_to_source_install>/packages/fcl-process/units/arm-android
-Fu<path_to_source_install>/packages/hash/units/arm-android
-Fu<path_to_source_install>/packages/fpmkunit/units/arm-android
"-Fl<path_to_source_install>/ndklib" -darm -dRELEASE -viq fppkg.pp

and show me the results.

Otherwise, provide me with exact steps to reproduce, and the compilation
logs (e.g. compressed here, or best via pastebin).
I cannot diagnose without a more exact failure message. Just "it does
not work" is too little.

Also please give the command line you use to build again.

The one I use is:

make clean crosszipinstall PP=i386-linux-ppc386
CROSSOPT=-Fl<path_to_source_install>/ndklib OS_TARGET=android
CPU_TARGET=i386 BINUTILSPREFIX=arm-linux-androideabi-

This results in a fpc-2.7.1.i386-android.tar.gz.

Note that I have all tools, e.g. i386-linux-ppc386 executable and the
binutils in the path. Further I copied the ndk libs into the local
"ndklib" directory. (Just to save typing).

(You may want to add CROSSOPT=-Cfsse3 if you actually want to use the
output then though, but these should be fine for testing compilation)

Thomas





More information about the fpc-devel mailing list