[Pas2js] Cannot build pas2js latest git

Ondrej Pokorny lazarus at kluug.net
Fri Aug 11 18:54:36 CEST 2023


Thank you Michael,

this is very strange. I use pas2js on 2 Windows computers. I have the 
same make scripts (I do "make clean all").

One PC makes only pas2js.exe and exits with success.

The other PC makes pas2js.exe, then it continues with webidl2pas.exe 
(compiler\utils\pas2js\webidl2pas.pp), with success. Then it compiles 
compiler\utils\pas2js\compileserver.pp and fails.

I don't know why pas2js make compiles the extra utils on the 2nd computer.

Here is the full output:

C:\ENTWICKLUNG\FPC\pas2js>c:\ENTWICKLUNG\FPC\3.2.2\bin\i386-win32\make 
clean all PP=c:\ENTWICKLUNG\FPC\3.2.2\bin\i386-win32\ppc386.exe
./fpmake.exe clean --os=win32 --cpu=i386 -o -di386 
--compiler=c:/ENTWICKLUNG/FPC/3.2.2/bin/i386-win32/ppc386.exe -bu
Warning: Removed non empty directory "bin\i386-win32"
Warning: Removed non empty directory "units\i386-win32\"
./fpmake.exe compile --os=win32 --cpu=i386 -o -di386 
--compiler=c:/ENTWICKLUNG/FPC/3.2.2/bin/i386-win32/ppc386.exe -bu
Start compiling package pas2js for target i386-win32.
        Compiling compiler\utils\pas2js\pas2js.pp
        Compiling .\compiler\packages\fcl-base\src\custapp.pp
        Compiling .\compiler\packages\fcl-base\src\singleinstance.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsfileutils.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsutils.pp
        Compiling .\compiler\packages\pastojs\src\pas2jslogger.pp
        Compiling .\compiler\packages\fcl-passrc\src\pastree.pp
        Compiling .\compiler\packages\fcl-passrc\src\pscanner.pp
        Compiling .\compiler\packages\fcl-js\src\jstree.pp
        Compiling .\compiler\packages\fcl-js\src\jsbase.pp
        Compiling .\compiler\packages\fcl-js\src\jstoken.pp
        Compiling .\compiler\packages\fcl-js\src\jswriter.pp
        Compiling .\compiler\packages\fcl-json\src\fpjson.pp
        Compiling .\compiler\packages\fcl-base\src\contnrs.pp
        Compiling .\compiler\packages\pastojs\src\pas2jscompiler.pp
        Compiling .\compiler\packages\fcl-js\src\jssrcmap.pas
        Compiling .\compiler\packages\fcl-json\src\jsonparser.pp
        Compiling .\compiler\packages\fcl-json\src\jsonscanner.pp
        Compiling .\compiler\packages\fcl-json\src\jsonreader.pp
        Compiling .\compiler\packages\fcl-passrc\src\pparser.pp
        Compiling .\compiler\packages\fcl-passrc\src\pasresolver.pp
        Compiling .\compiler\packages\fcl-passrc\src\pasresolveeval.pas
        Compiling .\compiler\packages\fcl-passrc\src\pasuseanalyzer.pas
        Compiling .\compiler\packages\fcl-base\src\avl_tree.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsresstrfile.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsresources.pp
        Compiling .\compiler\packages\fcl-base\src\base64.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
        Compiling .\compiler\packages\pastojs\src\fppjssrcmap.pp
        Compiling .\compiler\packages\pastojs\src\pas2jspparser.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsuseanalyzer.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsfscompiler.pp
        Compiling .\compiler\packages\pastojs\src\pas2jsfilecache.pp
        Compiling .\compiler\packages\pastojs\src\pas2jscompilerpp.pp
        Compiling .\compiler\packages\pastojs\src\pas2jscompilercfg.pp
        Linking bin\i386-win32\pas2js.exe
        Compiling compiler\utils\pas2js\webidl2pas.pp
        Compiling .\compiler\packages\webidl\src\webidlscanner.pp
        Compiling .\compiler\packages\webidl\src\webidltopas.pp
        Compiling .\compiler\packages\webidl\src\webidlparser.pp
        Compiling .\compiler\packages\webidl\src\webidldefs.pp
        Compiling .\compiler\packages\fcl-base\src\pascodegen.pp
        Compiling .\compiler\packages\webidl\src\webidltopas2js.pp
        Compiling .\compiler\packages\webidl\src\webidltowasmjob.pp
        Linking bin\i386-win32\webidl2pas.exe
        Compiling compiler\utils\pas2js\compileserver.pp
        Compiling compiler\utils\pas2js\httpcompiler.pp
        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(527,64) Error: Incompatible type for arg no. 3: Got 
"Pointer", expected "LongInt"
syncobjs.pp(532,99) Error: Incompatible type for arg no. 3: Got 
"Pointer", expected "LongInt"
syncobjs.pp(537,46) Error: Incompatible type for arg no. 2: Got 
"Pointer", expected "LongInt"
syncobjs.pp(542,72) Error: Incompatible type for arg no. 2: Got 
"Pointer", expected "LongInt"
syncobjs.pp(548,93) Error: Incompatible type for arg no. 3: Got 
"Pointer", expected "LongInt"
syncobjs.pp(553,66) Error: Incompatible type for arg no. 2: Got 
"Pointer", expected "LongInt"
syncobjs.pp(560) Fatal: There were 6 errors compiling module, stopping
Fatal: Compilation aborted

   $00436150
   $0043641E
   $0043B5DC
   $0043BABD
   $0043D09A
   $0043CBDB
   $0043D8A9
   $0043FEC1
   $00435527
   $00435990
   $00403357
make: *** [all] Error 1



More information about the Pas2js mailing list