Sign in Join

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

Mailing lists / pas2js / 2022-09

pas2js trunk with fpc 3.2.2/lazarus 2.2.2?

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luca Olivetti

Hello,

I checked out pas2js trunk and tried to compile it with fpc 3.2.2.

The first hurdle is that setting FPCDIR to the sources of fpc didn't work, what worked was to simlink the sources to "compiler".

Then, if I try to compile a project with the newly built pas2js, I get this error:

classes.pas(6968,34) Error: Incompatible type arg no. 1: Got "Char",
expected "Double". Var param must match exactly.

This is in "FStream.ReadBufferData(C)" in TBinaryObjectReader.ReadIdent

I remember that, all of a sudden, I started getting this error even with the release version of pas2js, solved by rebuilding and reinstalling fpc and rebuilding lazarus./la, I tried the same and now I'm getting the same error with the release version of pas2js.

What should I do now?

Bye

Luca

Reply by email

Luca Olivetti
to Luca Olivetti

El 12/9/22 a les 10:03, Luca Olivetti ha escrit:

Aagh, my memory!

What fixed the problem previously was unzipping the release version (I didn't think to keep the previous copy to see what changed), but the question still stands: what should I do with the trunk version?

Bye

Show quoted text 25 lines
Hello, I checked out pas2js trunk and tried to compile it with fpc 3.2.2. The first hurdle is that setting FPCDIR to the sources of fpc didn't work, what worked was to simlink the sources to "compiler". Then, if I try to compile a project with the newly built pas2js, I get this error: classes.pas(6968,34) Error: Incompatible type arg no. 1: Got "Char", expected "Double". Var param must match exactly. This is in "FStream.ReadBufferData(C)" in TBinaryObjectReader.ReadIdent I remember that, all of a sudden, I started getting this error even with the release version of pas2js, solved by rebuilding and reinstalling fpc and rebuilding lazarus./la, I tried the same and now I'm getting the same error with the release version of pas2js. What should I do now? Bye

Reply by email

Luca Olivetti
to Mattias Gaertner

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

Luca

Reply by email

Luca Olivetti
to Luca Olivetti

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

Show quoted text 66 lines
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

Reply by email