Sign in Join

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

Mailing lists / fpc-pascal / 2006-04

Is somebody working on making jcl work again with fpc (on linux)

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Ring

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.

Does somebody work on this right now?

If not, I will start on it, but first I want to minimize the possibility of doing work that already has been done before ;-)

Thanks,

Michael

Florian Klaempfl
to Michael Ring
Michael Ring wrote 6 lines
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. Does somebody work on this right now?

Afaik not.

Show quoted text 11 lines
If not, I will start on it, but first I want to minimize the possibility of doing work that already has been done before ;-) Thanks, Michael _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Marco van de Voort
to Michael Ring: I am currently doing the switch from Kylix to FreePascal. Current versions of jcl do not…
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)

Michael Ring
to Marco van de Voort: Could you be more specific? Sometimes there is a gap in support for Kylix apps because we…

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

Show quoted text 15 lines
> 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 - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Michael Ring
to Marco van de Voort: Start with adding -Sd to the compiler command line. Putting the compiler in delphi mode…
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(628,19) Error: Asm: [btr mem32,mem32] invalid combination
of opcode and operands
JclSchedule.pas(1315,52) Fatal: Syntax error, ";" expected but
"identifier IMPLEMENTS" found
JclUnitVersioning.pas(480,8) Error: Identifier not found "GetModuleFileName"
JclWideStrings.pas(950,13) Error: Identifier not found "CompareString"

-Sd helped quite a little bit, JclPCRE compiles now, still assembler errors 8-)

Show quoted text 10 lines
> me the creeps because my last lines of assembler code were written 15 > years ago.... > Start with adding -Sd to the compiler command line. Putting the compiler in delphi mode might help:-) _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal