[fpc-devel] Problem building FPC Android crosscompiler in Windows

Sergio Flores relfos at gmail.com
Tue Jun 24 15:02:39 CEST 2014


I've been trying to build a Android compiler for Windows from the latest
SVN sources.
It all goes quite fast, however it hangs when compiling rtl-unicode package.

[ 85%] Compiled package rtl-console
Start compiling package rtl-unicode for target arm-android.
       Compiling rtl-unicode\BuildUnit_rtl_unicode.pp
       Compiling .\rtl-unicode\src\inc\cpbuildu.pp
       Compiling .\rtl-unicode\src\inc\cp932.pas
       Compiling .\rtl-unicode\src\inc\cp936.pas

I left the compilation running almost 30 minutes, nothing happened, no
errors message nothing, just hangs on that file.
I tried this with FPC 2.6.0, 2.6.2 and 2.6.4, all have same problem.

I'm building with this command:
set OPTS=-gl -dSAX_HTML_DEBUG -dUSE_MINGW_GDB
set COMMONOPTS=UPXPROG=echo COPYTREE=echo OPT="%OPTS%" GINSTALL=myinst.exe
make clean crossall crossinstall OS_TARGET=android CPU_TARGET=arm
CROSSOPT="-CfVFPV3" %COMMONOPTS% INSTALL_PREFIX=%INSTALLDIR% FPC=%FPCSTART%

I also though it could be a problem of the Android NDK since I was using a
old NDK.
I upgraded to latest NDK, and tried it, both 4.6 and 4.8 ABI, the problem
persists.

Some details about the part where the compilation hangs:
cp936.s is generated
cp936.o is generated
cp936.ppu is not generated

What could cause this?
I can sucessfull run the assembler externally on the .s file and it works
fine. Not sure what other NDK tools are invoked during compilation, any way
to have a verbose compilation mode that shows what is currently being
called?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140624/7a743f25/attachment.html>


More information about the fpc-devel mailing list