Sign in Join

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

Mailing lists / lazarus / 2015-01

Lazarus 1.2 not compiling with FPC 3.0.1

9 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Anthony Walter

There was a recent announcement on the free pascal mailing list that a new 3.0 branch of the FPC was committed to svn.

I decided to checkout a copy of the branch and using it with the latest official release of Lazarus, which I believe is 1.2.

The problem is I get errors when I "make all" on Lazarus 1.2.

Here are the svn repositories I checked out:

http://svn.freepascal.org/svn/fpc/branches/fixes_3_0 http://svn.freepascal.org/svn/lazarus/branches/fixes_1_2

Here is a listing of the "make all" output:

make -C packager/registration
make[1]: Entering directory
`/home/delluser/Development/Base/lazarus/packager/registration' /bin/rm -f ../units/x86_64-linux/fcllaz.ppu
/home/delluser/Development/Base/fpc/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pas Hint: Start of reading config file
/home/delluser/Development/Base/fpc/bin/fpc.cfg
Hint: End of reading config file
/home/delluser/Development/Base/fpc/bin/fpc.cfg
Free Pascal Compiler version 3.0.1 [2015/01/10] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for x86-64
Compiling fcllaz.pas
fcllaz.pas(10,16) Hint: Unit "db" not used in fcllaz fcllaz.pas(10,40) Hint: Unit "eventlog" not used in fcllaz fcllaz.pas(10,50) Hint: Unit "XMLConf" not used in fcllaz 21 lines compiled, 0.1 sec
5 hint(s) issued
/bin/cp -f Makefile.compiled ../units/x86_64-linux/FCL.compiled make[1]: Leaving directory
`/home/delluser/Development/Base/lazarus/packager/registration' make -C components/lazutils
make[1]: Entering directory
`/home/delluser/Development/Base/lazarus/components/lazutils' /bin/rm -f lib/x86_64-linux/lazutils.ppu
/home/delluser/Development/Base/fpc/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -Fu../../packager/units/x86_64-linux -Fu. -FE. -FUlib/x86_64-linux -Cg -dx86_64 lazutils.pas
Hint: Start of reading config file
/home/delluser/Development/Base/fpc/bin/fpc.cfg
Hint: End of reading config file
/home/delluser/Development/Base/fpc/bin/fpc.cfg
Free Pascal Compiler version 3.0.1 [2015/01/10] for x86_64 Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for x86-64
Compiling lazutils.pas
Compiling paswstring.pas
paswstring.pas(379,43) Error: Incompatible types: got "<address of procedure(PWideChar;var AnsiString;Int64);Register>" expected "TUnicodeStringManager.<procedure variable type of procedure(PWideChar;var RawByteString;Word;Int64);Register>"
paswstring.pas(380,43) Error: Incompatible types: got "<address of procedure(PChar;var WideString;Int64);Register>" expected "TUnicodeStringManager.<procedure variable type of procedure(PChar;Word;var WideString;Int64);Register>"
paswstring.pas(418,46) Error: Incompatible types: got "<address of procedure(PWideChar;var AnsiString;Int64);Register>" expected "TUnicodeStringManager.<procedure variable type of procedure(PUnicodeChar;var RawByteString;Word;Int64);Register>" paswstring.pas(419,46) Error: Incompatible types: got "<address of procedure(PChar;var UnicodeString;Int64);Register>" expected "TUnicodeStringManager.<procedure variable type of procedure(PChar;Word;var UnicodeString;Int64);Register>"
paswstring.pas(433) Fatal: There were 4 errors compiling module, stopping Fatal: Compilation aborted
make[1]: Leaving directory
`/home/delluser/Development/Base/lazarus/components/lazutils' -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150110/ad45e773/attachment.html>

Reply by email

Anthony Walter
to Anthony Walter

Oh, and here is an extra bit of information I neglected to mention. When I use FPC 3.0.1 to compile against the trunk version of Lazarus, there are no errors.

The point is, I think we should have a fixes version of Lazarus which can build with the new fixes 3.0 version of FPC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150110/ab94f2c2/attachment-0001.html>

Reply by email

zeljko
to Anthony Walter
Anthony Walter wrote 6 lines
Oh, and here is an extra bit of information I neglected to mention. When I use FPC 3.0.1 to compile against the trunk version of Lazarus, there are no errors. The point is, I think we should have a fixes version of Lazarus which can build with the new fixes 3.0 version of FPC.

Don't expect that lazarus 1.2 will be changed to be compileable with fpc 3.0 (in that case someone may ask same thing for lazarus 1.0). Trunk compiles with 3.0, so lazarus 1.4 will be able to compile with fpc-3.0.

zeljko

Reply by email

Mark Morgan Lloyd
to zeljko
zeljko wrote 11 lines
On 01/11/2015 04:23 AM, Anthony Walter wrote: > Oh, and here is an extra bit of information I neglected to mention. When > I use FPC 3.0.1 to compile against the trunk version of Lazarus, there > are no errors. > > The point is, I think we should have a fixes version of Lazarus which > can build with the new fixes 3.0 version of FPC. Don't expect that lazarus 1.2 will be changed to be compileable with fpc 3.0 (in that case someone may ask same thing for lazarus 1.0). Trunk compiles with 3.0, so lazarus 1.4 will be able to compile with fpc-3.0.

I'm currently trying to test some of the less-common architectures with the end-of-era 2.7.1 and Lazarus trunk. Obviously this is a personal effort, but on occasion some sort of marker indicating which version/revisions on the FPC and Lazarus svn systems /should/ work together would be useful.

I've had a lot of hardware problems over the last year, and in several cases finding the correct combination of compiler and LCL that would allow me to reconstruct a particular binary was tricky. I've spent a bit of time over the weekend working out ways that I can insert the svn revision numbers of all relevant parts (i.e. a project itself, FPC and Lazarus) into a binary when it's built, but that's not much help for some of the older binaries particularly those which had to be built with FPC 2.7.1 due to code generation issues.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Juha Manninen
to Anthony Walter: There was a recent announcement on the free pascal mailing list that a new 3.0 branch of…
Anthony Walter wrote 5 lines
There was a recent announcement on the free pascal mailing list that a new 3.0 branch of the FPC was committed to svn. I decided to checkout a copy of the branch and using it with the latest official release of Lazarus, which I believe is 1.2.

Lazarus 1.2 is soon history. Use the new branch for 1.4 instead : svn.freepascal.org/svn/lazarus/branches/fixes_1_4/ Bug reports for it are welcome.

Juha

Reply by email

FreeMan
to Anthony Walter

PLEASE !!!
who write installers, share uninstall script as well, no any info about where to file copied. why hide like a fusion formule ? for fpc , copied same files to /bin, usr/ xxx bla bla... my idea is, add in installed folder in fpc.cfg so no need to copy files. for permission, define new group and installer folder owner set this group name (group name can fpc or/and lazarus [like a firebird]) who wantto use fpc or lazarus, user add to this created to groups.

Anthony Walter wrote 14 lines
Juha, Okay great. It looks like the 1.4 branch you mentioned was created by mattias a few hours ago in revision 47333. I'll be building installers to test Lazarus 1.4 and FPC 3.0 momentarily. Installers will be for OSX, Linux, and Windows. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150112/7e712f1e/attachment.html>

Reply by email

Anthony Walter
to FreeMan

I've been building FPC 3.0 and Lazarus 1.4 from svn sources. Here are some problems.

First, all Linux builds seem to be working correctly.

On Windows though I encountered a few problems.

1) In lcl\interfaces\win32\win32callbacks.inc lines 1547 and 1571, the following cannot compile:

  ItemState := TOwnerDrawState(PDrawItemStruct(LParam)^.itemState);

2) There is a similar problem in lcl/grids.pas:

  cfg.SetValue(AKey + '/style/value', Integer(AFont.Style)); // around

line 1905

  AFont.Style:= TFontStyles(cfg.GetValue(AKey + '/style/value', 0)); //

around line 1913
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150112/6ff35170/attachment.html>

Reply by email

Gabor Boros
to Anthony Walter

2015.01.12. 8:36 keltez?ssel, Anthony Walter ?rta:

Show quoted text 18 lines
I've been building FPC 3.0 and Lazarus 1.4 from svn sources. Here are some problems. First, all Linux builds seem to be working correctly. On Windows though I encountered a few problems. 1) In lcl\interfaces\win32\win32callbacks.inc lines 1547 and 1571, the following cannot compile: ItemState := TOwnerDrawState(PDrawItemStruct(LParam)^.itemState); 2) There is a similar problem in lcl/grids.pas: cfg.SetValue(AKey + '/style/value', Integer(AFont.Style)); // around line 1905 AFont.Style:= TFontStyles(cfg.GetValue(AKey + '/style/value', 0)); // around line 1913

Hi,

Crosscompile working for me from Linux x86_64 to Windows i386-Win32 with FPC fixes_3_0 29421 and Lazarus fixes_1_4 47347.

Gabor

Reply by email