Recent

Author Topic: Compile error  (Read 487 times)

totya

  • Hero Member
  • *****
  • Posts: 643
Compile error
« on: October 24, 2020, 08:38:31 pm »
Hi!

I can't compile the rev7645, reason two errors:

Quote
win32richmemoproc.pas(784,22) Error: Incompatible types: got "<address of function(PDWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"
win32richmemoproc.pas(812,22) Error: Incompatible types: got "<address of function(PDWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"

Lazarus CLEAN install toady via fpcupdeluxe x64 1.8.2c fixes/fixes (latest:47152/64032) branch on Win10 Pro x64

Leledumbo

  • Hero Member
  • *****
  • Posts: 8279
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Compile error
« Reply #1 on: October 27, 2020, 04:29:26 am »
Just `svn up` or report if it's still there, from time to time there will be broken commits, either due to sleepiness or unawareness (i.e. a change that works in one platform breaks another).

totya

  • Hero Member
  • *****
  • Posts: 643
Re: Compile error
« Reply #2 on: October 27, 2020, 09:09:48 pm »
Just `svn up` or report if it's still there, from time to time there will be broken commits, either due to sleepiness or unawareness (i.e. a change that works in one platform breaks another).

Hi! I reported conflict between the "fixes" branch and this component. Fixes is the best choice as I know. Thank you.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1361
Re: Compile error
« Reply #3 on: October 27, 2020, 10:13:39 pm »
This is just a RichEdit problem. Patch included.

totya

  • Hero Member
  • *****
  • Posts: 643
Re: Compile error
« Reply #4 on: October 29, 2020, 09:13:54 pm »
This is just a RichEdit problem. Patch included.

Hi, thank you, but how can I apply this patch?

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3886
  • I like bugs.
Re: Compile error
« Reply #5 on: October 29, 2020, 10:06:27 pm »
Hi, thank you, but how can I apply this patch?
Use "patch" command or TortoiseMerge.
 https://wiki.freepascal.org/Creating_A_Patch#Applying_a_patch
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux.

totya

  • Hero Member
  • *****
  • Posts: 643
Re: Compile error
« Reply #6 on: October 30, 2020, 06:50:01 pm »
Hi, thank you, but how can I apply this patch?
Use "patch" command or TortoiseMerge.
 https://wiki.freepascal.org/Creating_A_Patch#Applying_a_patch

Thanks, but filename is "fpcuppatch"... but nevermind, I can do it with svn gui. The result isn't perfect yet:

Quote
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(770,10) Error: (4054) Illegal type conversion: "LongWord" to "TStream"
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(784,22) Error: (4001) Incompatible types: got "<address of function(LongWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(798,10) Error: (4054) Illegal type conversion: "LongWord" to "TStream"
C:\lazarus\components\richmemo_svn\.\win32\win32richmemoproc.pas(812,22) Error: (4001) Incompatible types: got "<address of function(LongWord;PByte;LongInt;var LongInt):DWord;StdCall>" expected "<procedure variable type of function(QWord;PByte;LongInt;var LongInt):DWord;StdCall>"
win32richmemoproc.pas(1130) Fatal: (10026) There were 4 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: C:\lazarus\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode

A few months ago I can't use the fixes branch, I never tought it can happen ever.

 

TinyPortal © 2005-2018