[fpc-pascal] fpmake compiles the same unit multiple times

Graeme Geldenhuys graeme at geldenhuys.co.uk
Wed Oct 17 12:08:22 CEST 2012


Hi,

I'm using FPC 2.6.0 and have a fpmake.pas program for fpGUI. To be
honest I don't really use it, but to keep it up to date. Anyway, I
noticed that if I do a 'fpmake build', that fpmake compiles many of my
units multiple times. Anywhere from 2-4 times. I double checked my
fpmake.pas unit, and I haven't added those units multiple times in the
code, so why is fpmake building them more than once?

The fpmake.pas unit in question can be viewed at the following URL with
your web browser:

  https://github.com/graemeg/fpGUI/blob/master/src/fpmake.pas


Belowo you can see the fpmake output. The first part is going well...
units are only compiled once. But then later most units are compiled 2-4
times??

--------------------------------------------
[src (wip)]$ ./fpmake build -UG
/home/graemeg/devel/fpc-2.6.0/x86_64-linux/lib/fpc/2.6.0/units/x86_64-linux/
Start building package fpgui for target x86_64-linux.
       Compiling corelib/fpg_base.pas
       Compiling ./corelib/x11/fpg_impl.pas
       Compiling corelib/fpg_main.pas
       Compiling ./corelib/x11/fpg_interface.pas
       Compiling ./corelib/x11/fpg_x11.pas
       Compiling ./corelib/x11/fpg_xft_x11.pas
       Compiling ./corelib/x11/fpg_netlayer_x11.pas
       Compiling corelib/fpg_main.pas
       Compiling ./corelib/x11/fpg_interface.pas
       Compiling corelib/fpg_imgfmt_bmp.pas
       Compiling corelib/fpg_utils.pas
...snip...
       Compiling gui/fpg_spinedit.pas
       Compiling gui/fpg_spinedit.pas
       Compiling gui/fpg_colorwheel.pas
       Compiling gui/fpg_colorwheel.pas
       Compiling gui/fpg_colormapping.pas
       Compiling gui/fpg_colormapping.pas
       Compiling gui/fpg_editbtn.pas
       Compiling reportengine/u_command.pas
       Compiling reportengine/u_pdf.pas
       Compiling reportengine/u_report.pas
       Compiling reportengine/u_command.pas
       Compiling reportengine/u_visu.pas
       Compiling reportengine/u_reportimages.pas
       Compiling reportengine/u_reportimages.pas
       Compiling reportengine/u_pdf.pas
       Compiling reportengine/u_report.pas
       Compiling reportengine/u_report.pas
       Compiling reportengine/u_visu.pas
       Compiling reportengine/u_visu.pas
[100%] Built target fpgui
--------------------------------------------


Regards,
  - Graeme -



More information about the fpc-pascal mailing list