Recent

Author Topic: Lazarus Release Candidate 3 for 2.0  (Read 63474 times)

MikeFinch

  • Jr. Member
  • **
  • Posts: 68
Re: Lazarus Release Candidate 3 for 2.0
« Reply #15 on: December 26, 2018, 02:01:28 am »
Folks! The method 'columns' is still not working in ListBox (together with no horizontal scrollbar) under linux. I use Mageia.

It all works perfectly in Windows.

I will keep waiting .....  %)

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #16 on: December 26, 2018, 02:20:08 am »
Just in general / not sure if it applies to your issues

fpc  is a wrapper that will call the correct compiler depending on the target (cpu)

ppcx64 is for 64 bit
ppci386 is for 32 bit

If you want to be able to change targets in the ide, then the IDE must be configured with fpc as the compiler.

---
If you are looking for a config file, compile a simple program with -va

This will get lots of output ("copy all and original" in messages window). It will show every path that the compiler looked for any file.
Not all of them need to be present. But one fpc.cfg should be found.
There is fpcmcfg to generate one. But you need to google that.

Thanks Martin,

Thanks for that info, currently fpu seems to be correctly pointing to 64.

If I set verbosity to -va, the search paths scroll by in the message window, but do not stay. I can not see a "copy all and original" option in messages window. Sorry, can you point me to it?

EDIT: If it requires selecting from a contextual menu, then I can't see it. Contextual menus are not working in the cocoa ide.
« Last Edit: December 26, 2018, 02:40:03 am by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5163
    • wiki
Re: Lazarus Release Candidate 3 for 2.0
« Reply #17 on: December 26, 2018, 02:57:39 am »
Yes it is the context menu.

Just start fpc outside the IDE (make sure it is the same as in the ide)
Code: Pascal  [Select]
  1. fpc -va  program.pas > log.txt
And add whatever cpu/target options you need.

Should be looking for the same files.

Why do you refer to "fpu"? typo?

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #18 on: December 26, 2018, 03:01:51 am »
Many thanks. Yes, that was a typo.  :-[

I can try what you suggest.

In the mean time I ran lazarus 1.8.4 with -va, and can copy messages, getting:

Code: Pascal  [Select]
  1. ...
  2. [0.000] Configfile search: /Users/frederick/.fpc.cfg
  3. [0.000] Configfile search: /usr/local/etc/fpc.cfg
  4. [0.000] Configfile search: /etc/fpc.cfg
  5. [0.000] (11026) Reading options from file /etc/fpc.cfg
  6. [0.000] Hint: (11030) Start of reading config file /etc/fpc.cfg
  7. [0.000] (11033) interpreting file option "#"
  8. [0.000] (11033) interpreting file option "# Config file generated by fpcmkcfg on 25-12-18 - 08:21:57"
  9. ...
  10.  

"/etc/fpc.cfg" is found, so why does 2.0.3 not find it?

Would it make sense to move a copy to " /Users/frederick/.fpc.cfg"?
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #19 on: December 26, 2018, 03:06:45 am »
Would it make sense to move a copy to " /Users/frederick/.fpc.cfg"?

Apparently not. That does not help. :(
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5163
    • wiki
Re: Lazarus Release Candidate 3 for 2.0
« Reply #20 on: December 26, 2018, 03:15:18 am »
Maybe it is something in the file that makes it disregard it.

-va might tell...

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #21 on: December 26, 2018, 03:21:16 am »
With "/Users/frederick/.fpc.cfg" copied from ""/etc/fpc.cfg":

Code: Pascal  [Select]
  1. fpc -va Hello.pas > log.txt

generates:

Code: Pascal  [Select]
  1. ...
  2. [0.000] Configfile search: /Users/frederick/.fpc.cfg
  3. [0.000] Reading options from file /Users/frederick/.fpc.cfg
  4. [0.000] Hint: Start of reading config file /Users/frederick/.fpc.cfg
  5. [0.000] interpreting file option "#"
  6. [0.000] interpreting file option "# Config file generated by fpcmkcfg on 25-12-18 - 08:21:57"
  7. ...

so command line seems to find it.

Without the copying I get:

Code: Pascal  [Select]
  1. ...
  2. [0.000] Configfile search: /Users/frederick/.fpc.cfg
  3. [0.000] Configfile search: /usr/local/etc/fpc.cfg
  4. [0.000] Configfile search: /etc/fpc.cfg
  5. [0.000] Reading options from file /etc/fpc.cfg
  6. [0.000] Hint: Start of reading config file /etc/fpc.cfg
  7. [0.000] interpreting file option "#"
  8. ...

In each case the interpreting section ends with:

Code: Pascal  [Select]
  1. ...
  2. [0.000] Hint: End of reading config file /etc/fpc.cfg
  3. ...

so it seems to process it.

EDIT: I also see:

Code: Pascal  [Select]
  1. ...
  2. [0.008] Compiler: /usr/local/bin/ppcx64
  3. [0.008] Compiler OS: Darwin for x86_64
  4. [0.008] Target OS: Darwin for x86_64
  5. [0.008] Using executable path: /usr/local/bin/
  6. [0.008] Using unit path: /usr/local/lib/fpc/3.0.4/units/x86_64-darwin/httpd22/
  7. [0.008] Using unit path: /usr/local/lib/fpc/3.0.4/units/x86_64-darwin/rtl/
  8. [0.008] Using unit path: /usr/local/lib/fpc/3.0.4/units/x86_64-darwin/zlib/
  9. [0.008] Using unit path: /usr/local/lib/fpc/3.0.4/units/x86_64-darwin/xforms/
  10. [0.008] Using unit path: /usr/local/lib/fpc/3.0.4/units/x86_64-darwin/x11/
  11. ...

so it is using the correct compiler, and finding the x86_64 units. The IDE complains that these can not be found.

Perhaps I just need to delete all and try a reinstall...
« Last Edit: December 26, 2018, 03:43:21 am by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #22 on: December 26, 2018, 07:07:36 am »
Removed lazarus directory (Development/laz_2_0) and configuration directory (Users/frederick/.laz_2_0). Ran:

Code: Pascal  [Select]
  1. cd /Developer
  2. svn co https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/ laz_2_0
  3. cd laz_2_0
  4. make LCL_PLATFORM=cocoa CPU_TARGET=x86_64
  5. open startlazarus.app --args "--pcp=~/.laz_2_0"

Still get:

Warning The current FPC has no config file. It will probably miss some units. Check your installation of fpc.

Error The project uses target OS=macos and CPU=x86_64. The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.

 :(
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #23 on: December 26, 2018, 07:20:02 am »
fpcupdeluxe FPC 3.0.4 + fixes2.0 (EDIT)

ERROR: Fpcupdeluxe fatal error !
 
« Last Edit: December 26, 2018, 03:45:17 pm by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

dbannon

  • Hero Member
  • *****
  • Posts: 516
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 3 for 2.0
« Reply #24 on: December 26, 2018, 07:51:50 am »

Warning The current FPC has no config file. It will probably miss some units. Check your installation of fpc.

Error The project uses target OS=macos and CPU=x86_64. The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.

OK, thats not a Lazarus issue, its a FPC one.

Sounds to me like you do not have the 64bit compiler installed (or installed properly).  It should be (I guess) either /usr/local/bin/ppcx64  or /usr/bin/ppcx64.   My install has it as a symlink, linked from /usr/local/lib/fpc/3.0.4/ppcx64

My /etc/fpc.cfg mentions both 32bit and 64bit config data.

I installed fpc as a dmg from the fp repos, that install installed both 32bit and 64bit.  Please review your fpc install.

Davo

 
Lazarus 1.8, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

avra

  • Hero Member
  • *****
  • Posts: 1465
    • Additional info
Re: Lazarus Release Candidate 3 for 2.0
« Reply #25 on: December 26, 2018, 11:14:30 am »
fpcupdeluxe FPC 2.0.4 + fixes2.0

ERROR: Fpcupdeluxe fatal error !

For fixes2.0 you should use FPC 3.0.4 and up. Was 2.0.4 a typo?
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5163
    • wiki
Re: Lazarus Release Candidate 3 for 2.0
« Reply #26 on: December 26, 2018, 12:40:57 pm »
Removed lazarus directory (Development/laz_2_0) and configuration directory (Users/frederick/.laz_2_0). Ran:

Code: Pascal  [Select]
  1. cd /Developer
  2. svn co https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/ laz_2_0
  3. cd laz_2_0
  4. make LCL_PLATFORM=cocoa CPU_TARGET=x86_64
  5. open startlazarus.app --args "--pcp=~/.laz_2_0"

Still get:

Warning The current FPC has no config file. It will probably miss some units. Check your installation of fpc.

Error The project uses target OS=macos and CPU=x86_64. The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.

 :(
Ok, so that happens when you start the IDE?
Not when you try to compile?

Then that actually is an Issue of the IDE. Your fpc should be fine.

1) Try Tools > Rescan fpc source

2) What does it say in menu: View > IDE Internals > About FPC ?
(both tabs)

VTwin

  • Hero Member
  • *****
  • Posts: 585
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #27 on: December 26, 2018, 04:38:23 pm »
Thanks all. fpc and sources were installed, and reinstalled to double check, from stable 3.0.4 distro (2.0.4 was typo). No change to fpc from lazarus 1.8.4.

/usr/local/bin/ppcx64

is a link to:

/usr/local/lib/fpc/3.0.4/ppcx64

/usr/local/bin/fpc

is an binary that displays:

"Free Pascal Compiler version 3.0.4 [2017/11/26] for x86_64"

as expected when executed from the command line. Although this is a binary, not a link, it gives the same as executing ppcx64.

Running a "Hello World" program from the command line with -va locates fpc.cfg, searching several possibilities. The reinstall of fpc created a new fpc.cfg, so I doubt that has become corrupted.

The error messages occur when starting lazarus, either trunk or 2.0 fixes.

1) Trying to rescan the fpc sources gives me the same two error messages.

2) FPC values used by the IDE:

Code: Pascal  [Select]
  1. Lazarus version: 2.0.0RC3
  2. Lazarus svn revision: 59910
  3. Lazarus build date: 2018/12/25
  4. Lazarus was compiled for x86_64-darwin
  5. Lazarus was compiled with fpc 3.0.4
  6.  
  7. Environment variables:
  8. PATH=/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin
  9. PP=
  10. FPCDIR=
  11. USESVN2REVISIONINC=
  12. USER=frederick
  13. HOME=/Users/frederick
  14. PWD=/Developer/laz_2_0
  15. LANG=en_US.UTF-8
  16. LANGUAGE=
  17.  
  18. Global IDE options:
  19. LazarusDirectory=/Developer/laz_2_0/
  20. Resolved LazarusDirectory=/Developer/laz_2_0/
  21. Project's CompilerFilename=$(CompPath)
  22. Resolved Project's CompilerFilename=/usr/local/bin/fpc
  23. Default CompilerFilename=fpc
  24. Resolved default compilerFilename=/usr/local/bin/fpc
  25. CompilerMessagesFilename=
  26. Resolved CompilerMessagesFilename=/usr/local/share/fpcsrc/compiler/msg/errore.msg
  27.  
  28. Project:
  29. lpi=/Volumes/PA01/FreePascal/Orient/Orient_3.9.0/Orient_3.9.0.14/Orient.lpi
  30. Directory=/Volumes/PA01/FreePascal/Orient/Orient_3.9.0/Orient_3.9.0.14/
  31. TargetOS=macos
  32. TargetCPU=x86_64
  33. CompilerFilename=$(CompPath)
  34. CompilerOptions=
  35.  
  36. Active target:
  37. TargetOS=macos
  38. TargetCPU=x86_64
  39.  
  40. FPC executable:
  41. Compiler=/usr/local/bin/fpc
  42. Options=
  43. CompilerDate=11/26/2017 02:39:02 PM
  44. RealCompiler=/usr/local/bin/ppcx64
  45. RealCompilerDate=11/26/2017 02:39:03 PM
  46. RealTargetOS=macos
  47. RealTargetCPU=x86_64
  48. RealCompilerInPath=/usr/local/lib/fpc/3.0.4/ppcx64
  49. Version=
  50. WARNING: fpc has no config file
  51.  
  52. Defines:
  53.  
  54. Undefines:
  55. BSD=
  56. DARWIN=
  57. FPC_HAS_WINLIKERESOURCES=
  58. HASUNIX=
  59. UNIX=
  60.  
  61. Include Paths:
  62. Unit Scopes:
  63. Unit Paths:
  64. Units:
  65.  
  66. Sources:
  67. Directory=/usr/local/share/fpcsrc
  68. Files.Count=13525
  69. packages/libndsfpc/src/nds/system.inc
  70. packages/libogcfpc/src/ogc/system.inc
  71. rtl/aix/system.pp
  72. rtl/amicommon/classes.pp
  73. rtl/amicommon/sysutils.pp
  74. rtl/amiga/system.pp
  75. rtl/aros/system.pp
  76. rtl/atari/system.pp
  77. rtl/beos/classes.pp
  78. rtl/beos/system.pp
  79. rtl/bsd/system.pp
  80. rtl/embedded/system.pp
  81. rtl/embedded/sysutils.pp
  82. rtl/emx/system.pas
  83. rtl/emx/sysutils.pp
  84. rtl/gba/classes.pp
  85. rtl/gba/system.pp
  86. rtl/gba/sysutils.pp
  87. rtl/go32v2/classes.pp
  88. rtl/go32v2/system.pp
  89. rtl/go32v2/sysutils.pp
  90. rtl/haiku/classes.pp
  91. rtl/haiku/system.pp
  92. rtl/inc/system.inc
  93. rtl/java/system.pp
  94. rtl/linux/system.pp
  95. rtl/macos/system.pp
  96. rtl/macos/sysutils.pp
  97. rtl/morphos/system.pp
  98. rtl/msdos/classes.pp
  99. rtl/msdos/system.pp
  100. rtl/msdos/sysutils.pp
  101. rtl/nativent/classes.pp
  102. rtl/nativent/system.pp
  103. rtl/nativent/sysutils.pp
  104. rtl/nds/classes.pp
  105. rtl/nds/system.pp
  106. rtl/nds/sysutils.pp
  107. rtl/netware/classes.pp
  108. rtl/netware/system.pp
  109. rtl/netware/sysutils.pp
  110. rtl/netwlibc/classes.pp
  111. rtl/netwlibc/system.pp
  112. rtl/netwlibc/sysutils.pp
  113. rtl/objpas/classes/classes.inc
  114. rtl/objpas/sysutils/sysutils.inc
  115. rtl/os2/classes.pp
  116. rtl/os2/system.pas
  117. rtl/os2/sysutils.pp
  118. rtl/palmos/system.pp
  119. rtl/qnx/system.pp
  120. rtl/solaris/system.pp
  121. rtl/symbian/system.pp
  122. rtl/unix/classes.pp
  123. rtl/unix/sysutils.pp
  124. rtl/watcom/classes.pp
  125. rtl/watcom/system.pp
  126. rtl/watcom/sysutils.pp
  127. rtl/wii/classes.pp
  128. rtl/wii/system.pp
  129. rtl/wii/sysutils.pp
  130. rtl/win/sysutils.pp
  131. rtl/win32/classes.pp
  132. rtl/win32/system.pp
  133. rtl/win64/classes.pp
  134. rtl/win64/system.pp
  135. rtl/wince/classes.pp
  136. rtl/wince/system.pp
  137. rtl/wince/sysutils.pp
  138.  

FCP output:

Code: Pascal  [Select]
  1. The IDE asks the compiler with the following command for the real OS/CPU:
  2. /usr/local/bin/fpc -iTOTP -Fr/Developer/laz_2_0/components/codetools/fpc.errore.msg
  3. Working directory: /
  4. Output:
  5. darwin x86_64
  6.  
  7. The IDE asks the compiler with the following command for paths and macros:
  8. /usr/local/bin/fpc -va -Px86_64 -Tmacos -Fr/Developer/laz_2_0/components/codetools/fpc.errore.msg compilertest.pas
  9. Working directory: /Users/frederick/.laz_2_0/
  10. Output:
  11. [0.000] Handling option "-Tmacos"
  12. [0.000] interpreting firstpass option "-Tmacos"
  13. [0.000] Macro undefined: DARWIN
  14. [0.000] Macro undefined: UNIX
  15. [0.000] Macro undefined: BSD
  16. [0.000] Macro undefined: HASUNIX
  17. [0.000] Macro undefined: FPC_HAS_WINLIKERESOURCES
  18. [0.000] Error: Illegal parameter: -Tmacos
  19. [0.000] Hint: -? writes help pages
  20. Error: /usr/local/bin/ppcx64 returned an error exitcode
  21.  
  22. NOTE: The compilertest.pas is empty, so compilation fails. This is what we want.
  23.  




« Last Edit: December 26, 2018, 05:15:17 pm by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.11.6: Lazarus 2.0.1 svn r60659 (64 bit Cocoa)
Ubuntu 18.04.2: Lazarus 2.0.0 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.0 (64 bit on VBox)

dsyrios

  • Jr. Member
  • **
  • Posts: 55
Re: Lazarus Release Candidate 3 for 2.0
« Reply #28 on: December 26, 2018, 06:56:22 pm »
Thank you for the great work !!!
I made a clear instalation and using OPM (installing zeos, rx, eccontrols etc),
everything done OK.
I tested my recent project without any problem.

As far as I'm concerned for now, only one minor issue for IDE.
I think the new one "Publish Project" lags behind the previous with v1.8.2 that I was using.
 (I attach images)
 
Laz 1.8.4/FPC 3.0.4/ win7/32
Laz 2.0.0/FPC 3.0.4/ mint-mate 19.1

bigDan

  • New member
  • *
  • Posts: 28
Re: Lazarus Release Candidate 3 for 2.0
« Reply #29 on: December 26, 2018, 08:36:01 pm »
Compiling Darwin project with 2.0.0RCL3, 64bit/QT5. At link time I get:

Error: linker: Undefined symbols for architecture x86_64:
Error: linker "_QTextEdit_setPlaceholderText", referenced from:

This project was compiling OK on 2.0.0RCL2.