Sign in Join

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

Mailing lists / pas2js / 2025-08

Cannot compile pas2js main with FPC 3.2.2

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Ondrej Pokorny

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

Reply by email

Michael Van Canneyt
to Ondrej Pokorny

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.

Ondrej Pokorny wrote 38 lines
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 - https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js

Reply by email

Ondrej Pokorny
to Michael Van Canneyt

Thank you Michael, works like a charm now!

Michael Van Canneyt wrote 9 lines
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.

Reply by email