Dear Sirs,
I try to compile PacmanXG4 under archlinux for arm with fpc-2.6.2 and/or
fpc-2.6.4.
The first try generated following errors:
-----------------------------------------------------------------------------------------
$ fpc -Fulib/common/* -Fulib/common/kernel/linux -Filib/common/kernel
apps/ide/mseide.pas
Free Pascal Compiler version 2.6.2 [2013/02/26] for arm
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for ARMEL
Compiling apps/ide/mseide.pas
Compiling ./lib/common/designutils/mseskindesign.pas
Compiling ./lib/common/kernel/mseskin.pas
Compiling ./lib/common/fpccompatibility/mclasses.pas
Compiling ./lib/common/kernel/msesys.pas
Compiling ./lib/common/kernel/mseerr.pas
Compiling ./lib/common/kernel/msestrings.pas
Compiling ./lib/common/kernel/msearrayutils.pas
Compiling ./lib/common/kernel/msesys.pas
Compiling ./lib/common/kernel/mselibc.pas
Compiling ./lib/common/kernel/msedynload.pas
msedynload.pas(307,21) Error: Identifier not found "get8087cw"
msedynload.pas(316,25) Error: Identifier not found "get8087cw"
msedynload.pas(317,16) Error: Identifier not found "set8087cw"
msedynload.pas(341,24) Error: Identifier not found "get8087cw"
msedynload.pas(431) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not
specify a source file to be compiled)
-----------------------------------------------------------------------------------------
I've replaced these i386 specific calls by the arm specific calls (from mathu.inc) to "VFP_GetCW" and to "VFP_SetCW".
Compiling with changes generates similar errors:
-----------------------------------------------------------------------------------------
$ fpc -Fulib/common/* -Fulib/common/kernel/linux -Filib/common/kernel
apps/ide/mseide.pas
Free Pascal Compiler version 2.6.2 [2013/02/26] for arm
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for ARMEL
Compiling apps/ide/mseide.pas
Compiling ./lib/common/designutils/mseskindesign.pas
Compiling ./lib/common/kernel/mseskin.pas
Compiling ./lib/common/fpccompatibility/mclasses.pas
Compiling ./lib/common/kernel/msesys.pas
Compiling ./lib/common/kernel/mseerr.pas
Compiling ./lib/common/kernel/msestrings.pas
Compiling ./lib/common/kernel/msearrayutils.pas
Compiling ./lib/common/kernel/msesys.pas
Compiling ./lib/common/kernel/mselibc.pas
Compiling ./lib/common/kernel/msedynload.pas
msedynload.pas(308,24) Error: Identifier not found "VFP_GetCW"
msedynload.pas(318,28) Error: Identifier not found "VFP_GetCW"
msedynload.pas(319,18) Error: Identifier not found "VFP_SetCW"
msedynload.pas(342,25) Error: Identifier not found "VFP_GetCW"
msedynload.pas(431) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not
specify a source file to be compiled)
-----------------------------------------------------------------------------------------
I think, I should include math.inc or mathu.inc for arm from the fpc.
I wrote my last pascal program 30 years ago and don't remember how to do it.
Can anybody help please?
Kind Regards,
Michael Wachs