Sign in Join

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

Mailing lists / lazarus / 2012-03

Updates to Synedit and 64 bit have linking problems

10 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

ik

Hello,

I tried to compile Lazarus today from svn (after two weeks of not updating it), and got the following error message: lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and operands

It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas Line 722 for the code of:

Result := FoldBlockEndLevel(ALineIndex, AFilter) -
FoldBlockMinLevel(ALineIndex, AFilter);

I'm attaching patch to fix it.

Ido
-------------- next part --------------
A non-text attachment was scrubbed...
Name: synedithighlighterfoldbase.pas.patch.gz
Type: application/x-gzip
Size: 391 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120318/cfb7ed35/attachment.bin>

Reply by email

Mattias Gaertner
to ik
Show quoted text 13 lines
Hello, I tried to compile Lazarus today from svn (after two weeks of not updating it), and got the following error message: lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and operands It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas Line 722 for the code of: Result := FoldBlockEndLevel(ALineIndex, AFilter) - FoldBlockMinLevel(ALineIndex, AFilter);

It compiles here.
What compiler version has problems with it?

I'm attaching patch to fix it.

Mattias

Reply by email

ik
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Sun, 18 Mar 2012 10:50:27 +0200 ik wrote: > Hello, > > I tried to compile Lazarus today from svn (after two weeks of not > updating it), and got the following error message: > lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) > Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and > operands > > It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas > Line 722 for the code of: > > Result := FoldBlockEndLevel(ALineIndex, AFilter) - > FoldBlockMinLevel(ALineIndex, AFilter); It compiles here. What compiler version has problems with it?

2.6.0 x86_64

Show quoted text 12 lines
> I'm attaching patch to fix it. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Sergei Gorelkin
to Mattias Gaertner: On Sun, 18 Mar 2012 10:50:27 +0200 It compiles here. What compiler version has problems…

18.03.2012 14:08, Mattias Gaertner ?????:

Show quoted text 20 lines
On Sun, 18 Mar 2012 10:50:27 +0200 ik wrote: > Hello, > > I tried to compile Lazarus today from svn (after two weeks of not > updating it), and got the following error message: > lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) > Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and > operands > > It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas > Line 722 for the code of: > > Result := FoldBlockEndLevel(ALineIndex, AFilter) - > FoldBlockMinLevel(ALineIndex, AFilter); It compiles here. What compiler version has problems with it?

This bug (Mantis #20850) has been fixed in FPC revision 19848. IIRC you also need to compile with -O2 to trigger it.

Regards,
Sergei

Reply by email

Martin
to ik: I tried to compile Lazarus today from svn (after two weeks of not updating it), and got…
ik wrote 16 lines
Hello, I tried to compile Lazarus today from svn (after two weeks of not updating it), and got the following error message: lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and operands It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas Line 722 for the code of: Result := FoldBlockEndLevel(ALineIndex, AFilter) - FoldBlockMinLevel(ALineIndex, AFilter); I'm attaching patch to fix it.

Which FPC version?

Have you created an FPC bug report? This is clearly an FPC bug.

Reply by email

Martin
to ik: I tried to compile Lazarus today from svn (after two weeks of not updating it), and got…
ik wrote 16 lines
Hello, I tried to compile Lazarus today from svn (after two weeks of not updating it), and got the following error message: lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and operands It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas Line 722 for the code of: Result := FoldBlockEndLevel(ALineIndex, AFilter) - FoldBlockMinLevel(ALineIndex, AFilter); I'm attaching patch to fix it.

Seen the responses.

Since it seems to affect the current release, I am willing ta apply a workaround patch, but:
- the workaround should be IFDEF to the affected Target CPU
- must have a comment: "Todo: workaround for bug xxxxx. Remove when 2.6.2 is released"

Reply by email

ik
to Martin
Martin wrote 26 lines
On 18/03/2012 08:50, ik wrote: > > Hello, > > I tried to compile Lazarus today from svn (after two weeks of not > updating it), and got the following error message: > lazarus/components/synedit/synedithighlighterfoldbase.pas(722,13) > Error: Asm: [movsxd mem64,reg32] invalid combination of opcode and > operands > > It happens at lazarus/components/synedit/synedithighlighterfoldbase.pas > Line 722 for the code of: > > Result := FoldBlockEndLevel(ALineIndex, AFilter) - > FoldBlockMinLevel(ALineIndex, AFilter); > > I'm attaching patch to fix it. > Seen the responses. Since it seems to affect the current release, I am willing ta apply a workaround patch, but: - ?the workaround should be IFDEF to the affected Target CPU - ?must have a comment: ?"Todo: workaround for bug xxxxx. Remove when 2.6.2 is released"

I'ved attached the the patch as you guided.

Show quoted text 9 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: synedithighlighterfoldbase.pas.patch.gz
Type: application/x-gzip
Size: 584 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120319/cd892dba/attachment.bin>

Reply by email

Martin
to ik
ik wrote 11 lines
On Sun, Mar 18, 2012 at 15:36, Martin wrote: > On 18/03/2012 08:50, ik wrote: > Seen the responses. > > Since it seems to affect the current release, I am willing ta apply a > workaround patch, but: > - the workaround should be IFDEF to the affected Target CPU > - must have a comment: "Todo: workaround for bug xxxxx. Remove when 2.6.2 > is released" I'ved attached the the patch as you guided.

Applied.

Changed and limited to CPU64

Reply by email

ik
to Martin
Martin wrote 20 lines
On 19/03/2012 16:27, ik wrote: > > On Sun, Mar 18, 2012 at 15:36, Martin ?wrote: >> >> On 18/03/2012 08:50, ik wrote: >> Seen the responses. >> >> Since it seems to affect the current release, I am willing ta apply a >> workaround patch, but: >> - ?the workaround should be IFDEF to the affected Target CPU >> - ?must have a comment: ?"Todo: workaround for bug xxxxx. Remove when >> 2.6.2 >> is released" > > I'ved attached the the patch as you guided. > Applied. Changed and limited to CPU64

Thank you

Show quoted text 7 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Vincent Snijders
to ik

Op 20 maart 2012 00:15 heeft ik het volgende geschreven:

Show quoted text 23 lines
On Tue, Mar 20, 2012 at 00:54, Martin wrote: > On 19/03/2012 16:27, ik wrote: >> >> On Sun, Mar 18, 2012 at 15:36, Martin ?wrote: >>> >>> On 18/03/2012 08:50, ik wrote: >>> Seen the responses. >>> >>> Since it seems to affect the current release, I am willing ta apply a >>> workaround patch, but: >>> - ?the workaround should be IFDEF to the affected Target CPU >>> - ?must have a comment: ?"Todo: workaround for bug xxxxx. Remove when >>> 2.6.2 >>> is released" >> >> I'ved attached the the patch as you guided. >> > > Applied. > > Changed and limited to CPU64 Thank you
{$IF (FPC_FULLVERSION = 2060) or (FPC_FULLVERSION = 20501)}
The above contains a typo: 2060 -> 20600.
Maybe easier to read (I think the compiler accepts it too):
{$IF FPC_FULLVERSION <= 20600}

Vincent

Reply by email