Sign in Join

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

Mailing lists / fpc-devel / 2010-06

Building a WinCE cross-compiler

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

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

Reply by email

Henry Vermaak
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 18 lines
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 =(

Have you tried to remove the "hash" from the "dirs=" line in Makefile.fpc and then regenerate the makefiles?

Henry

Reply by email

Henry Vermaak
to Henry Vermaak
Henry Vermaak wrote 23 lines
On 10 June 2010 10:12, Felipe Monteiro de Carvalho wrote: > 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 =( Have you tried to remove the "hash" from the "dirs=" line in Makefile.fpc and then regenerate the makefiles?

Hmm, you might have to remove the zlib and ldap targets, too, search for hash in Makefile.fpc.

Reply by email