[Pas2js] Cannot build pas2js latest git

Ondrej Pokorny lazarus at kluug.net
Sat Aug 12 10:44:04 CEST 2023


On 11.08.2023 23:46, Michael Van Canneyt via Pas2js wrote:
> On Fri, 11 Aug 2023, Ondrej Pokorny via Pas2js wrote:
>> I found out what makes the difference: delete fpmake.exe and then 
>> make compiles the extra utils and fails with the error:
>>
>> syncobjs.pp(527,64) Error: Incompatible type for arg no. 3: Got 
>> "Pointer", expected "LongInt"
>
> I think for version 3.2.2, NOPOINTER must be defined.
>
> Can you please try adding
>
> {$IFDEF VER3_2}
> {$DEFINE NOPOINTER}
> {$ENDIF}
>
> at the top of the file syncobjs.pp.

Yes, that helped, thank you! But it still doesn't compile with this 
error (full output is below):

Recompiling Registry, checksum changed for units\i386-win32\inifiles.ppu
fpmimetypes.pp(95,6) Fatal: Can't find unit Registry used by fpmimetypes
Fatal: Compilation aborted

I don't understand this one. registry.ppu is present in the needed path 
(C:\ENTWICKLUNG\FPC\3.2.2\units\i386-win32\fcl-registry\registry.ppu).


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
        Compiling .\compiler\packages\fcl-web\src\base\fpmimetypes.pp
        Compiling .\compiler\packages\fcl-base\src\inifiles.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
Writing Resource String Table file: syncobjs.rsj
Compiling .\compiler\packages\fcl-web\src\base\fpmimetypes.pp
Compiling .\compiler\packages\fcl-base\src\inifiles.pp
inifiles.pp(329,3) Note: Local variable "AIndex" not used
inifiles.pp(377,15) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
inifiles.pp(394,15) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
inifiles.pp(686,54) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(777,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(787,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(797,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(806,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(814,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(822,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(830,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(838,27) Warning: Symbol "FormatSettingsActive" is 
deprecated: "Use options instead"
inifiles.pp(849,63) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(851,62) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(857,3) Note: Local variable "M" not used
inifiles.pp(862,5) Note: Local variable "l2" not used
inifiles.pp(1043,5) Note: Local variable "bAppendNextLine" not used
inifiles.pp(1043,22) Note: Local variable "bAppended" not used
inifiles.pp(1069,22) Warning: Symbol "EscapeLineFeeds" is deprecated: 
"Use options instead"
inifiles.pp(1132,63) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1134,59) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1136,22) Warning: Symbol "StripQuotes" is deprecated: "Use 
options instead"
inifiles.pp(1182,65) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1190,44) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1208,65) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1226,65) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1266,30) Warning: Symbol "StripQuotes" is deprecated: "Use 
options instead"
inifiles.pp(1270,65) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1322,63) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1336,63) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
inifiles.pp(1339,59) Warning: Symbol "CaseSensitive" is deprecated: "Use 
options instead"
Writing Resource String Table file: inifiles.rsj
PPU Loading 
C:\ENTWICKLUNG\FPC\3.2.2\units\i386-win32\fcl-registry\registry.ppu
PPU Source: registry.pp not available
PPU Source: regdef.inc not available
PPU Source: winreg.inc not available
PPU Source: regini.inc not available
Recompiling Registry, checksum changed for units\i386-win32\inifiles.ppu
fpmimetypes.pp(95,6) Fatal: Can't find unit Registry used by fpmimetypes
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