[fpc-devel] FPC_HAS_FEATURE_RESOURCES and packages ?

Martin fpc at mfriebe.de
Mon Jun 28 16:15:26 CEST 2010


On 28/06/2010 14:48, Jonas Maebe wrote:
>> To me it's just time, I do not want to spent waiting....
>>
>>     make.exe  rtl  packages  compiler     OPTIMIZE=1 OPT="-O3 -Or 
>> -CpPENTIUMM -OpPENTIUMM"   FPC=C:\FPC\strunc\bin\i386-win32\ppc386.exe
>>
>> I ended up with that order, because if I recall correctly, make 
>> compiler did need the packages, or something like that?
>
> The compiler does not depend on packages. Furthermore, it's wrong to 
> compile the compiler only once. The main makefile does not use the 
> "compiler_cycle" just to test the compiler. It's a fundamental step of 
> the bootstrap process.
>
> I would strongly recommend to use the "make all" target unless you are 
> intimately familiar with the details of FPC's bootstrapping. You can 
> add NOWPOCYCLE=1 to speed it up a little.

Seems I have to do that.
Many thanks for the help.

as for my desire of building the compiler optimized and the rtl with 
debug info (Never tested if there is any gain in it, apart from the 
piece of mind which can be found in believe...).

After building the compiler, which now is;
  make.exe clean distclean
  make.exe all   LINKSMART=1  CREATESMART=1  OPTIMIZE=1  OPT="-O3 -Or 
-CpPENTIUMM -OpPENTIUMM"  TARGET_EXAMPLES=NO FPC=c:\FPC\SVN\ppc386_2_4_0.exe
  make.exe install  INSTALL_PREFIX=c:\FPC\strunc\  COPYTREE=echo 
UPXPROG=echo

I rebuild/reinstall the rtl/packages (using the fpc that was build above)
  make.exe rtl_clean packages_clean
  make.exe rtl packages    LINKSMART=1  CREATESMART=1  DEBUG=1 
OPTIMIZE=0  OPT="-gl -gw -godwarfsets -O1" 
FPC=c:\FPC\strunc\bin\i386-win32\fpc.exe   TARGET_EXAMPLES=NO
  make.exe rtl_install packages_install INSTALL_PREFIX=c:\FPC\strunc\  
COPYTREE=echo UPXPROG=echo  FPC=c:\FPC\strunc\bin\i386-win32\fpc.exe


How much trouble are I am in for? It appears to have worked fine until now.

Martin



More information about the fpc-devel mailing list