Recent

Author Topic: Getting new error when building in Lazarus  (Read 4921 times)

MISV

  • Hero Member
  • *****
  • Posts: 783
Getting new error when building in Lazarus
« on: November 22, 2018, 06:35:47 pm »
Id: file not found: /usr/lib/crt1.10.5

I am using Majave 10.14.1 and have also updated xcode + cmd line tools

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Getting new error when building in Lazarus
« Reply #1 on: November 22, 2018, 07:10:23 pm »
Download and install FPC 3.0.4a (e.g. from https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4 ). It is an updated version of FPC 3.0.4 with adapted configuration files that work under macOS 10.14

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #2 on: November 24, 2018, 01:24:59 am »
Thank you very much for your help - I will try

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #3 on: November 24, 2018, 02:09:12 am »
Unfortunately using FPCDeluxe 1.6.2g for x86_64-darwin-cocoa trunk/trunk fails  - I will try another way

Code: Pascal  [Select][+][-]
  1. (3104) Compiling ./cocoa/cocoaprivate.pas
  2. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(189,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
  3. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(195,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
  4. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(189,1arus/lcl/interfaces/./cocoa/cocoaprivate.pas(195,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
  5. 4) Error: (3266) Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
  6. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(195,14) Error: (5070) Mismatch between number of declared parameters and number of colons in message string.
  7. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(254,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
  8. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(254,14) Error: (3266) Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
  9. /Users/example/laza:Boolean;"
  10. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(254,14) Error: (3266) Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
  11.  
  12. ruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(273,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
  13. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivateruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(273,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
  14. .pas(280,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
  15. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(273,14) Error: (3266) Objective-C messages re.pas(280,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
  16. quire their Objective-C selector name to be specified using the "message" directive.
  17. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(280,14) Error: (5070) Mismatch between number of declared parameters and number of colons in message string.
  18. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(314,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
  19. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(325,14) Error: (3058) There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
  20. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(314,14) Error: (3266) Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
  21. (1008) 4608 lines compiled, 2.1 sec
  22. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(325,14) Error: (5070) Mismatch between number of declared parameters and number of colons in message string.
  23. /Users/example/lazaruscoc64bit/lazarus/lcl/interfaces/./cocoa/cocoaprivate.pas(366,1) Fatal: (10026) There were 14 errors compiling module, stopping
  24. Fatal: (1018) Compilation aborted
  25. Error: /Users/example/lazaruscoc64bit/fpc/bin/x86_64-darwin/ppcx64 returned an error exitcode
  26. Error: (lazarus) Compile package LCL 2.1: stopped with exit code 256
  27. (102
  28. (9 were 14 errors compiling module, stopping
  29. Fatal: (1018) Compilation aborted
  30. Error: /Users/example/lazaruscoc64bit/fpc/bin/x86_64-darwin/ppcx64 returned an error exitcode
  31. Error: (lazarus) Compile package LCL 2.1: stopped with exit code 256
  32. (102
  33.  
  34. Error: (lazarus) Compile package LazDebuggerLldb 0.0: terminated
  35. Error: (lazarus) Compile package DateTimeCtrls 1.5.1: terminated
  36. Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 256"
  37. Error: (lazarus) Building I001) Assembling (pipe
  38. Error: (lazarus) Compile package LazDebuggerLldb 0.0: terminated
  39. Error: (lazarus) Compile package DateTimeCtrls 1.5.1: terminated
  40. Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 256"
  41.  
  42. DE: Compile AutoInstall Packages failed.
  43. make: *** [useride] Error 2
  44. fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: UserIDE): make returned error code #512
  45. fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: UserIDE): make returned error code #512
  46.  
  47.  
  48. ERROR: Fpcupdeluxe fatal error !
  49.  

CCRDude

  • Hero Member
  • *****
  • Posts: 596
Re: Getting new error when building in Lazarus
« Reply #4 on: November 24, 2018, 08:08:13 am »
That one has been discussed in a few other threads here as well. You would need to manually change boolean to boolean8 in a few dozen cases like these for it to work. The situation has been the same for some weeks, and I've did it a few times after updating already.

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #5 on: November 24, 2018, 04:37:52 pm »
Thank you - I will take a look. No-one filed a bug report yet?

I will try see if I can find other posts about it.


MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #6 on: November 27, 2018, 01:25:31 am »
I tried to just update my old otherwise working install with new FPC binaries - but not luck...

So seems I have to go through this process as well.

I am kinda flabbergasted someone introduced a breaking change like that.

I am not even sure if this a pure Cocoa problem if I want to report in bug tracker?

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #7 on: November 27, 2018, 01:37:21 am »
I have now reported the cocoaprivate issue here:
https://bugs.freepascal.org/view.php?id=34609

Hopefully someone will roll back the changes or fix this - but at least now the problem has been reported :(

CCRDude

  • Hero Member
  • *****
  • Posts: 596
Re: Getting new error when building in Lazarus
« Reply #8 on: November 27, 2018, 09:59:13 am »
Thanks for reporting the issue!

I've attached a patch that changes boolean to boolean8 there. No official solution of course, but until there's a real fix, this will help restoring a working state after each reinstall.

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #9 on: November 27, 2018, 10:43:36 pm »
Thank you - that is a major help :)

Just a quick question - are you using a special program to run the .diff file on Mac or are you doing changes manually?

CCRDude

  • Hero Member
  • *****
  • Posts: 596
Re: Getting new error when building in Lazarus
« Reply #10 on: November 28, 2018, 11:05:59 am »
I had some trouble myself at first, since as a git user, I tried to apply it with git first.

Since I created the patch using svn diff (because fpcupdeluxe installs Lazarus from a svn repository), svn patch is the required tool to apply the patch. svn should be the same on all platforms.

balazsszekely

  • Guest
Re: Getting new error when building in Lazarus
« Reply #11 on: November 28, 2018, 12:15:10 pm »
Just a quick question - are you using a special program to run the .diff file on Mac or are you doing changes manually?
1. install svn
2. open terminal
3. cd to lazarus folder
4. patch -p0 </path/to/patch/mypatch.patch

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #12 on: November 28, 2018, 06:33:52 pm »
I found out svn is automatically included with xcode command line tools so... that is good

...

However, when I initiate the command "patch -p0 changes.diff" seems just to hang / do nothing

I have tried placing the file in both

Lazarus root installation folder/
and
Lazarus root installation folder/lazarus/
« Last Edit: November 28, 2018, 06:45:02 pm by MISV »

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Getting new error when building in Lazarus
« Reply #13 on: November 29, 2018, 12:55:52 am »
You forgot to include < char in your command.

 "patch -p0 < changes.diff"

MISV

  • Hero Member
  • *****
  • Posts: 783
Re: Getting new error when building in Lazarus
« Reply #14 on: November 29, 2018, 11:09:12 pm »
Thank you - you are correct - it works now :)



Just found similar Cocoa problem now:

Quote
cocoaprinters_h.inc(28,14) Error: There is no method in an ancestor class to be overridden :"knowPageRgange(NSRangePtr):Boolean;"
cocoaprinters_h.inc(30,14) Error: There is no method in an ancestor class to be overridden :"isFlipped:Boolean;"
cocoaprinters_h.inc(28,14) Error: Objective-C message require their Objective-C selector name to be specific using the "message" directive.
cocoaprinters_h.inc(28,14) Error: Mismatch between number of declared parameters and number of colons in message string.

Not sure if to include in bug report

 

TinyPortal © 2005-2018