[fpc-pascal] Is somebody working on making jcl work again with fpc (on linux)

Michael Ring michael-ring at t-online.de
Tue Apr 18 22:38:27 CEST 2006


For a quick start I did the following:

for file in /data/subversion/svn/jcl/source/common/*.pas 
/data/subversion/svn/jcl/source/unix/*.pas ; do  fpc -FE. 
-Fu/data/subversion/svn/jcl/source/common/ 
-Fi/data/subversion/svn/jcl/source/ $file 2>&1  ; done | grep -i Error | 
sort | uniq

This tries to compile all the common+unix stuff. I end up with the 
following Messages:

JclLogic.pas(1130,19) Error: Asm: [bts mem32,mem32] invalid combination 
of opcode and operands
JclLogic.pas(1193,19) Error: Asm: [bt mem32,mem32] invalid combination 
of opcode and operands
JclLogic.pas(1295,19) Error: Asm: [btc mem32,mem32] invalid combination 
of opcode and operands
JclLogic.pas(1971) Fatal: There were 4 errors compiling module, stopping
JclLogic.pas(628,19) Error: Asm: [btr mem32,mem32] invalid combination 
of opcode and operands

JclPCRE.pas(151,16) Error: Incompatible types: got "<procedure variable 
type of function:^Char;CDecl>" expected "PChar"
JclPCRE.pas(244,31) Error: Incompatible types: got "untyped" expected 
"<procedure variable type of procedure;CDecl>"
JclPCRE.pas(280) Fatal: There were 2 errors compiling module, stopping

JclSchedule.pas(1315,52) Fatal: Syntax error, ";" expected but 
"identifier IMPLEMENTS" found

JclUnitVersioning.pas(235,3) Note: Local variable "Error" is assigned 
but never used
JclUnitVersioning.pas(480,8) Error: Identifier not found "GetModuleFileName"
JclUnitVersioning.pas(839) Fatal: There were 1 errors compiling module, 
stopping

JclWideStrings.pas(2029) Fatal: There were 1 errors compiling module, 
stopping
JclWideStrings.pas(950,13) Error: Identifier not found "CompareString"


Some of those are easy to fix, the assembler errors in JclLogic.pas give 
me the creeps because my last lines of assembler code  were written 15 
years ago....

 Michael

Marco van de Voort schrieb:
>> I am currently doing the switch from Kylix to FreePascal.
>>
>> Current versions of jcl do not compile very well with FreePascal on 
>> Linux because defines are missing.
>>     
>
> Could you be more specific? Sometimes there is a gap in support for Kylix
> apps because we want to avoid too many kylixisms/linuxisms in the default
> settings. (due to non-x86 linux/BSD/Mac OS X)
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>   




More information about the fpc-pascal mailing list