Sign in Join

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

Mailing lists / pas2js / 2023-08

Cannot build pas2js latest git

7 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,

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

Reply by email

Michael Van Canneyt
to Ondrej Pokorny
Ondrej Pokorny wrote
Hello, I just updated pas2js and when doing make, I get the following errors:

Marco added something that is not backwards compatible on windows, but since I work on linux, I didn't notice :/

Should be fixed in latest FPC svn.

Michael.

Reply by email

Ondrej Pokorny
to Michael Van Canneyt

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

Reply by email

Ondrej Pokorny
to Ondrej Pokorny

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"

Ondrej

Reply by email

Michael Van Canneyt
to Ondrej Pokorny
Ondrej Pokorny wrote 5 lines
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.

If that helps, I'll commit that change.

Michael.

Reply by email

Ondrej Pokorny
to Michael Van Canneyt
Michael Van Canneyt wrote 16 lines
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

Reply by email