[fpc-pascal] Building Android cross compiler error

Ryan Joseph ryan at thealchemistguild.com
Tue Feb 23 03:34:04 CET 2016


I’ve downloaded FPC 3.0.0 and updated the sources from SVN then downloaded the Android NDK (Mac OS X 64-bit was the only option for Mac). The script seems to work but I’m getting this error after compiling for some time.

Any ideas what’s going on?

======

cd /Developer/ObjectivePascal/fpc
INSTALL_PATH=/Developer/Android
PATH=$PATH:$INSTALL_PATH/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin

make clean all crossinstall OS_TARGET=android CPU_TARGET=arm CROSSOPT="-Cfvfpv3" INSTALL_PREFIX=$INSTALL_PATH

=====

/Developer/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ld.bfd: cannot find -lc
pp.pas(219,36) Error: Error while linking
pp.pas(219,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [ppcarm] Error 1
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.arm-android] Error 2


Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list