[Lazarus] [Ubuntu 12.04 x64] Can't build Lazarus

Martin lazarus at mfriebe.de
Wed Aug 8 16:02:44 CEST 2012


On 08/08/2012 14:28, Kjow wrote:
> I'm trying to build Lazarus 1.0 RC1
> (https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.0RC1/).
> I want to install a component (GLScene).
>
> When I do "Optimized IDE" build I get this error:
>
> Compiling syneditmarkupwordgroup.pp
> Compiling synedithighlighterfoldbase.pas
> /usr/share/lazarus/1.0RC1/components/synedit/synedithighlighterfoldbase.pas(739,13)
> Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and
> operands
> /usr/share/lazarus/1.0RC1/components/synedit/synedithighlighterfoldbase.pas(756,13)
> Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and
> operands
> /usr/share/lazarus/1.0RC1/components/synedit/synedithighlighterfoldbase.pas(1,1)
> Fatal: There were 2 errors compiling module, stopping

Looks like an error in FPC.

And there already is a workaround in the lazarus source. But it is 
conditional

And it looks there is a typo. Open the unit and find:

{$IFDEF CPU64}
{$IF (FPC_FULLVERSION = 2060) or (FPC_FULLVERSION = 20501)}
   {$DEFINE ISSUE_20850 }
{$ENDIF}
{$ENDIF}


replace  2060 with 20600




More information about the Lazarus mailing list