[Pas2js] Cannot build pas2js latest git

Ondrej Pokorny lazarus at kluug.net
Wed Aug 9 00:15:08 CEST 2023


Hello,

I just updated pas2js and when doing make, I get the following errors:

Compiling .\compiler\packages\fcl-base\src\syncobjs.pp
The installer encountered the following error:
External command "c:/ENTWICKLUNG/FPC/3.2.2/bin/i386-win32/ppc386.exe  
-Twin32 -FEbin\i386-win32 -FUunits\i386-win32\ -Fucompiler/utils/pas2js 
-Fucompiler/packages/pastojs/src -Fucompiler/packages/fcl-passrc/src 
-Fucompiler/packages/fcl-js/src -Fucompiler/packages/fcl-json/src 
-Fucompiler/packages/fcl-base/src -Fucompiler/packages/fcl-web/src/base 
-Fucompiler/packages/fcl-net/src -Fucompiler/packages/webidl/src 
-Ficompiler/packages/fcl-net/src/win 
-Ficompiler/packages/fcl-base/src/dummy -Ficompiler/packages/pastojs/src 
-di386 -Sc -viq compiler/utils/pas2js\compileserver.pp" failed with exit 
code 1. Console output:
Free Pascal Compiler version 3.2.2 [2021/05/15] for i386
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling compiler\utils\pas2js\compileserver.pp
Compiling compiler\utils\pas2js\httpcompiler.pp
Compiling .\compiler\packages\fcl-base\src\syncobjs.pp
syncobjs.pp(301,12) Error: Identifier not found "CoWaitForMultipleHandles"
syncobjs.pp(302,13) Error: Constant and CASE types do not match
syncobjs.pp(305,41) Warning: Local variable "SignaledIndex" does not 
seem to be initialized
syncobjs.pp(308,26) Error: Constant and CASE types do not match
syncobjs.pp(317,11) Warning: Comparison might be always true due to 
range of constant and expression
syncobjs.pp(525,64) Error: Incompatible type for arg no. 3: Got 
"Pointer", expected "LongInt"
syncobjs.pp(530,99) Error: Incompatible type for arg no. 3: Got 
"Pointer", expected "LongInt"
syncobjs.pp(535,46) Error: Incompatible type for arg no. 2: Got 
"Pointer", expected "LongInt"
syncobjs.pp(540,72) Error: Incompatible type for arg no. 2: Got 
"Pointer", expected "LongInt"
syncobjs.pp(546,93) Error: Incompatible type for arg no. 3: Got 
"Pointer", expected "LongInt"
syncobjs.pp(551,66) Error: Incompatible type for arg no. 2: Got 
"Pointer", expected "LongInt"
syncobjs.pp(558) Fatal: There were 9 errors compiling module, stopping
Fatal: Compilation aborted

Is this known or did I do something wrong?

Thanks
Ondrej



More information about the Pas2js mailing list