[Pas2js] Cannot compile pas2js main with FPC 3.2.2
Michael Van Canneyt
michael at freepascal.org
Sun Aug 17 19:46:05 CEST 2025
Done.
Hash list changed in trunk, to support names of >255 chars.
pas2js made use of some non-standard feature :/
Thanks for pointing it out!
Michael.
On Sun, 17 Aug 2025, Ondrej Pokorny via Pas2js wrote:
> Hello Michael,
>
> I cannot build current main Pas2JS with stable FPC 3.2.2.
>
> The errors are the following:
>
> Free Pascal Compiler version 3.2.2+dfsg-32 [2024/01/05] for x86_64
> Copyright (c) 1993-2021 by Florian Klaempfl and others
> Target OS: Linux for x86-64
> Compiling /home/adminek/software/pas2js/compiler/utils/pas2js/pas2js.pp
> [...]
> Compiling ./compiler/packages/pastojs/src/pas2jsresources.pp
> Compiling ./compiler/packages/pastojs/src/pas2jsfs.pp
> Compiling ./compiler/packages/pastojs/src/pas2jshtmlresources.pp
> Compiling ./compiler/packages/pastojs/src/pas2jsjsresources.pp
> Compiling ./compiler/packages/pastojs/src/fppas2js.pp
> fppas2js.pp(3328,56) Error: Illegal qualifier
> fppas2js.pp(3334,32) Error: Illegal qualifier
>
> It is on these lines:
> OldItem:=TPasIdentifier(FExternalNames.List[Index].Data);
>
> I had to change it to:
> OldItem:=TPasIdentifier(FExternalNames.List^[Index].Data);
>
> The same with these lines:
> FItems.List[Index].Data:=Item;
> to
> FItems.List^[Index].Data:=Item;
>
> Can you please check?
>
> Thanks, Ondrej
>
> _______________________________________________
> Pas2js maillist - Pas2js at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
>
More information about the Pas2js
mailing list