Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-06

Problem building FPC Android crosscompiler in Windows

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sergio Flores

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?

Reply by email