Recent

Author Topic: Illegal type conversion: "Pobjc_object" to "Single" - fpcupdeluxe  (Read 1236 times)

Trenatos

  • Sr. Member
  • ****
  • Posts: 454
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Illegal type conversion: "Pobjc_object" to "Single" - fpcupdeluxe
« on: September 12, 2018, 04:00:47 am »
I'm trying to update to latest trunk Lazarus through fpcupdeluxe.

I'm getting the Arithmetic error as usual, but now I can't use
Code: Pascal  [Select]
  1. lazbuild --build-ide= --widgetset="Cocoa"

Code: Pascal  [Select]
  1. (1002) Target OS: Darwin for x86_64
  2. (3104) Compiling cocoa_pkg.pas
  3. (3104) Compiling ./appkit/appkit.pas
  4. (3104) Compiling ./foundation/foundation.pas
  5. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSArray.inc(214,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  6. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSAttributedString.inc(132,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  7. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSBundle.inc(210,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  8. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSBundle.inc(216,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  9. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSData.inc(164,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  10. (1002) Target OS: Darwin for x86_64
  11. (3104) Compiling lazutils.pas
  12. (3104) Compiling laz_xmlcfg.pas
  13. (9001) Assembling (pipe) /Developer/lazarus/components/lazutils/lib/x86_64-darwin/laz_xmlcfg.s
  14. (3104) Compiling laz_xmlread.pas
  15. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSDictionary.inc(144,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  16. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSObject.inc(300,18) Hint: (4055) Conversion between ordinals and pointers is not portable
  17. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(448,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  18. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(708,13) Error: (4054) Illegal type conversion: "Pobjc_object" to "Single"
  19. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(713,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  20. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(822,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  21. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(827,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  22. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(832,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  23. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(936,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  24. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(941,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  25. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSString.inc(1326,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  26. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(267,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  27. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(272,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  28. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(277,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  29. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(282,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  30. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(287,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  31. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(292,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  32. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(297,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  33. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(302,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  34. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(317,13) Error: (4054) Illegal type conversion: "Pobjc_object" to "Single"
  35. /Developer/lazarus/lcl/interfaces/carbon/pascocoa/./foundation/NSValue.inc(327,18) Warning: (4056) Conversion between ordinals and pointers is not portable
  36. foundation.pas(31) Fatal: (10026) There were 2 errors compiling module, stopping
  37. Fatal: (1018) Compilation aborted
  38. Error: /sw/bin/ppcx64 returned an error exitcode
  39. Error: (lazarus) Compile package cocoa_pkg 0.0: stopped with exit code 256
  40. (9001) Assembling (pipe) /Developer/lazarus/components/lazutils/lib/x86_64-darwin/laz_xmlread.s
  41. (3104) Compiling laz_xmlstreaming.pas
  42. /Developer/lazarus/components/lazutils/laz_xmlstreaming.pas(89,32) Hint: (5024) Parameter "Buffer" not used
  43. /Developer/lazarus/components/lazutils/laz_xmlstreaming.pas(143,29) Hi
  44. Error: (lazarus) Compile package LazUtils 1.0: terminated
  45. Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 256"
  46. Error: (lazarus) Building IDE: Compile AutoInstall Packages failed.
  47.  

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1015
Re: Illegal type conversion: "Pobjc_object" to "Single" - fpcupdeluxe
« Reply #1 on: September 12, 2018, 07:21:53 am »
About the Arithmetic error.

I am only getting this error when Lazarus is started and must create its own project (project1).
The last version of fpcupdeluxe (not sure if it is online already) creates a very basic "hello world" startup project for Lazarus. Lazarus starts without problem if it finds this project.
After start, a new (GUI) project can be created and saved. Lazarus will work as expected.

AFAIK, Lazarus Cocoa has some problems in creating and using the *.pas and especially the *.lfm files.
Have yet to find out why !

Trenatos

  • Sr. Member
  • ****
  • Posts: 454
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: Illegal type conversion: "Pobjc_object" to "Single" - fpcupdeluxe
« Reply #2 on: September 12, 2018, 08:44:39 pm »
I'm gonna give it another go after cleaning out all Laz/FPC installs.

I have a nagging feeling there's an old install interfering, as suggested by the output from fpcupdeluxe.

Trenatos

  • Sr. Member
  • ****
  • Posts: 454
  • Software developer - Open source contributor
    • MarcusFernstrom.com
Re: Illegal type conversion: "Pobjc_object" to "Single" - fpcupdeluxe
« Reply #3 on: September 13, 2018, 02:30:13 am »
I cleared everything out, grabbed the latest fpcupdeluxe and now it seems to be working, phew  :)