Author Topic: Lazarus Release Candidate 1 of 5.0  (Read 14503 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki

KoBraSoft

  • New Member
  • *
  • Posts: 28
Re: Lazarus Release Candidate 1 of 5.0
« Reply #106 on: November 02, 2026, 07:18:26 am »
I don't know what FPC compiler you are using but I am using the Release with the FPC 3.2.4RC compiler, offered here and I do think it fixes some problems.
I did not specifically choose an fpc release. I simply sat up a spare computer with Debian 13, downloaded Lazarus 5.0 RC1 https://download.lazarus-ide.org/Lazarus%20Linux%20amd64%20DEB/Lazarus%205.0RC1/, installed it and compiled a few of my projects.

dbannon

  • Hero Member
  • *****
  • Posts: 3927
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 1 of 5.0
« Reply #107 on: November 02, 2026, 08:05:46 am »
I did not specifically choose an fpc release. I simply sat up a spare computer with Debian 13, downloaded Lazarus 5.0 RC1 https://download.lazarus-ide.org/Lazarus%20Linux%20amd64%20DEB/Lazarus%205.0RC1/, installed it and compiled a few of my projects.

KoBraSoft, I think you are still missing the point here. Your problem relates to FPC, not Lazarus. I am guessing you mean that you used the FPC from the official Debian repo, that is FPC322. (Check with the command fpc -vh). Debian only has officially released products in its main repos. And, sadly, FPC has not had an official release since 2021, FPC322. 

As Martin pointed out, the fix you are looking for does exist in FPC324rc1 (I just checked the code, yes, its there) so it probably solves your problem. Sometimes Debian has newer release candidates in backports but not, at the moment, as far as I can see. So, get it direct from the FPC downloads.

Sorry, I cannot connect to the FPC download sites at the moment, they are having heaps of problems with nasty AI Search engins screen scraping our content, so I cannot direct you to where you should download fpc324rc1 from. (You could try my https://github.com/davidbannon/FPC_Laz_Install if you are feeling brave. Its my way of installing, suites me, is far from "widely tested". But everything stays in your own home directory and is easily removed).

Please remember that the FPC developers have no control over the version of FPC that Debian ships. Lazarus devs have even less !

Davo

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

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #108 on: November 02, 2026, 08:52:37 am »
It's really not a matter which project it is. The problem that certain things require a newer FPC exists.

Lazarus does (whenever possible) release with the released FPC => that is 3.2.2 at this moment.

But, if you require those fixes, then you can install another FPC, download from the URL given here:
https://forum.lazarus.freepascal.org/index.php/topic,74923.0.html

You have to remove the older FPC. (having more than one gets a bit tricky).
Also I don't know if the lazarus rpm will need convincing that their dependencies are fulfilled. All my Linux installs are build from sources.

In any way if you force the install (bypass any rpm/deb dependency rules) then Lazarus should work with FPC 3.2.4rc1.
And FPC 3.2.4rc1 is likely stable enough.


dbannon

  • Hero Member
  • *****
  • Posts: 3927
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 1 of 5.0
« Reply #109 on: November 02, 2026, 09:31:04 am »
Hmm, I did not realise rc2 was out, clearly not paying attention.

A couple of points -
Lazarus does (whenever possible) release with the released FPC => that is 3.2.2 at this moment.
Sure but many people are using the rc and they, too build the current Lazarus flawlessly.


Quote
You have to remove the older FPC. (having more than one gets a bit tricky).
One more reason to build, in user space, from source. Easy to keep them separate.

Quote
Also I don't know if the lazarus rpm will need convincing that their dependencies are fulfilled. All my Linux installs are build from sources.
In this case, you mean .deb, not .rpm.  Last time I used one of those (I too always build from source) dependencies in the .deb were fine on Trixie. But to be safe, I'd install gcc and make before installing FPC. The deb only asks for binutils, libc6-dev.

Remember, Lazarus has its own list of dependencies, mainly widget set related.

Davo

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

KoBraSoft

  • New Member
  • *
  • Posts: 28
Re: Lazarus Release Candidate 1 of 5.0
« Reply #110 on: November 02, 2026, 11:27:37 am »
I did not specifically choose an fpc release. I simply sat up a spare computer with Debian 13, downloaded Lazarus 5.0 RC1 https://download.lazarus-ide.org/Lazarus%20Linux%20amd64%20DEB/Lazarus%205.0RC1/, installed it and compiled a few of my projects.
I am guessing you mean that you used the FPC from the official Debian repo, that is FPC322.
No, i did not. Please see the link above  https://download.lazarus-ide.org/Lazarus%20Linux%20amd64%20DEB/Lazarus%205.0RC1/. This has nothing to do with debian, I think.

dbannon

  • Hero Member
  • *****
  • Posts: 3927
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 1 of 5.0
« Reply #111 on: November 03, 2026, 08:33:22 am »
No, i did not. Please see the link above  https://download.lazarus-ide.org/Lazarus%20Linux%20amd64%20DEB/Lazarus%205.0RC1/. This has nothing to do with debian, I think.

Ah, do you mean you installed lazarus AND the two FPC packages in that directory ?  If you did, then most of the above discussion is still relevant, both are clearly identified as being version 3.2.2 and, as mentioned, date back to 2021.

(or is lazarus-project_5.0.0-0_amd64.deb a combined Lazarus and FPC package ?  Don't know and don't care to download it just to look inside).

The fact remains, if you want that update, you should use a newer compiler. Thats is what a whole lot of other people are doing.

Davo

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

rnervi

  • New Member
  • *
  • Posts: 40
Re: Lazarus Release Candidate 1 of 5.0
« Reply #112 on: November 05, 2026, 10:44:10 am »
@CM630: it works for me on Windows 10 x64 (clean VM), Lazarus 5.0 RC1, FPC 3.2.2.

What I did: copied libssl-1_1-x64.dll and libcrypto-1_1-x64.dll (OpenSSL 1.1.1o, 64-bit) into the Lazarus folder, next to lazarus.exe. I took them from a Lazarus 4.8 install where OPM already worked.
<Unblocked them first (Properties > Unblock, as TomVlugt1963 wrote): yes >
After restarting Lazarus, OPM opens and shows the package list.

Two things that could explain your failure:
1) bitness - the DLLs must match the Lazarus you run: a 32-bit Lazarus needs the 32-bit files
   (libssl-1_1.dll / libcrypto-1_1.dll), a 64-bit Lazarus the "-x64" ones. Your signature says 32 bit.
2) blocked files - see TomVlugt1963's post above (downloaded DLLs flagged by Windows).

I have not tried Windows 7. wp's explanation above matches what I saw: with https, OPM cannot fetch the
SSL libraries by itself, so on Windows they have to be put there by hand.

----


Placing *libcrypto*.dll and *ssl*.dll did not make OPM work in Win 10, I have not tried in Win 7 yet.

Try to enable automatic updates, and then wait until it has done so.
Automatic updates of OPM (Lazarus — Main Menu — Online package manager — Options — Open SSL — Automatically download files from ... ) or sth. else?

CM630

  • Hero Member
  • *****
  • Posts: 1842
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 1 of 5.0
« Reply #113 on: November 05, 2026, 12:50:51 pm »
I tried many things, including copying the SSL files from Cuda Text to Lazarus.
I will try again, probably later today, but in Windows 10 I do not get an SSL error, just and non-descriptive error.
The attached screenshot is the error message from Win7 (or Windows11 after renaming/deleting the *ssl*.dlls in ..\Windows\SysWOW64\.
« Last Edit: November 05, 2026, 12:56:01 pm by CM630 »
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 317
Re: Lazarus Release Candidate 1 of 5.0
« Reply #114 on: November 06, 2026, 11:03:14 am »
Fantastic. I've just installed 5.0RC1 on my Mac (Golden Gate 27.1) and I no longer have to add the components into the form defintiion every time I add one, nor does it error when I add an event. Fabulous.

However....compiling a project gives me:
Code: Pascal  [Select][+][-]
  1. PCReptonDecoder.lpr(12,3) Fatal: Cannot find Interfaces used by PCReptonDecoder, incompatible ppu=/Users/geraldholdsworth/Lazarus 5.0/lcl/units/aarch64-darwin/cocoa/interfaces.ppu, package LCL

Is this because I've installed this as a tertiary install alongside 4.6 and 4.8, but not installed the FPC that came with 5.0?
I thought it should be OK as the FPC is the same version as the other two.
OK, as no-one had any suggestions, I had look myself. Found that 4.6 and 4.8 were using FPC 3.2.4RC1 while 5.0 is using FPC 3.2.4RC2. So, installed that, which then broke 4.6 and 4.8. 5.0 now compiles but then has a problem with the debugger, where it won't start.

The upshot now is that I can not write anything and test it with a debugger.

Thinking of going back to 4.8/3.2.4RC1

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #115 on: November 06, 2026, 12:43:23 pm »
The upshot now is that I can not write anything and test it with a debugger.

And the error is??? what message?

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 317
Re: Lazarus Release Candidate 1 of 5.0
« Reply #116 on: November 06, 2026, 12:46:14 pm »
And the error is??? what message?
'The debugger encountered an internal error.

Save your work.
You may then hit "Stop", or "Reset debugger" to terminate this debug session.'

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #117 on: November 06, 2026, 03:15:42 pm »
And the error is??? what message?
'The debugger encountered an internal error.

Can you please

1) 
Open "Menu > View > IDE Internals > Debug Output".
This must be done ** BEFORE ** starting to debug (before F9).

When the error happens copy the content (or the last 100 lines of it).

2)
If possible run the IDE from console.
That is open a terminal and run
./Lazarus.app/Content/MacOs/lazarus

When the error happen, see if anything got written to the terminal, and copy it.

----
Thanks.



geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 317
Re: Lazarus Release Candidate 1 of 5.0
« Reply #118 on: November 06, 2026, 03:24:02 pm »
Debug Output:
Code: [Select]
>> settings set -- frame-format "frame #${frame.index}: ${frame.pc}, {${frame.sp}}, {${frame.fp}} &&//FULL: {${line.file.fullpath}} &&//SHORT: {${line.file.basename}} &&//LINE: {${line.number}} &&//MOD: {${module.file.basename}} &&//FUNC: {${function.name-with-args}} <<&&//FRAME\n"
(lldb) settings set -- frame-format "frame #${frame.index}: ${frame.pc}, {${frame.sp}}, {${frame.fp}} &&//FULL: {${line.file.fullpath}} &&//SHORT: {${line.file.basename}} &&//LINE: {${line.number}} &&//MOD: {${module.file.basename}} &&//FUNC: {${function.name-with-args}} <<&&//FRAME\n"
>> settings set -- thread-format "thread #${thread.index}: tid=${thread.id%tid}: ${frame.pc}, {${frame.sp}}, {${frame.fp}} &&//FULL: {${line.file.fullpath}} &&//SHORT: {${line.file.basename}} &&//LINE: {${line.number}} &&//MOD: {${module.file.basename}} &&//FUNC: {${function.name-with-args}} <<&&//FRAME{, stop reason = ${thread.stop-reason}}\n"
(lldb) settings set -- thread-format "thread #${thread.index}: tid=${thread.id%tid}: ${frame.pc}, {${frame.sp}}, {${frame.fp}} &&//FULL: {${line.file.fullpath}} &&//SHORT: {${line.file.basename}} &&//LINE: {${line.number}} &&//MOD: {${module.file.basename}} &&//FUNC: {${function.name-with-args}} <<&&//FRAME{, stop reason = ${thread.stop-reason}}\n"
>> settings set -- thread-stop-format "thread #${thread.index}: tid=${thread.id%tid}: ${frame.pc}, {${frame.sp}}, {${frame.fp}} &&//FULL: {${line.file.fullpath}} &&//SHORT: {${line.file.basename}} &&//LINE: {${line.number}} &&//MOD: {${module.file.basename}} &&//FUNC: {${function.name-with-args}} <<&&//FRAME{, stop reason = ${thread.stop-reason}}\n"
(lldb) settings set -- thread-stop-format "thread #${thread.index}: tid=${thread.id%tid}: ${frame.pc}, {${frame.sp}}, {${frame.fp}} &&//FULL: {${line.file.fullpath}} &&//SHORT: {${line.file.basename}} &&//LINE: {${line.number}} &&//MOD: {${module.file.basename}} &&//FUNC: {${function.name-with-args}} <<&&//FRAME{, stop reason = ${thread.stop-reason}}\n"
>> target stop-hook add -o "thread list"
(lldb) target stop-hook add -o "thread list"
Stop hook #1 added.
>> settings set -- stop-line-count-after 0
(lldb) settings set -- stop-line-count-after 0
>> settings set -- stop-line-count-before 0
(lldb) settings set -- stop-line-count-before 0
>> settings set -- stop-disassembly-count 0
(lldb) settings set -- stop-disassembly-count 0
>> settings set -- target.env-vars "OSLogRateLimit=64"
(lldb) settings set -- target.env-vars "OSLogRateLimit=64"
>> settings set -- target.env-vars "USER=geraldholdsworth"
(lldb) settings set -- target.env-vars "USER=geraldholdsworth"
>> settings set -- target.env-vars "COMMAND_MODE=unix2003"
(lldb) settings set -- target.env-vars "COMMAND_MODE=unix2003"
>> settings set -- target.env-vars "__CFBundleIdentifier=lazarus.freepascal.ide"
(lldb) settings set -- target.env-vars "__CFBundleIdentifier=lazarus.freepascal.ide"
>> settings set -- target.env-vars "PATH=/usr/bin:/bin:/usr/sbin:/sbin"
(lldb) settings set -- target.env-vars "PATH=/usr/bin:/bin:/usr/sbin:/sbin"
>> settings set -- target.env-vars "LOGNAME=geraldholdsworth"
(lldb) settings set -- target.env-vars "LOGNAME=geraldholdsworth"
>> settings set -- target.env-vars "SSH_AUTH_SOCK=/var/run/com.apple.launchd.tDj4KHifWh/Listeners"
(lldb) settings set -- target.env-vars "SSH_AUTH_SOCK=/var/run/com.apple.launchd.tDj4KHifWh/Listeners"
>> settings set -- target.env-vars "HOME=/Users/geraldholdsworth"
(lldb) settings set -- target.env-vars "HOME=/Users/geraldholdsworth"
>> settings set -- target.env-vars "SHELL=/bin/zsh"
(lldb) settings set -- target.env-vars "SHELL=/bin/zsh"
>> settings set -- target.env-vars "TMPDIR=/var/folders/sp/r7dyc78d19j36ftwtmckmr3w0000gn/T/"
(lldb) settings set -- target.env-vars "TMPDIR=/var/folders/sp/r7dyc78d19j36ftwtmckmr3w0000gn/T/"
>> settings set -- target.env-vars "__CF_USER_TEXT_ENCODING=0x1F5:0:2"
(lldb) settings set -- target.env-vars "__CF_USER_TEXT_ENCODING=0x1F5:0:2"
>> settings set -- target.env-vars "XPC_SERVICE_NAME=application.lazarus.freepascal.ide.153620829.153604941"
(lldb) settings set -- target.env-vars "XPC_SERVICE_NAME=application.lazarus.freepascal.ide.153620829.153604941"
>> settings set -- target.env-vars "XPC_FLAGS=0x0"
(lldb) settings set -- target.env-vars "XPC_FLAGS=0x0"
>> settings set -- target.process.thread.step-avoid-regexp ""
(lldb) settings set -- target.process.thread.step-avoid-regexp ""
>> target create '/Users/geraldholdsworth/Library/Mobile Documents/com~apple~CloudDocs/Programming/Lazarus/ReptonMapCreator/lib/Debug/aarch64-darwin/ReptonMapCreator.app'
(lldb) target create '/Users/geraldholdsworth/Library/Mobile Documents/com~apple~CloudDocs/Programming/Lazarus/ReptonMapCreator/lib/Debug/aarch64-darwin/ReptonMapCreator.app'
Current executable set to '/Users/geraldholdsworth/Library/Mobile Documents/com~apple~CloudDocs/Programming/Lazarus/ReptonMapCreator/lib/Debug/aarch64-darwin/ReptonMapCreator.app' (arm64).
>> settings clear target.run-args
(lldb) settings clear target.run-args
>> breakpoint set --func fpc_break_error -K false
(lldb) breakpoint set --func fpc_break_error -K false
Breakpoint 1: no locations (pending).
>> breakpoint set --func fpc_runerror -K false
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --func fpc_runerror -K false
Breakpoint 2: no locations (pending).
>> breakpoint set --func fpc_raiseexception -K false
WARNING:  Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --func fpc_raiseexception -K false
Breakpoint 3: where = ReptonMapCreator`FPC_RAISEEXCEPTION, address = 0x0000000100019030
>> breakpoint command add 3
>> p/x $x0
>> p/x $x2
>> p ((char ***)$x0)[0][3]
>> p ((char **)$x0)[1]
>> DONE
>> version
(lldb) breakpoint command add 3
(lldb) version
>> breakpoint command add 2
>> p/x $x0
>> DONE
>> version
lldb-2103.0.34.407
Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4.1.1)
(lldb) breakpoint command add 2
(lldb) version
>> breakpoint command add 1
>> p/x $x0
>> DONE
>> version
lldb-2103.0.34.407
Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4.1.1)
(lldb) breakpoint command add 1
(lldb) version
>> settings set -- target.process.thread.step-avoid-regexp ""
lldb-2103.0.34.407
>> process launch -n -w /Users/geraldholdsworth/Library/Mobile Documents/com~apple~CloudDocs/Programming/Lazarus/ReptonMapCreator/lib/Debug/aarch64-darwin/
Apple Swift version 6.4.2 (swiftlang-6.4.2.1.9 clang-2100.4.1.1)
(lldb) settings set -- target.process.thread.step-avoid-regexp ""
(lldb) process launch -n -w /Users/geraldholdsworth/Library/Mobile Documents/com~apple~CloudDocs/Programming/Lazarus/ReptonMapCreator/lib/Debug/aarch64-darwin/
error: No such file or directory: /Users/geraldholdsworth/Library/Mobile
>> process kill
>> quit

Terminal output:
Code: [Select]
Hint: (lazarus) SetPrimaryConfigPath NewValue="/Users/geraldholdsworth/Lazarus 5.0/config"
Hint: (lazarus) Using config file: "/Users/geraldholdsworth/Lazarus 5.0/lazarus.cfg"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/Users/geraldholdsworth/Lazarus 5.0/config"
Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
Hint: (lazarus) [TMainIDE.LoadGlobalOptions] overriding Lazarusdir with command line: /Users/geraldholdsworth/Lazarus 5.0/
Hint: (lazarus) [TMainIDE.DoOpenProjectFile] "/Users/geraldholdsworth/Library/Mobile Documents/com~apple~CloudDocs/Programming/Lazarus/ReptonMapCreator/ReptonMapCreator.lpi"
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=aarch64-darwin--cocoa New=aarch64-darwin--cocoa Changed: OS/CPU=True LCL=False
InitOpenedProjectFile select form in designer: CharEditForm:TCharEditForm TDesigner
----------------
Hint: (lazarus) [TMainIDE.DoRunProjectWithDebug] INIT
Note: (lazarus) [TMainIDE.DoBuildProject] MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be done
Hint: (lazarus) [TMainIDE.DoRunProjectWithDebug] Debugger=TFpLldbDebugger
Hint: (lazarus) [TMainIDE.DoRunProjectWithDebug] END

I was about to try uninstalling Lazarus and then re-installing, see if that made a difference.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #119 on: November 06, 2026, 03:38:22 pm »
Ah, spaces in the filename/filepath.

That was fixed after 5.0RC1 was released (will be in RC2).

Either avoid spaces, or apply the patch from https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/a6406fac080a1f709cc0826240a032a886b1793a

 

TinyPortal © 2005-2018