[fpc-devel] Building a WinCE cross-compiler

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Jun 10 11:12:14 CEST 2010


Hello,

I am trying to build revisions between FPC 2.2.2 and FPC 2.2.0. Those
should be wince cross-compilers. For this initial part consider that I
am building rev11490 from fixes_2_2 which should correspond to FPC
2.2.2 using FPC 2.2.0 as the starting compiler.

The problem is that I used to do a "make cycle" and things would work
fine, but using this combination I now get errors while building
packages/hash

I don't need all packages, I just need all those necessary for
Lazarus, although I am not sure which ones that is. Any ideas how I
can specify that packages/hash shouldn't be built, although I still
want all / most other packages to be built and installed?

I tryed to just delete the directory, but then make says that it is in
an unknown directory and quits =(

Here is my current script, which is strongly based on the script which
creates the Lazarus cross-installer. It also stops with errors in
packages/hash

PATH=C:\Programas\Lazarus24\fpc\2.2.0\bin\i386-win32\
mkdir C:\Programas\fpc_fixes_2_2\bin\
rm -rf *.exe

:: create a native compiler + utils
make compiler_cycle

FOR /F %%L IN ('compiler\utils\fpc.exe -PB') DO SET
COMPILER=C:\Programas\fpc_fixes_2_2\compiler\%%L
FOR /F %%L IN ('%COMPILER% -iSO') DO SET FPCSourceOS=%%L
FOR /F %%L IN ('compiler\utils\fpc.exe -PARM -PB') DO SET PPCNAME=%%L

:: rebuild the rtl without WPO information
make rtl_clean rtl PP=%COMPILER%
make -C utils/fpcm all FPC=%COMPILER%

make compiler FPC=%COMPILER% PPC_TARGET=arm EXENAME=%PPCNAME%
SET COMPILER=compiler\%PPCNAME%
SET CPU_TARGET=arm
SET OS_TARGET=wince

make -C rtl clean FPC=%COMPILER%
make -C packages clean FPC=%COMPILER%
make rtl packages FPC=%COMPILER%

FOR /F %%L IN ('%COMPILER% -iV') DO SET FPCVERSION=%%L
FOR /F %%L IN ('%COMPILER% -iW') DO SET FPCFULLVERSION=%%L

SET INSTALL_BASE=C:\Programas\fpc_fixes_2_2\bin\
SET INSTALL_BINDIR=C:\Programas\fpc_fixes_2_2\bin\

make rtl_install packages_install
FPCMAKE=%FPCSVNDIR%\fpcsrc\utils\fpcm\fpcmake.exe
INSTALL_PREFIX=%INSTALL_BASE% FPC=%COMPILER%

copy %COMPILER% %INSTALL_BINDIR%

pause

thanks,
-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list