Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-02

svn update can't be compiled

10 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Landmesser

Hi,

Info:

Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2

error compiling the IDE:

Show quoted text 11 lines
Lazarus-Quelltext aufräumen: Erfolg Kompiliere Package FCL 1.0.1: Erfolg Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2 laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: "Use NodeFilter instead." laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: "Use NodeFilter instead." Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1 screen.inc(438,26) Error: Call by var for arg no. 1 has to match exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString" Kompiliere Package CodeTools 1.0.1: Abgebrochen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200224/aaf7a387/attachment.html>

Reply by email

Juha Manninen
to John Landmesser
PM John Landmesser wrote
Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 ... screen.inc(438,26) Error: Call by var for arg no. 1 has to match exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString"

It is reported :
https://bugs.freepascal.org/view.php?id=36728
The nasty thing is that the bug in FPC was fixed almost 3.5 years ago but still not included in any released FPC version. See the related issue #30306.
FPC project's release policy would need a revamp.

Juha

Reply by email

John Landmesser
to Juha Manninen

My solution:

For Manjaro (ArchLinux) i installed fpc-svn and fpc-src-svn from AUR with yay and now i have a running:

Lazarus 2.1.0 r62669 FPC 3.3.1 x86_64-linux-gtk2

Hope that big jump from 3.0.4 to 3.3.1 causes no troubles ... we'll see!

Thanks Juha for your information!

Reply by email

Juha Manninen
to John Landmesser
PM John Landmesser wrote
For Manjaro (ArchLinux) i installed fpc-svn and fpc-src-svn from AUR with yay and now i have a running: Lazarus 2.1.0 r62669 FPC 3.3.1 x86_64-linux-gtk2

I also run Manjaro Linux but I didn't know that AUR has FPC trunk. I would download it if I didn't build it already myself. Manjaro's official repo always has the latest versions of everything. It is super nice compared to repos of Debian + its derivatives for example.
However it doesn't help with FPC because they release so seldom. Ancient FPC 3.0.4 is still the latest.

This is almost unbearable. Issue #30306 was an important compatibility feature/fix. It got fixed some 3 and half years ago. When FPC 3.2 finally comes out, it may well be 4 years. Insanity! More and more people must build FPC from sources.
It hogs resources also from FPC devels. They have an endless merge exercise. Bug fixes from past years must be dug up and merged to 3.2 branch. Still the release will be outdated already when it finally comes out, because trunk has collected so much new stuff during the years.

Other FOSS projects have faced the same problem in past. They typically fixed it by adjusting their release policy. Release early, release
often. A principle of "release when it is ready" is doomed. No substantial SW is "ready" ever. There will always be things to fix and improve.

I hope there will be more forks of FPC project which concentrate on release schedule.
Maybe one of them could replace FPC in distro repos. Maybe Lazarus can switch to use it. Don't know ...

Juha

Reply by email

Andrea Mauri
to John Landmesser: Info: Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 error compiling the IDE:…

I get the same error on MacOS

On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus <

Show quoted text 29 lines
wrote: Hi, Info: Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 error compiling the IDE: Lazarus-Quelltext aufräumen: Erfolg Kompiliere Package FCL 1.0.1: Erfolg Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2 laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: "Use NodeFilter instead." laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: "Use NodeFilter instead." Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1 screen.inc(438,26) Error: Call by var for arg no. 1 has to match exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected "UnicodeString" Kompiliere Package CodeTools 1.0.1: Abgebrochen -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200225/4d39c9a6/attachment-0001.html>

Reply by email

John Landmesser
to Andrea Mauri: I get the same error on MacOS On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus <…

Issue is fixed just now, didn't test ist but do a svn update again!

2020-02-25 07:37 Ondrej Pokorny
<https://bugs.freepascal.org/view_user_page.php?id=3505> Resolution open => fixed

Andrea Mauri wrote 34 lines
I get the same error on MacOS On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus < <mailto:>> wrote: Hi, Info: Lazarus 2.1.0 r62571M FPC 3.0.4 x86_64-linux-gtk2 error compiling the IDE: > Lazarus-Quelltext aufräumen: Erfolg > Kompiliere Package FCL 1.0.1: Erfolg > Kompiliere Package LazUtils 1.0: Erfolg, Warnungen: 2 > laz2_dom.pas(1944,14) Warning: Symbol "BuildList" is deprecated: > "Use NodeFilter instead." > laz2_dom.pas(1952,14) Warning: Symbol "BuildList" is deprecated: > "Use NodeFilter instead." > Kompiliere Package LCLBase 2.1: Exit code 1, Fehler: 1 > screen.inc(438,26) Error: Call by var for arg no. 1 has to match > exactly: Got "TScreen.{Dynamic} Array Of TCursor" expected > "UnicodeString" > Kompiliere Package CodeTools 1.0.1: Abgebrochen -- _______________________________________________ lazarus mailing list <mailto:> https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200225/18acb8f7/attachment.html>

Reply by email

John Landmesser
to Juha Manninen: On Mon, Feb 24, 2020 at 10:22 PM John Landmesser via lazarus I also run Manjaro Linux but…
Juha Manninen wrote
I also run Manjaro Linux but I didn't know that AUR has FPC trunk. I would download it if I didn't build it already myself.

My experience:

pamac couldn't  build the svn versions from AUR, but

yay -S fpc-svn  fpc-src-svn

did it after "heavy working"

Use yay as user instead of pamac and most trouble with pamac are gone :-)

... and this issue is fixed right now!!

But i have to test this, or do i stay with 3.1.1?

Lots of fun for a pensioner!

Reply by email

Andrea Mauri
to Juha Manninen: On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus There is a fix/workaround in…

Thanks, I can compile Lazarus now.

On Tue, 25 Feb 2020 at 11:07, Juha Manninen via lazarus <

Show quoted text 15 lines
wrote: On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus wrote: > I get the same error on MacOS There is a fix/workaround in r62671, commit by Ondrej this morning. Juha -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200225/e8b7a487/attachment.html>

Reply by email

Juha Manninen
to John Landmesser: My experience: pamac couldn't  build the svn versions from AUR, but yay -S fpc-svn …

On Tue, Feb 25, 2020 at 1:35 PM John Landmesser via lazarus <

wrote: Use yay as user instead of pamac and most trouble with pamac are gone :-)

I have used yay _once_ when installing drivers for a Brother printer by following written instructions.
Anyway, good to know.

But i have to test this, or do i stay with 3.1.1?

FPC 3.1.1 (trunk) seems to work well. It may have experimental code for a new language feature or something but if you don't use that feature it should be OK.
Sometimes there are hiccups, broken revisions, but usually they are fixed quickly. If you bump into a bug, you can either wait for a fix or revert to an earlier revision.
It seems FPC trunk is used a lot (because there are no recent releases) and thus tested a lot, too.

Actually the same applies to development branches of many FOSS projects, including Lazarus.
Its developers use it for obvious reasons and spot broken revisions quickly. Many other people seem to use it as well.
It is not recommended for production use but if you can afford few hiccups occationally, it is very usable.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200225/ed702f73/attachment.html>

Reply by email