Recent

Author Topic: Lazarus Release Candidate 2 of 3.0  (Read 66865 times)

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: Lazarus Release Candidate 2 of 3.0
« Reply #75 on: November 14, 2023, 05:05:05 pm »
Issuing a make bigide under Debian 11 for the Rock 5A board, equipped with an ARM processor, works ok.
Doing the same under Armbian for the same board, fails as it is unable to resolve the two entry points :

__libc_csu_init
__libc_csu_fini

those entry points were present in glibc before 2.34. Starting from this release they were changed to

call_init
call_fini

Armbian has glibc 2.35, while Debian 11 has glibc 2.31
Apparently those two names are hardcoded somewhere in the build process of Lazarus.
Could it be possible to change that, in order to make possible a build of Lazarus even under Armbian ?

Thanks
-Fred
« Last Edit: November 14, 2023, 05:15:49 pm by ermeneuta »

dsiders

  • Hero Member
  • *****
  • Posts: 1327
Re: Lazarus Release Candidate 2 of 3.0
« Reply #76 on: November 14, 2023, 07:03:22 pm »
Issuing a make bigide under Debian 11 for the Rock 5A board, equipped with an ARM processor, works ok.
Doing the same under Armbian for the same board, fails as it is unable to resolve the two entry points :

__libc_csu_init
__libc_csu_fini

those entry points were present in glibc before 2.34. Starting from this release they were changed to

call_init
call_fini

Armbian has glibc 2.35, while Debian 11 has glibc 2.31
Apparently those two names are hardcoded somewhere in the build process of Lazarus.
Could it be possible to change that, in order to make possible a build of Lazarus even under Armbian ?

Thanks
-Fred

An FPC bug report https://gitlab.com/freepascal.org/fpc/source/-/issues/39295 (closed) for this issue says it has been fixed in 3.3.1... but not yet merged into the fixes branch.

There has to be a better place than a release candidate announcement to discuss these things...
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: Lazarus Release Candidate 2 of 3.0
« Reply #77 on: November 15, 2023, 12:30:30 am »
Quote
There has to be a better place than a release candidate announcement to discuss these things...
Well, not knowing that the error was fpc-related, I (wrongly) supposed it was introduced in latest release candidate of Lazarus...

Sorry,
-Fred

snorkel

  • Hero Member
  • *****
  • Posts: 817
Re: Lazarus Release Candidate 2 of 3.0
« Reply #78 on: November 16, 2023, 06:33:50 pm »
Not sure if this is a 3.0 issue but I didn't notice it until I started using RC2

Basically if you turn off the manifest DPI awareness the main menu control has a incomplete border on the top of the form, see screenshot.
I turn off the manifest DPI awareness as it does not look right, aka looks funny.

***Snorkel***
If I forget, I always use the latest stable 32bit version of Lazarus and FPC. At the time of this signature that is Laz 3.0RC2 and FPC 3.2.2
OS: Windows 10 64 bit

WooBean

  • Sr. Member
  • ****
  • Posts: 279
Re: Lazarus Release Candidate 2 of 3.0
« Reply #79 on: November 16, 2023, 06:53:14 pm »
..
Not my area of expertise, but I don't think line breaks are the issue.

Dotted unit names "casse.nfe" are a relatively new feature.... So could be (but don't know).
..
If you are using 3.0RC2 with a version of FPC other than 3.2.2 then make sure to mention this.
..

"Not my area of expertise" - you must be joking.

I was playing with "dotted units/identifiers" for a while.
Some progress has been done.
If interested - see at  https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40596

Platforms: Win7/64, Linux Mint Ulyssa/64

Gigatron

  • Full Member
  • ***
  • Posts: 162
  • Amiga Rulez !!
Re: Lazarus Release Candidate 2 of 3.0
« Reply #80 on: November 16, 2023, 10:08:08 pm »
Thanks to the Lazarus Team;

Gtr
Sub Quantum Technology ! Gigatron 68000 Colmar France;

cpicanco

  • Hero Member
  • *****
  • Posts: 655
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Lazarus Release Candidate 2 of 3.0
« Reply #81 on: November 18, 2023, 02:03:13 pm »
Hi, just tried to compile a project and I am getting a "illegal qualifier" for a "Self.ClassName.Replace" call.
Be mindful and excellent with each other.
https://github.com/cpicanco/

cdbc

  • Hero Member
  • *****
  • Posts: 1787
    • http://www.cdbc.dk
Re: Lazarus Release Candidate 2 of 3.0
« Reply #82 on: November 18, 2023, 02:33:18 pm »
Hi
From TObject:
Quote
class function ClassName : shortstring;
It could be that the stringhelper doesn't do shortstrings...
edit: use aStr:= copy(Classname,2); // 3.rd param implicits to rest of string
Regards Benny
« Last Edit: November 18, 2023, 02:36:25 pm by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cpicanco

  • Hero Member
  • *****
  • Posts: 655
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Lazarus Release Candidate 2 of 3.0
« Reply #83 on: November 18, 2023, 03:34:25 pm »
I remember that someone fixed this in trunk. Is this helper not supposed to be released?
Be mindful and excellent with each other.
https://github.com/cpicanco/

Bart

  • Hero Member
  • *****
  • Posts: 5497
    • Bart en Mariska's Webstek
Re: Lazarus Release Candidate 2 of 3.0
« Reply #84 on: November 18, 2023, 04:06:10 pm »
I remember that someone fixed this in trunk. Is this helper not supposed to be released?
If so, then it woul be fixed in fpc main (string helpers are part of fpc), so it may be in the next release of fpc.
This topic is about Lazarus relase.

Bart

cpicanco

  • Hero Member
  • *****
  • Posts: 655
  • Behavioral Scientist and Programmer
    • Portfolio
Re: Lazarus Release Candidate 2 of 3.0
« Reply #85 on: November 18, 2023, 08:15:14 pm »
I remember that someone fixed this in trunk. Is this helper not supposed to be released?
If so, then it woul be fixed in fpc main (string helpers are part of fpc), so it may be in the next release of fpc.
This topic is about Lazarus relase.

Bart

Ohhh, my bad. Sorry guys.
Be mindful and excellent with each other.
https://github.com/cpicanco/

DimTim

  • New Member
  • *
  • Posts: 42
Menus and hints
« Reply #86 on: November 23, 2023, 05:59:46 am »
I found these bugs in the trunk version, but I think they are also in RC2.

1) Hint sizes are calculated incorrectly, hint window's vertical size is too narrow;

2) The position of hints and menus for buttons on the right side of the screen or tray icons is also calculated incorrectly (for wide screens?  when DPI changed in Windows settings?)

System: Windows 10 Pro 22H2, hi-res monitor 2560x1440, scaling 150%.


AlexTP

  • Hero Member
  • *****
  • Posts: 2521
    • UVviewsoft
Re: Lazarus Release Candidate 2 of 3.0
« Reply #87 on: November 26, 2023, 07:31:51 am »
Looks like a regression, pls don't release Lazarus yet.
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40615

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10703
  • Debugger - SynEdit - and more
    • wiki
Re: Menus and hints
« Reply #88 on: November 26, 2023, 06:50:57 pm »
1) Hint sizes are calculated incorrectly, hint window's vertical size is too narrow;

2) The position of hints and menus for buttons on the right side of the screen or tray icons is also calculated incorrectly (for wide screens?  when DPI changed in Windows settings?)

I can't reproduce the hint size issue (I am on Win 10). Though there is a similar fixed issue https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40565 (fixed after RC2).
However this issue was triggered by extremely long text in the hint (not the case in your screenshot).

Yet, it may still be, that its not the height, but the width that is calculated wrong. => The hint is may not be supposed to wrap the text. If a hint is calculated to narrow, then it can wrap, and the size won't be extended for that, because the wrapping was not expected.

---
About the hint position.

There is known issue, if you have 2 (or more screens) with different DPI settings. (Or maybe if you change settings, while the IDE is running).

If an IDE Window is focused on the screen with DPI setting "A", and you hover an IDE window on the screen with DPI setting "B", then the position will be wrong, as it is rescaled with the DPI settings from the focused window (and those don't apply).

hukka

  • New Member
  • *
  • Posts: 36
    • Github
Re: Menus and hints
« Reply #89 on: November 27, 2023, 09:02:31 pm »
1) Hint sizes are calculated incorrectly, hint window's vertical size is too narrow;

I believe this is a bug in Metadarkstyle instead as I'm hit with the same issue but it's fine if I remove the package.

 

TinyPortal © 2005-2018