[Lazarus] svn update can't be compiled

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list

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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
On Mon, Feb 24, 2020 at 5:24 PM John Landmesser via lazarus
<[hidden email]> 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
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
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!


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
On Mon, Feb 24, 2020 at 10:22 PM John Landmesser via lazarus
<[hidden email]> 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
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
I get the same error on MacOS

On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus <[hidden email]> 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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus
<[hidden email]> wrote:
> I get the same error on MacOS

There is a fix/workaround in r62671, commit by Ondrej this morning.

Juha
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Issue is fixed just now, didn't test ist but do a svn update again!

2020-02-25 07:37 Ondrej Pokorny Resolution open => fixed

Am 25.02.20 um 10:53 schrieb Andrea Mauri via lazarus:
I get the same error on MacOS

On Mon, 24 Feb 2020 at 16:24, John Landmesser via lazarus <[hidden email]> 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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus



--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Am 25.02.20 um 10:23 schrieb Juha Manninen via lazarus:
> 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!

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Thanks, I can compile Lazarus now.

On Tue, 25 Feb 2020 at 11:07, Juha Manninen via lazarus <[hidden email]> wrote:
On Tue, Feb 25, 2020 at 11:53 AM Andrea Mauri via lazarus
<[hidden email]> wrote:
> I get the same error on MacOS

There is a fix/workaround in r62671, commit by Ondrej this morning.

Juha
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] svn update can't be compiled

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On Tue, Feb 25, 2020 at 1:35 PM John Landmesser via lazarus <[hidden email]> 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


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus