[Pas2js] pas2js trunk with fpc 3.2.2/lazarus 2.2.2?

Luca Olivetti luca at ventoso.org
Mon Sep 12 11:41:45 CEST 2022


El 12/9/22 a les 11:32, Luca Olivetti ha escrit:

OK, it turns out that the instructions in the wiki are wrong: I can 
compile pas2js with the current 3.2.2 compiler (still have to check if 
the generates js actually works) *but* the source has to be the one in 
the submodule.

Bye


> El 12/9/22 a les 10:57, Mattias Gaertner ha escrit:
>> Should work now.
>>
>> Please test.
> 
> Nope, FPCDIR still doesn't work and I get the same error when compiling 
> the program.
> 
> luca at seis:~/Datos/pas2js$ echo $FPCDIR
> /home/luca/Datos/fpc-3.2.2
> luca at seis:~/Datos/pas2js$ make all
> ./fpmake compile --os=linux --cpu=x86_64 -o -Cg -o -dx86_64 
> --compiler=/usr/local/bin/ppcx64 -bu
> Start compiling package pas2js for target x86_64-linux.
> Warning: Source file "pas2js.pp" from package pas2js not found for 
> x86_64-linux
> The installer encountered the following error:
> Could not compile target pas2js from package pas2js
> make: *** [Makefile:1552: all] Error 1
> 
> 
> luca at seis:~/Datos/pas2js$ rmdir compiler
> luca at seis:~/Datos/pas2js$ ln -s /home/luca/Datos/fpc-3.2.2 compiler
> luca at seis:~/Datos/pas2js$ make all
> ./fpmake compile --os=linux --cpu=x86_64 -o -Cg -o -dx86_64 
> --compiler=/usr/local/bin/ppcx64 -bu
> Start compiling package pas2js for target x86_64-linux.
>         Compiling compiler/utils/pas2js/pas2js.pp
>         Compiling ./compiler/packages/pastojs/src/pas2jsfileutils.pp
>         Compiling ./compiler/packages/pastojs/src/pas2jslogger.pp
>         Compiling ./compiler/packages/pastojs/src/pas2jsutils.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/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/pastojs/src/pas2jsresstrfile.pp
>         Compiling ./compiler/packages/pastojs/src/pas2jsresources.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/x86_64-linux/pas2js
> [100%] Compiled package pas2js
> 
> 
> 
> Bye



More information about the Pas2js mailing list