[fpc-devel] rev 19036 breaks the Android cross-compiler

Thomas Schatzl tom_at_work at gmx.at
Tue Nov 15 21:33:30 CET 2011


Hi,

Am 15.11.2011 21:13, schrieb Florian Klämpfl:
> Am 15.11.2011 21:12, schrieb Jonas Maebe:
>>
>> On 15 Nov 2011, at 21:06, Florian Klämpfl wrote:
>>
>>> I dn't know if this is a good long term solution: I fear too much
>>> duplication with having a seperate android target. I'd prefer an
>>> FPC_ANDROID define, I don't think that it will pollute the rtl and
>>> considering that there are a lot of arm "sub architectures" out
>>> there having an own target for each of them isn't a good idea
>>> either. Maybe we can even introduce some SUBARCH in the long term
>>> into our build system.
>>
>> Android isn't a different architecture (if you consider native
>> applications), but a different OS. It uses a Linux kernel (although
>> even that one is heavily patched, afaik), and user land is obviously
>> quite different (including the C library and the dynamic linker).
>
> But gcc considers it as arm-linux-eabi as well, no?

No, it's a target called arm-android-eabi.

$ ./arm-linux-androideabi-gcc -v
Using built-in specs.
Target: arm-linux-androideabi
Configured with: /tmp/ndk-digit/src/build/../gcc/gcc-4.4.3/configure 
--prefix=/usr/local/google/digit/repo/opensource/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 
--target=arm-linux-androideabi --host=x86_64-linux-gnu 
--build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld 
--enable-languages=c,c++ 
--with-gmp=/tmp/ndk-digit/build/toolchain/temp-install 
--with-mpfr=/tmp/ndk-digit/build/toolchain/temp-install --disable-libssp 
--enable-threads --disable-nls --disable-libmudflap --disable-libgomp 
--disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared 
--disable-tls --with-float=soft --with-fpu=vfp --with-arch=armv5te 
--enable-target-optspace --enable-initfini-array --disable-nls 
--prefix=/usr/local/google/digit/repo/opensource/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 
--with-sysroot=/usr/local/google/digit/repo/opensource/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/sysroot 
--with-binutils-version=2.20.1 --with-mpfr-version=2.4.1 
--with-gmp-version=4.2.4 --with-gcc-version=4.4.3 --with-gdb-version=6.6 
--with-arch=armv5te 
--program-transform-name='s,^,arm-linux-androideabi-,'
Thread model: posix
gcc version 4.4.3 (GCC)


Thomas




More information about the fpc-devel mailing list