AmigaOs 3.1 lazarus / 68-Other OS ---------------------------------------------------------------------- saashapont · 2016-09-25 11:36 I try to compile for this os 1.  I make croscompilator, 2. I copy binutils, 3. i set mui for lcl 4. I use lazarus for morphos Now i have error Hint: (11030) Start of reading config file /sw/etc/fpc.cfg Hint: (11031) End of reading config file /sw/etc/fpc.cfg Free Pascal Compiler version 3.0.0 [2016/09/25] for m68k Copyright (c) 1993-2015 by Florian Klaempfl and others (1002) Target OS: Commodore Amiga (3104) Compiling lcl.pas (3104) Compiling ./mui/alllclintfunits.pas (3104) Compiling ./mui/interfaces.pp (3104) Compiling ./mui/muiint.pp (3104) Compiling ./mui/muithemes.pas (3104) Compiling ./mui/muidrawing.pas (3104) Compiling ./mui/muiglobal.pas /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(103,15) Error: (5000) Identifier not found "ExecAllocMem" /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(132,13) Error: (5000) Identifier not found "ExecAllocMem" /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(243,20) Error: (5000) Identifier not found "HookEntry" /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(307,20) Hint: (4055) Conversion between ordinals and pointers is not portable /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(310,3) Error: (5000) Identifier not found "DoMethodA" /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(326,13) Error: (3026) Wrong number of parameters specified for call to "AllocMem" Error: (5088) Found declaration: AllocMem(LongWord;LongWord):^untyped; SysCall; /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(332,13) Error: (3026) Wrong number of parameters specified for call to "AllocMem" Error: (5088) Found declaration: AllocMem(LongWord;LongWord):^untyped; SysCall; /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(355,13) Error: (5000) Identifier not found "DoMethodA" /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(360,13) Error: (5000) Identifier not found "DoMethodA" /Volumes/MacHD2/Downloads/lazarus-lazarus- morphos/lcl/interfaces/./mui/muiglobal.pas(360,23) Hint: (4055) Conversion between ordinals and pointers is not portable muiglobal.pas(375) Fatal: (10026) There were 10 errors compiling module, stopping Fatal: (1018) Compilation aborted Is any way to fix that? ---------------------------------------------------------------------- Jonas Maebe · 2016-09-25 11:38 It probably only works with the latest trunk version of FPC. ---------------------------------------------------------------------- molly · 2016-09-25 11:45 It is even more explicit. It only works with FPC from trunk and lazarus from ALB42's github account. Tbh, i do not even know for sure if using the MorphOS branch to target Amiga classic OS 3.x is the correct one. ---------------------------------------------------------------------- saashapont · 2016-09-25 11:51 I try to make it with ALB42's MorphOS lazarus and 3.0.0 may be error in this. But i cannot make crosscompilator for amiga for 3.1.1. If anybody can do this for mac please upload it ---------------------------------------------------------------------- molly · 2016-09-25 12:01 Quote from: saashapont on September 25, 2016, 01:51:55 pmBut i cannot make crosscompilator for amiga for 3.1.1. If anybody can do this for mac please upload it Please forgive me if we've already discussed this topic but could you please elaborate on what is the problem exactly (error logs please) ? I have no problem creating fpc 3.1.1 cross compiler from/for windows. Having that said, it has been a while (couple of months) that i created a new one. ---------------------------------------------------------------------- saashapont · 2016-09-25 12:05 ш рhave error like access violation an same digit codes i try to make it with sudo and without ---------------------------------------------------------------------- molly · 2016-09-25 12:25 Ok, i am now officially in a confused state of mind.  You get access violations attempting to create the 3.1.1 cross- compiler for m68k !? (i just checked, my latest attempt was made on sept 3th this year, as i needed some new feature for AROS. I added OS4 support in my scripts as well). My cross-compiler is created using: make crosszipinstall CPU_TARGET=m68k OS_TARGET=amiga CROSSBINDIR=%BINUTILS_PATH% BINUTILSPREFIX=m68k-amiga- FPC=%FPCSTART% Where: - %BINUTILS_PATH% is the path with existing binutils - %FPC_START% is pointing to the compiler that needs to create the cross-compiler (you can omit that if you have correct compiler already installed) It creates a zip file which includes the file "ppcros68k.exe" which i then need to place in my fpc/bin directory of the 3.1.1. compiler. Additionally the zip file also includes all cross-compiled units which can be copied manually. Of course you can also decide to use crossinstall in the make options (instead of crosszipinstall) ---------------------------------------------------------------------- ALB42 · 2016-09-26 18:15 - Yes you need 3.1.1 to compile Lazarus for Amiga Systems. - lazarus-morphos is the right brnach for Amiga 68k - if the freepascal crosscompiler creation fails with a access violation: I guess you use a 64bit system. there seems to be a bug in the optimizer for 64 bit systems which creates this problem, so disable the Optimizer create the crosscompiler: make crosszipinstall CPU_TARGET=m68k OS_TARGET=amiga OPT="-O-" ---------------------------------------------------------------------- saashapont · 2016-09-26 19:25 Thank you very much!!!! Now i reinstalling new mac os and i will try to compile it in few days! ---------------------------------------------------------------------- saashapont · 2016-09-30 17:35 I have error project1.lpr(22,0) Error: resource compiler "m68k-amiga- fpcres" not found, switching to external mode, how i can fix that? ---------------------------------------------------------------------- saashapont · 2016-10-01 13:40 The solution was create symbol link to fpcres and copy project1.fpcres file ---------------------------------------------------------------------- ALB42 · 2016-12-31 14:59 About this year … 2016 https://blog.alb42.de/2016/12/31/about-this-year-2016/