* * *

Author Topic: fpc sources from trunk #35484 fails to build  (Read 708 times)

ertank

  • Full Member
  • ***
  • Posts: 104
fpc sources from trunk #35484 fails to build
« on: February 27, 2017, 04:51:03 pm »
Hi,

I received following error during build:
Code: [Select]
Compiling .\fcl-db\src\datadict\fpddoracle.pp
Compiling .\fcl-db\src\sqldb\postgres\pqconnection.pp
Writing Resource String Table file: pqconnection.rsj
Compiling .\fcl-db\src\datadict\fpddpq.pp
Compiling .\fcl-db\src\sqldb\mssql\mssqlconn.pp
Compiling .\fcl-db\src\datadict\fpddmssql.pp
Compiling .\fcl-db\src\sqldb\sqlite\sqlite3conn.pp
sqlite3conn.pp(780,37) Error: Identifier not found "StrToUTF8"
sqlite3conn.pp(1108) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

make[2]: *** [smart] Error 1
make[2]: Leaving directory `C:/DevelopmentLazarus/fpc/packages'
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `C:/DevelopmentLazarus/fpc'
make: *** [build-stamp.i386-win32] Error 2

I don't think that StrToUTF8 is missing. Most likely not included in uses list.

I would like to learn if this is a known problem, or needs fixing by me?

Thanks & regards,
Ertan

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5537
Re: fpc sources from trunk #35484 fails to build
« Reply #1 on: February 27, 2017, 05:13:08 pm »
I compiled FPC (including fcl-db) yesterday and that worked fine, and there have been only one or two commits since in other areas of the repository.

So my initial guess would be that you are doing something wrong, since that file was last modified  2016-11-25

ertank

  • Full Member
  • ***
  • Posts: 104
Re: fpc sources from trunk #35484 fails to build
« Reply #2 on: February 27, 2017, 05:36:00 pm »
Build script I am using is below. It is single line calling build.
My ppc386.exe version is 3.0.1.
My make version is GNU Make 3.82
I have no data2inc.exe but data2inc.exm file in my utils directory. I do not know if that is the problem.

Other than above I couldn't figure my mistake. I appreciate any help on figuring that out.

Code: [Select]
@echo on
set myroot=c:\DevelopmentLazarus
set myFPC=%myroot%\fpc
set mybinutils=C:\DevelopmentLazarus\binutils
set PATH=%mybinutils%\i386-win32;%myFPC%\bin\i386-win32;%PATH%
cd %myFPC%
rd /s /q  %myfpc%\examples
make clean all install INSTALL_PREFIX=%myFPC% PP=%mybinutils%\ppc386.exe DATA2INC=%myFPC%\utils\data2inc.exe

Thanks & regards,
Ertan

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5537
Re: fpc sources from trunk #35484 fails to build
« Reply #3 on: February 27, 2017, 05:40:33 pm »
My ppc386.exe version is 3.0.1.

The only guaranteed compiler is the last release, which is currently 3.0.2

Quote
My make version is GNU Make 3.82
I have no data2inc.exe but data2inc.exm file in my utils directory. I do not know if that is the problem.

Formally you need a full install of the last release to cycle, and if you have figuring out what goes wrong when buiilding a new version I'd advise you to follow that practice.


Quote
Other than above I couldn't figure my mistake. I appreciate any help on figuring that out.

From what you show I can't figure it out too, unless somehow the install step somehow recompiles with the old (3.0.1) compiler. 

You could try to move any old units/ hierarchies away to make sure nothing is accidentally recycled.


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus