[fpc-devel]Building the PalmOS cross compiler...

Peter Vreman peter at freepascal.org
Tue Sep 4 15:22:35 CEST 2001


> >> make CPU_TARGET=m68k OS_TARGET=palmos
> >>
> >> in the compiler dir. This will create a cross-compiler for palmos.
> >>
> >
> > I get this when I try that...
> >
> > ppc386   -dGDB -dBROWSERLOG -Tpalmos -Fum68k -Futargets -Fim68k -FE.
> > -dm68k pp.pas
> > Error: Illegal parameter: -Tpalmos
> 
> Ok, leave out the "OS_TARGET=palmos" then while compiling the compiler 
> (you'll still have to use it when compiling the rtl). The reason that 
> this doesn't work is that 1.0.4 didn't have palmos support yet.

The makefiles are not yet good to build a cross compiler easily. For example in the
compiler/Makefile.fpc the usage of CPU_TARGET is used for selecting the supported cpu of
the target compiler instead of the processor type that the executable needs to run on.

To create a cross compiler you now need to run "make CPU_TARGET=m68k" in the compiler
directory. This will give you a ppc68k.exe that can create m68k code and supports the m68k
targets. You can then use this ppc68k.exe to compile the palmos rtl using "make FPC=<path
to>/ppc68k.exe" in the rtl/palmos directory









More information about the fpc-devel mailing list