[fpc-devel] targetandroid - x86 as target cpu

Thomas Schatzl tom_at_work at gmx.at
Thu Aug 9 10:18:04 CEST 2012


On Tue, 2012-08-07 at 21:03 +0200, Dennis Spreen wrote:
> ok, with CPU_TARGET_i386 it works (not need for fpcmake -r), but then
> fails before linking, because the link.res file contains illegal characters:
> ...
> /home/dennis/fpc/targetandroid/2.7.1/units/i386-android/rtl/dllprt0.o
> build/ndkopengltest.o)
> INPUT(?????????????????????????Android/libs/x86/ndkopengltest.def????)
> whereas ?? are some illegal characters, thus ld complains:
> Android/libs/x86/link.res: file not recognized: File format not recognized
> I'm using
> GNU ld (GNU Binutils for Ubuntu)
> Any help is welcome ,-)

Fixed in latest revision (that particular bug in r22045). Also added the
missing rtl/android/i386 files. Additionally merged with r22040 from

I only checked whether you can build linux/i386 crosscompilers
(i386-android and arm-android). I did not do basic functional checks.

Note that executables linked with libc/bionic likely do not work, I had
to patch them to make them at least link correctly; not sure why it
worked previously for arm/android. This should not affect shared
libraries using libc (I think :). I.e. what you want for an android


More information about the fpc-devel mailing list