Recent

Author Topic: Lazarus Release 3.6  (Read 15318 times)

backprop

  • Full Member
  • ***
  • Posts: 101
Re: Lazarus Release 3.6
« Reply #30 on: October 12, 2024, 08:48:55 am »
> Debugger:
If you are Win/Linux with an Intel/AMD CPU then ensure to use FpDebug.

In any case, if you have issues open a thread with specific details.

It seems that 3.2 was broken release for me with KDE Neon and Ryzen. Now Neon also have new release, thus I will see...

However, I needed to install Lazarus from ground and reload packages. Otherwise it refuses to compile with existed updated config file.


vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
Re: Lazarus Release 3.6
« Reply #31 on: October 12, 2024, 09:22:09 am »
The Debian package of Lazarus is not installable on Debian 11: dpkg exits with this error message:
Code: [Select]
uses unknown compression for member 'control.tar.zst', giving upWorkaround: repack it with a script.
Code: Bash  [Select][+][-]
  1. #!/bin/sh
  2. mkdir -p pkgtemp/DEBIAN
  3. ar x "$1"
  4. rm "$1" debian-binary
  5. tar --zstd -xf control.tar.zst
  6. rm control.tar.zst
  7. mv conffiles control pkgtemp/DEBIAN/
  8. tar --zstd -xf data.tar.zst
  9. rm data.tar.zst
  10. mv etc usr pkgtemp/
  11. dpkg-deb -b pkgtemp "$1"
  12. rm -rf pkgtemp
  13.  
This way the dpkg in Debian 11 will be able to install the package too. As a side effect the package will be smaller by ~7% (~10 MB).
And after that, Lazarus does not work anymore.
Code: [Select]
startlazarus: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by startlazarus)
Code: [Select]
lazarus-ide: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by lazarus-ide)

The packages are probably being built on newer versions of Debian. The packagers need to build for Debian 11 and earlier if needed.

I got the same error when I tried to install the current version of libQtPas on a Debian 11 system and had to use the same workaround.

Debian 11 also depends on earlier glibc-2.31.
Lazarus 3.0/FPC 3.2.2

Ericktux

  • Sr. Member
  • ****
  • Posts: 352
Re: Lazarus Release 3.6
« Reply #32 on: October 19, 2024, 08:51:48 am »
muchas gracias chicos, genial trabajo, belleza de software

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: Lazarus Release 3.6
« Reply #33 on: October 23, 2024, 10:47:38 pm »
Is is me or is something broken ?

host: linux x86_64
source: https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%203.6/lazarus-3.6-0.tar.gz/download
build: make clean bigide

building lazarus with FPC 3.2.3 using my script results in:
Code: [Select]
(3104) Compiling objectlists.pas
(3104) Compiling textstrings.pas
(3104) Compiling uitypes.pas
/media/ramdisk/work/src/lazarus/components/lazutils/uitypes.pas(107,5) Fatal: (2003) Syntax error, ")" expected but "," found
Fatal: (1018) Compilation aborted
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 3.6
« Reply #34 on: October 24, 2024, 12:41:43 am »
works OK for me. Its here -

Code: [Select]
93   ModalResultStr: array[mrNone..mrLast] of shortstring = (
 94     'mrNone',
 95     'mrOk',
 96     'mrCancel',
 97     'mrAbort',
 98     'mrRetry',
 99     'mrIgnore',
100     'mrYes',
101     'mrNo',
102     'mrAll',
103     'mrNoToAll',
104     'mrYesToAll',
105     'mrClose'
106     {$IF FPC_FULLVERSION>=30203}
107     ,                                                   // This line, this comma !
108     'mrContinue',
109     'mrTryAgain'
110     {$ENDIF}
111     );

Code looks fine too !  Is your mrLast set to the 'wrong' value somehow ?  Maybe where ever it is defined needs recompile, its sensitive to the FPV322->FPC323 upgrade.

Davo

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

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: Lazarus Release 3.6
« Reply #35 on: October 24, 2024, 01:34:58 am »
Thank you very much for the feedback dbannon.

Seems to be an issue at my side but I am a bit confused (nothing that a re-build can't fix).

According to the date my FPC 3.2.3 is from august 7th 2024 though the contents of the corresponding system.uitypes shows:
Code: Pascal  [Select][+][-]
  1. mrNone = 0;
  2.   mrOK = mrNone + 1;
  3.   mrCancel = mrNone + 2;
  4.   mrAbort = mrNone + 3;
  5.   mrRetry = mrNone + 4;
  6.   mrIgnore = mrNone + 5;
  7.   mrYes = mrNone + 6;
  8.   mrNo = mrNone + 7;
  9.   mrAll = mrNone + 8;
  10.   mrNoToAll = mrNone + 9;
  11.   mrYesToAll = mrNone + 10;
  12.   mrClose = mrNone + 11;
  13.   mrLast = mrClose;
  14.  

and that does not match the code from gitlab (e.g. missing the two extra entries  mrContinue and mrTryAgain). Gitlab also shows that this particular file has not been touched (inside fixes) since February 12th 2024.

Ergo you are correct with your hunch there Davo. Having it mentioned put me on the right track so that it was easy to find. Thx for that.

So... something seems to be off with the (actual) date from my current FPC 3.2.3 install. The confusing part is that I don't know why/how.

For anyone reading this, consider the issue fixed and sorry for the noise.
I have to upheld my report. Neither fixes 3_2 nor 3.2.3 is able to compile Lazarus 3.6. next attempt is reverting back to 3.2.2
« Last Edit: October 24, 2024, 03:08:18 am by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 3.6
« Reply #36 on: October 24, 2024, 03:17:00 am »
OK, I am using FPC release_3_2_4-branch. Now, I believe that that is almost the same as Fixes_3_2 and that is almost the same as FPC 3.2.3.  But, it seems, the key word here is "almost".

I suggest you try release_3_2_4-branch, aka release_3_2_4-branch-rc1

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

TRon

  • Hero Member
  • *****
  • Posts: 3623
Re: Lazarus Release 3.6
« Reply #37 on: October 24, 2024, 06:12:16 am »
Thank you very much for the suggestion dbannon. That version indeed seem to build Lazarus as intended.

In the meanwhile I figured out that the failure to build Lazarus 3.6 with FPC fixes (3.3.1) was due to a caching issue at my side.

in order to make Lazarus 3.6 able to be build with FPC 3.2.3 (3.2.2 fixes):
Code: [Select]
    sed -i -e 's/{$IF FPC_FULLVERSION>=30203}/{$IF FPC_FULLVERSION>30203}/g' "./src/lazarus/components/lazutils/graphtype.pp"
    sed -i -e 's/{$IF FPC_FULLVERSION>=30203}/{$IF FPC_FULLVERSION>30203}/g' "./src/lazarus/components/lazutils/uitypes.pas"
    sed -i -e 's/{$IF FPC_FULLVERSION>=30203}/{$IF FPC_FULLVERSION>30203}/g' "./src/lazarus/lcl/controls.pp"
    sed -i -e 's/{$IF FPC_FULLVERSION >= 30203}/{$IF FPC_FULLVERSION>30203}/g' "./src/lazarus/lcl/controls.pp"
    sed -i -e 's/{$IF FPC_FULLVERSION>=30203}/{$IF FPC_FULLVERSION>30203}/g' "./src/lazarus/lcl/dialogs.pp"
    sed -i -e 's/{$IF FPC_FULLVERSION>=30203}/{$IF FPC_FULLVERSION>30203}/g' "./src/lazarus/lcl/graphics.pp"
    sed -i -e 's/{$if FPC_FullVersion < 30203}/{$if FPC_FullVersion <= 30203}/g' "./src/lazarus/lcl/lazcanvas.pas"
    sed -i -e 's/{$IF FPC_FullVersion < 30203}/{$IF FPC_FullVersion <= 30203}/g' "./src/lazarus/lcl/lazcanvas.pas"
😫


EDIT:
Problem solved: 3.2.3 in repo <> FPC fixes _3_2


PS: *sight*
startup-dialog, searching for sources, answer:
/home/admin/Games/Heroic/Prefixes/default/LEGO The Lord of the Rings/dosdevices/z:/media/remote/buzz/home/apps/fpc/3.2.2/source

Please, just stop doing these things !
« Last Edit: October 29, 2024, 12:57:27 am by TRon »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

pleumann

  • Jr. Member
  • **
  • Posts: 95
Re: Lazarus Release 3.6
« Reply #38 on: November 12, 2024, 07:13:31 pm »
Awesome! And 4.0 is around the corner. Thanks, Lazarus team, for this awesome IDE!

 

TinyPortal © 2005-2018