Sign in Join

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

Mailing lists / fpc-devel / 2010-04

Error compiling fpc trunk after changes

3 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

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

Luiz Americo Pereira Camara

I added EditMask property to TField in fpc trunk. To be Delphi compatible i created a type TEditMask in MaskUtils unit, so the need to put MaskUtils in the uses of db.

After trying to compile (make install) the following error occurs (maskutils not found). Some notes
- fcl-base is a dependency in the Makefile of fcl-db
- the unit maskutils is compiled (.ppu and .o files are created in fcl-base/units)

make -C src/sdf smart
make[4]: Entering directory
`D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' make all LINKSMART=1 CREATESMART=1
make[5]: Entering directory
`D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' D:/repositories/fpc_trunk/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n -FuD:/repos
itories/fpc_trunk/rtl/units/i386-win32 -FE.
-FUD:/repositories/fpc_trunk/package
s/fcl-db/units/i386-win32 -gl -di386 -dRELEASE sdfdata.pp Fatal: Can't find unit maskutils used by db
Fatal: Compilation aborted
make[5]: *** [sdfdata.ppu] Error 1
make[5]: Leaving directory
`D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' make[4]: *** [fpc_smart] Error 2
make[4]: Leaving directory
`D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' make[3]: *** [src/sdf_smart] Error 2
make[3]: Leaving directory `D:/repositories/fpc_trunk/packages/fcl-db' make[2]: *** [fcl-db_smart] Error 2
make[2]: Leaving directory `D:/repositories/fpc_trunk/packages' make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `D:/repositories/fpc_trunk' make: *** [build-stamp.i386-win32] Error 2

Compiling under windows xp with fpc240

Patch follows:

Reply by email

Luiz Americo Pereira Camara
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote 6 lines
I added EditMask property to TField in fpc trunk. To be Delphi compatible i created a type TEditMask in MaskUtils unit, so the need to put MaskUtils in the uses of db. After trying to compile (make install) the following error occurs (maskutils not found).

Can someone apply the patch and see if compiles, so it'll be possible to say if the problem is in my setup or not?

This is a Delphi compatibility fix necessary to implement some features in Lazarus

Luiz

Reply by email

Luiz Americo Pereira Camara
to Luiz Americo Pereira Camara: I added EditMask property to TField in fpc trunk. To be Delphi compatible i created a…
Luiz Americo Pereira Camara wrote
I added EditMask property to TField in fpc trunk. To be Delphi compatible i created a type TEditMask in MaskUtils unit, so the need to put MaskUtils in the uses of db.

For the record, i've found the problem. The db unit is recompiled while compiling sdfdata. While the definitive fix is not recompile the db unit, adding fcl-base as a requirement in the makefiles resolves the problem.

The patches were uploaded in http://bugs.freepascal.org/view.php?id=16555

Luiz

Show quoted text 41 lines
After trying to compile (make install) the following error occurs (maskutils not found). Some notes - fcl-base is a dependency in the Makefile of fcl-db - the unit maskutils is compiled (.ppu and .o files are created in fcl-base/units) make -C src/sdf smart make[4]: Entering directory `D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' make all LINKSMART=1 CREATESMART=1 make[5]: Entering directory `D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' D:/repositories/fpc_trunk/compiler/ppc386.exe -XX -CX -Ur -Xs -O2 -n -FuD:/repos itories/fpc_trunk/rtl/units/i386-win32 -FE. -FUD:/repositories/fpc_trunk/package s/fcl-db/units/i386-win32 -gl -di386 -dRELEASE sdfdata.pp Fatal: Can't find unit maskutils used by db Fatal: Compilation aborted make[5]: *** [sdfdata.ppu] Error 1 make[5]: Leaving directory `D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' make[4]: *** [fpc_smart] Error 2 make[4]: Leaving directory `D:/repositories/fpc_trunk/packages/fcl-db/src/sdf' make[3]: *** [src/sdf_smart] Error 2 make[3]: Leaving directory `D:/repositories/fpc_trunk/packages/fcl-db' make[2]: *** [fcl-db_smart] Error 2 make[2]: Leaving directory `D:/repositories/fpc_trunk/packages' make[1]: *** [packages_smart] Error 2 make[1]: Leaving directory `D:/repositories/fpc_trunk' make: *** [build-stamp.i386-win32] Error 2 Compiling under windows xp with fpc240 Patch follows: ------------------------------------------------------------------------ _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email