Recent

Author Topic: Lazarus Release Candidate 1 of 2.2.0  (Read 102820 times)

d7_2_laz

  • Hero Member
  • *****
  • Posts: 506
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #45 on: July 20, 2021, 10:28:50 am »
avra, i'll create a separate item for that this afternoon within the debugger forum. because i assume the details might be a bit offtopic here. Thank you!
Lazarus 3.2  FPC 3.2.2 Win10 64bit

d7_2_laz

  • Hero Member
  • *****
  • Posts: 506
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #46 on: July 20, 2021, 03:09:52 pm »
avra, it's here, for to separate it  from this thread. https://forum.lazarus.freepascal.org/index.php?board=12.0
Lazarus 3.2  FPC 3.2.2 Win10 64bit

c600g

  • New Member
  • *
  • Posts: 38
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #47 on: July 23, 2021, 06:13:42 pm »
I'm still working with 2.2.0 RC1 on KDE Neon, 64-bit Linux .DEB files (GTK2 widget build), and I've found a significant UI issue that causes Lazarus to freeze.

In my source code, I am using a Generics.Collections TList<>. If I hover the mouse cursor in the source code editor over the variable declared as type TList<> (call it List), the help hint correctly shows me the the definition of the variable, including the file name and line number where it is declared, etc.

If I hover over the Count property of that variable, it also works as expected.

However, when I hover over a method of an indexed member of that TList<> (e.g. List[0].IsMethod()), the entire Lazarus UI freezes and I must terminate the application and restart.

UPDATE: Just tried it in the Win32/Win64 build as well, and the same thing occurs.

Alan
« Last Edit: July 23, 2021, 06:31:07 pm by c600g »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #48 on: July 26, 2021, 05:54:23 am »
macOS Issues

* Read me for FPC binary package says it is for 10.4 Tiger (32 bit) and 10.6 Snow Leopard (64 bit) onwards BUT the FPC source package says it is for macOS 10.12 onwards.

* The FPC source package installs the source files to a directory named:
/usr/local/share/fpcsrc/3.2.0 <<----- Lazarus cannot find this directory and in any event it should be 3.2.2 not 3.2.0 (this was a clean install of Big Sur with no previous Xcode, FPC or Lazarus installations). I renamed the directory and Lazarus was happy and the debugger was correctly configured too which is a major step forward.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #50 on: July 28, 2021, 10:14:24 am »
Other mac OS issues:

* Secondary installation dialog error

* x86_64 and not aarch64 executables produced by default
There were some fixes, are they still open?
If yes, I have to forward to the mail list.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #51 on: July 28, 2021, 10:33:58 am »
Other mac OS issues:

* Secondary installation dialog error

* x86_64 and not aarch64 executables produced by default
There were some fixes, are they still open?
If yes, I have to forward to the mail list.

I see that the FPC binary and source files have been replaced, but the Lazarus pkg is the same, so the Lazarus-specific issues above remain for RC1.

As to the production of x86_64 executables by Lazarus on aarch64, this is because the Lazarus executable is an x86_64 and not a universal binary with aarch64 (fpc has universal binaries and produces aarch64 binaries by default).

Code: Text  [Select][+][-]
  1. file /usr/local/bin/fpc
  2. /usr/local/bin/fpc: Mach-O universal binary with 3 architectures: [i386:Mach-O executable i386] [x86_64:Mach-O 64-bit executable x86_64] [arm64]
  3. /usr/local/bin/fpc (for architecture i386):     Mach-O executable i386
  4. /usr/local/bin/fpc (for architecture x86_64):   Mach-O 64-bit executable x86_64
  5. /usr/local/bin/fpc (for architecture arm64):    Mach-O 64-bit executable arm64
  6.  
  7. file /Applications/Lazarus/lazarus.app/Contents/MacOS/lazarus
  8. /Applications/Lazarus/lazarus.app/Contents/MacOS/lazarus: Mach-O 64-bit executable x86_64

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #52 on: July 28, 2021, 11:52:27 am »
macOS x86_64 and aarch64

The notes at https://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes#IDE_Changes do not mention the relocation of the Lazarus IDE "Lazarus > Tools > Options" menu to "Lazarus > Preferences" for macOS.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #53 on: July 28, 2021, 12:36:39 pm »
@trev I added this info to the end of that topic.

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #54 on: July 29, 2021, 02:20:23 pm »
Issue:
 Lazbuild defaults to Carbon widgetset (which does not support 64 bit applications) when building applications on 64-bit MacOS platforms (x86-64 and AArch64). Therefore, the build fails. In contrast, the Lazarus GUI defaults to Cocoa widgetset which is built correctly.

To replicate:
 In Lazarus IDE, choose Project/NewProject menu item and press "OK" to create a default application. Choose the Run/Run menu item to show that this runs from the IDE. Optionally you can put a {$IFDEF LCLCocoa} or {$IFDEF LCLCarbon} to convince yourself that the IDE defaults to the modern Cocoa widgetset.

Next, attempt the build the application from the terminal with lazbuild. Note that it fails if run by default, as it selects the Carbon widgetset, but succeeds if the `--ws=cocoa` override is provided. Trunk has the same issue. It would be great if Lazarus 2.2.0 Lazbuild would default to the maintained Cocoa widgetset, mimicking the behavior of the Lazarus IDE.


$ /Applications/Lazarus/lazbuild -v
2.2.0RC1

$ /Applications/Lazarus/lazbuild project1.lpi
Hint: (lazarus) Missing state file of LCLBase 2.2.0.1: /Applications/Lazarus/lcl/units/x86_64-darwin/LCLBase.compiled
Error: (lazarus) unable to create package output directory "/Applications/Lazarus/lcl/units/x86_64-darwin" of package "LCLBase 2.2.0.1"
Hint: (lazarus) normal output directory of package LCLBase 2.2.0.1 is not writable: "/Applications/Lazarus/lcl/units/x86_64-darwin/"
TParsedCompilerOptions.SetOutputDirectoryOverride New=/Users/chris/.lazarus/lib/LCLBase/units/x86_64-darwin
Hint: (lazarus) Missing state file of LCL 2.2.0.1: /Applications/Lazarus/lcl/units/x86_64-darwin/carbon/LCL.compiled
Error: (lazarus) unable to create package output directory "/Applications/Lazarus/lcl/units/x86_64-darwin/carbon" of package "LCL 2.2.0.1"
Hint: (lazarus) normal output directory of package LCL 2.2.0.1 is not writable: "/Applications/Lazarus/lcl/units/x86_64-darwin/carbon/"
TParsedCompilerOptions.SetOutputDirectoryOverride New=/Users/chris/.lazarus/lib/units/x86_64-darwin/carbon
Hint: (lazarus) Compiler params changed for LCL 2.2.0.1
  Old="-MObjFPC -Scghi -O1 -gw -gl -Fi/Applications/Lazarus/lcl/interfaces/carbon -Fi/Applications/Lazarus/lcl/interfaces/carbon/objc -Fi/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/appkit -Fi/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/foundation -Fu/Applications/Lazarus/lcl/interfaces/carbon -Fu/Applications/Lazarus/lcl/interfaces/carbon/objc -Fu/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/appkit -Fu/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/foundation -Fu/Applications/Lazarus/packager/units/x86_64-darwin -Fu/Applications/Lazarus/components/lazutils/lib/x86_64-darwin -Fu/Applications/Lazarus/components/freetype/lib/x86_64-darwin -Fu/Applications/Lazarus/lcl/units/x86_64-darwin -Fu/Applications/Lazarus/lcl/interfaces/ -FU/Users/chris/.lazarus/lib/units/x86_64-darwin/carbon -dcarbon lcl.pas"
  Now="-MObjFPC -Scghi -O1 -gw -gl -Fi/Applications/Lazarus/lcl/interfaces/carbon -Fi/Applications/Lazarus/lcl/interfaces/carbon/objc -Fi/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/appkit -Fi/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/foundation -Fu/Applications/Lazarus/lcl/interfaces/carbon -Fu/Applications/Lazarus/lcl/interfaces/carbon/objc -Fu/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/appkit -Fu/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/foundation -Fu/Applications/Lazarus/packager/units/x86_64-darwin -Fu/Applications/Lazarus/components/lazutils/lib/x86_64-darwin -Fu/Applications/Lazarus/components/freetype/lib/x86_64-darwin -Fu/Users/chris/.lazarus/lib/LCLBase/units/x86_64-darwin -Fu/Applications/Lazarus/lcl/interfaces/ -FU/Users/chris/.lazarus/lib/units/x86_64-darwin/carbon -dcarbon lcl.pas"
  State file="/Users/chris/.lazarus/lib/units/x86_64-darwin/carbon/LCL.compiled"
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Darwin for x86_64
(3104) Compiling lcl.pas
(3104) Compiling ./carbon/alllclintfunits.pas
(3104) Compiling ./carbon/agl.pp
(9009) Assembling agl
(3104) Compiling ./carbon/carbonbars.pp
/Applications/Lazarus/lcl/interfaces/./carbon/carbonbars.pp(16,2) Error: (2023) User defined: only 32 bit cpu is supported
(3104) Compiling ./carbon/carbonprivate.pp
(3104) Compiling ./carbon/carbondef.pp
/Applications/Lazarus/lcl/interfaces/./carbon/carbondef.pp(187,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile package LCL 2.2.0.1: stopped with exit code 1
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"
Error: (lazbuild) Project dependencies of /Users/chris/Desktop/laz/project1.lpi

$ /Applications/Lazarus/lazbuild --ws=cocoa project1.lpi
Hint: (lazarus) Missing state file of LCLBase 2.2.0.1: /Applications/Lazarus/lcl/units/x86_64-darwin/LCLBase.compiled
Error: (lazarus) unable to create package output directory "/Applications/Lazarus/lcl/units/x86_64-darwin" of package "LCLBase 2.2.0.1"
Hint: (lazarus) normal output directory of package LCLBase 2.2.0.1 is not writable: "/Applications/Lazarus/lcl/units/x86_64-darwin/"
TParsedCompilerOptions.SetOutputDirectoryOverride New=/Users/chris/.lazarus/lib/LCLBase/units/x86_64-darwin
Hint: (lazarus) Missing state file of LCL 2.2.0.1: /Applications/Lazarus/lcl/units/x86_64-darwin/cocoa/LCL.compiled
Error: (lazarus) unable to create package output directory "/Applications/Lazarus/lcl/units/x86_64-darwin/cocoa" of package "LCL 2.2.0.1"
Hint: (lazarus) normal output directory of package LCL 2.2.0.1 is not writable: "/Applications/Lazarus/lcl/units/x86_64-darwin/cocoa/"
TParsedCompilerOptions.SetOutputDirectoryOverride New=/Users/chris/.lazarus/lib/units/x86_64-darwin/cocoa
Hint: (lazarus) Build Project: nothing to do.
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Darwin for x86_64
(3104) Compiling project1.lpr
(9009) Assembling project1
(9022) Compiling resource /Users/chris/Desktop/laz/lib/x86_64-darwin/project1.or
(9015) Linking /Users/chris/Desktop/laz/project1
(1008) 25 lines compiled, 1.3 sec
(1022) 2 hint(s) issued

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #55 on: July 30, 2021, 02:15:53 pm »
I have posted my lazbuild issue on gitlab:
  https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39293

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #56 on: July 31, 2021, 12:11:01 pm »
Update

If you have any issue/regression that you believe needs to be addressed before the Release of 2.2 make sure it is reported on the issue tracker and it is included in the Version 2.2 milestone



This includes any issue already mentioned in this thread (unless already fixed and merged).

If you are unsure of an issue you are welcome to discuss it here on the forum (in this thread or any other). If you do not get feedback then it might be best to just report it. Keep in mind that the later the report, the lower the chances something will be done about it.

Where not obvious, please include (in the issue) the reason, why you believe it should be 2.2.




If you report new issues, you may have the option to set the milestone yourself as a suggestion.

Any properties (milestone, labels, ...) are treated as suggestions, and will be reviewed and removed if not agreed on by a developer.
Because issues are often "high prior" to their reporter, any such "importance" properties will usually just be removed. Those fields are reserved for developers only.

If you can not apply the milestone yourself, post the link to the issue in this thread here.
I will then apply the milestone. It will then be reviewed by a team member who maintains the relevant code section (so if found not a 2.2 issue, it will be removed again)




Please note, all milestone are treated as "loose targets". Issues will be addressed, if our manpower permits. The team will decide at its own discretion if or how long to hold the release for an issue. Or if to move an issues target.
« Last Edit: July 31, 2021, 01:35:41 pm by Martin_fr »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #57 on: July 31, 2021, 01:21:26 pm »
Quote
The team will decide at its own digression if or how long to hold the release for an issue.
Martin, I think you meant  "at its own discretion..."

ChrisR

  • Full Member
  • ***
  • Posts: 247
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #58 on: July 31, 2021, 08:40:03 pm »
Unable to modify the version 2.2 Milestone. I would be grateful if this issue could be addressed with the 2.2 release
  https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39293

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 1 of 2.2.0
« Reply #59 on: August 01, 2021, 02:39:24 am »

If you have any issue/regression that you believe needs to be addressed before the Release of 2.2 make sure it is reported on the issue tracker and it is included in the Version 2.2 milestone


Hey, thats pretty cool !

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

 

TinyPortal © 2005-2018