[Pas2js] pas2js make error in compileserver.pp

Ondrej Pokorny lazarus at kluug.net
Thu May 2 08:46:02 CEST 2024


On 30.04.2024 16:40, Michael Van Canneyt wrote:
> Are you building with FPC 3.3.1 ?
>
> AFAIK syncobjs will not compile with 3.2.2, since the necessary overloads
> for atomic operations are not present.
>
> Michael.

Hello Michael,

with current FPC trunk, there is a different error. See below:

        ...
        Compiling 
P:\software\pas2js\compiler\packages\fcl-base\src\custapp.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-base\src\singleinstance.pp
        Linking bin\i386-win32\pas2js.exe
        Compiling p:\software\pas2js\compiler\utils\pas2js\webidl2pas.pp
        Compiling 
P:\software\pas2js\compiler\packages\webidl\src\webidltowasmjob.pp
        Compiling 
P:\software\pas2js\compiler\packages\webidl\src\webidlparser.pp
        Compiling 
P:\software\pas2js\compiler\packages\webidl\src\webidlscanner.pp
        Compiling 
P:\software\pas2js\compiler\packages\webidl\src\webidldefs.pp
        Compiling 
P:\software\pas2js\compiler\packages\webidl\src\webidltopas.pp
        Compiling 
P:\software\pas2js\compiler\packages\webidl\src\webidltopas2js.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-base\src\pascodegen.pp
        Linking bin\i386-win32\webidl2pas.exe
        Compiling p:\software\pas2js\compiler\utils\pas2js\compileserver.pp
        Compiling p:\software\pas2js\compiler\utils\pas2js\httpcompiler.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\fpdebugcapturesvc.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\fphttp.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\httpdefs.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-base\src\uriparser.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\httpprotocol.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\httproute.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-net\src\ssockets.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-net\src\resolve.pp
        Compiling p:\software\pas2js\compiler\utils\pas2js\dirwatch.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-base\src\syncobjs.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\fpwebfile.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\httpjson.pp
        Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\fpmimetypes.pp
The installer encountered the following error:
External command "p:/software/FPC/exp/bin/i386-win32/ppc386.exe -Twin32 
-FEbin\i386-win32 -FUunits\i386-win32\ 
-Fup:\software\pas2js\compiler\utils/pas2js 
-Fup:\software\pas2js\compiler\packages/pastojs/src 
-Fup:\software\pas2js\compiler\packages/fcl-passrc/src 
-Fup:\software\pas2js\compiler\packages/fcl-js/src 
-Fup:\software\pas2js\compiler\packages/fcl-json/src 
-Fup:\software\pas2js\compiler\packages/fcl-base/src 
-Fup:\software\pas2js\compiler\packages/fcl-web/src/base 
-Fup:\software\pas2js\compiler\packages/fcl-net/src 
-Fup:\software\pas2js\compiler\packages/webidl/src 
-Fip:\software\pas2js\compiler\packages/fcl-net/src/win 
-Fip:\software\pas2js\compiler\packages/fcl-base/src/dummy 
-Fip:\software\pas2js\compiler\packages/pastojs/src -di386 -Sc -viq 
p:\software\pas2js\compiler\utils/pas2js\compileserver.pp" failed with 
exit code 1. Console output:
Free Pascal Compiler version 3.3.1 [2024/05/02] for i386
Copyright (c) 1993-2024 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling p:\software\pas2js\compiler\utils\pas2js\compileserver.pp
Compiling p:\software\pas2js\compiler\utils\pas2js\httpcompiler.pp
Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\fpdebugcapturesvc.pp
Compiling P:\software\pas2js\compiler\packages\fcl-web\src\base\fphttp.pp
Compiling P:\software\pas2js\compiler\packages\fcl-web\src\base\httpdefs.pp
Compiling P:\software\pas2js\compiler\packages\fcl-base\src\uriparser.pp
Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\httpprotocol.pp
httpdefs.pp(135,20) Warning: Symbol "THttpFields" is deprecated
httpdefs.pp(136,18) Warning: Symbol "fieldAccept" is deprecated
httpdefs.pp(136,31) Warning: Symbol "FieldAcceptCharset" is deprecated
httpdefs.pp(136,51) Warning: Symbol "FieldAcceptEncoding" is deprecated
httpdefs.pp(137,18) Warning: Symbol "FieldAcceptLanguage" is deprecated
httpdefs.pp(137,39) Warning: Symbol "FieldAuthorization" is deprecated
httpdefs.pp(137,59) Warning: Symbol "FieldConnection" is deprecated
httpdefs.pp(138,18) Warning: Symbol "FieldContentEncoding" is deprecated
httpdefs.pp(138,40) Warning: Symbol "FieldContentLanguage" is deprecated
httpdefs.pp(138,62) Warning: Symbol "FieldContentLength" is deprecated
httpdefs.pp(139,18) Warning: Symbol "FieldContentType" is deprecated
httpdefs.pp(139,36) Warning: Symbol "FieldCookie" is deprecated
httpdefs.pp(139,49) Warning: Symbol "FieldDate" is deprecated
httpdefs.pp(139,60) Warning: Symbol "FieldExpires" is deprecated
httpdefs.pp(140,18) Warning: Symbol "FieldFrom" is deprecated
httpdefs.pp(140,29) Warning: Symbol "FieldIfModifiedSince" is deprecated
httpdefs.pp(140,51) Warning: Symbol "FieldLastModified" is deprecated
httpdefs.pp(140,70) Warning: Symbol "FieldLocation" is deprecated
httpdefs.pp(141,18) Warning: Symbol "FieldPragma" is deprecated
httpdefs.pp(141,31) Warning: Symbol "FieldReferer" is deprecated
httpdefs.pp(141,45) Warning: Symbol "FieldRetryAfter" is deprecated
httpdefs.pp(141,62) Warning: Symbol "FieldServer" is deprecated
httpdefs.pp(142,18) Warning: Symbol "FieldSetCookie" is deprecated
httpdefs.pp(142,34) Warning: Symbol "FieldUserAgent" is deprecated
httpdefs.pp(142,50) Warning: Symbol "FieldWWWAuthenticate" is deprecated
httpdefs.pp(143,19) Warning: Symbol "FieldHost" is deprecated
httpdefs.pp(143,30) Warning: Symbol "FieldCacheControl" is deprecated
httpdefs.pp(143,48) Warning: Symbol "FieldXRequestedWith" is deprecated
httpdefs.pp(143,68) Warning: Symbol "FieldIfNoneMatch" is deprecated
httpdefs.pp(146,22) Warning: Symbol "THttpIndexes" is deprecated
httpdefs.pp(795,35) Warning: Symbol "HTTPFieldNames" is deprecated
httpdefs.pp(798,13) Warning: Symbol "HTTPFieldIndexes" is deprecated
httpdefs.pp(905,19) Note: Call to subroutine "function 
CompareMem(P1:Pointer;P2:Pointer;Length:LongWord):System.Boolean;" 
marked as inline is not inlined
httpdefs.pp(1847,3) Warning: Case statement does not handle all possible 
cases
httpdefs.pp(1858,25) Warning: Symbol "FieldCookie" is deprecated
httpdefs.pp(1858,37) Warning: Symbol "FieldSetCookie" is deprecated
httpdefs.pp(1858,52) Warning: Symbol "FieldXRequestedWith" is deprecated
httpdefs.pp(1925,29) Warning: Symbol "THTTPHeader.SetFieldValue" is 
deprecated
Writing Resource String Table file: httpdefs.rsj
Compiling P:\software\pas2js\compiler\packages\fcl-web\src\base\httproute.pp
Compiling P:\software\pas2js\compiler\packages\fcl-net\src\ssockets.pp
Compiling P:\software\pas2js\compiler\packages\fcl-net\src\resolve.pp
resolve.pp(415,24) Warning: Symbol "NetToHost" is deprecated
resolve.pp(401,3) Note: Local variable "P" not used
resolve.pp(402,5) Note: Local variable "Count" not used
resolve.pp(444,11) Warning: Symbol "HostToNet" is deprecated
resolve.pp(450,11) Warning: Symbol "HostToNet" is deprecated
resolve.pp(527,18) Warning: Symbol "NetToHost" is deprecated
resolve.pp(572,11) Warning: Symbol "HostToNet" is deprecated
resolve.pp(665,10) Warning: Symbol "ShortHostToNet" is deprecated
resolve.pp(687,11) Warning: Symbol "ShortHostToNet" is deprecated
resolve.pp(705,11) Warning: Symbol "ShortHostToNet" is deprecated
Writing Resource String Table file: resolve.rsj
ssockets.pp(442,3) Note: Local variable "PTV" is assigned but never used
ssockets.pp(1097,3) Note: Local variable "L" is assigned but never used
ssockets.pp(1098,3) Note: Local variable "ls" is assigned but never used
ssockets.pp(1114,3) Note: Local variable "L" is assigned but never used
ssockets.pp(1115,3) Note: Local variable "ls" is assigned but never used
ssockets.pp(1223,3) Note: Local variable "L" is assigned but never used
ssockets.pp(1234,3) Note: Local variable "L" is assigned but never used
ssockets.pp(1271,21) Warning: Symbol "ShortHostToNet" is deprecated
ssockets.pp(1315,3) Note: Local variable "R" is assigned but never used
ssockets.pp(1448,5) Note: Local variable "BlockingModes" not used
ssockets.pp(1563,20) Warning: Symbol "ShortHostToNet" is deprecated
ssockets.pp(1564,27) Warning: Symbol "HostToNet" is deprecated
Writing Resource String Table file: ssockets.rsj
Compiling p:\software\pas2js\compiler\utils\pas2js\dirwatch.pp
dirwatch.pp(168,60) Warning: Symbol "TRawbyteSearchRec.Time" is 
deprecated: "use TimeStamp instead"
Compiling P:\software\pas2js\compiler\packages\fcl-base\src\syncobjs.pp
syncobjs.pp(389,11) Warning: Comparison might be always true due to 
range of constant and expression
Writing Resource String Table file: syncobjs.rsj
Writing Resource String Table file: httproute.rsj
Writing Resource String Table file: fphttp.rsj
Compiling P:\software\pas2js\compiler\packages\fcl-web\src\base\fpwebfile.pp
Compiling P:\software\pas2js\compiler\packages\fcl-web\src\base\httpjson.pp
Writing Resource String Table file: httpjson.rsj
Compiling 
P:\software\pas2js\compiler\packages\fcl-web\src\base\fpmimetypes.pp
PPU Loading P:\software\FPC\exp\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 
P:\software\pas2js\compiler\packages\fcl-base\src\inifiles.ppu
fpmimetypes.pp(95,6) Fatal: Can't find unit Registry used by fpmimetypes
Fatal: Compilation aborted

   $004396F0
   $004399BE
   $0043EC6C
   $0043F170
   $00440752
   $004402AB
   $00441039
   $00443761
   $004389B7
   $00438F20
   $00403F57
make: *** [all] Error 1



More information about the Pas2js mailing list