Recent

Author Topic: AmigaOs 3.1  (Read 10259 times)

saashapont

  • New Member
  • *
  • Posts: 39
AmigaOs 3.1
« on: September 25, 2016, 01:36:37 pm »
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

  • Hero Member
  • *****
  • Posts: 1058
Re: AmigaOs 3.1
« Reply #1 on: September 25, 2016, 01:38:46 pm »
It probably only works with the latest trunk version of FPC.

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: AmigaOs 3.1
« Reply #2 on: September 25, 2016, 01:45:50 pm »
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

  • New Member
  • *
  • Posts: 39
Re: AmigaOs 3.1
« Reply #3 on: September 25, 2016, 01:51:55 pm »
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

  • Hero Member
  • *****
  • Posts: 2330
Re: AmigaOs 3.1
« Reply #4 on: September 25, 2016, 02:01:24 pm »
But 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

  • New Member
  • *
  • Posts: 39
Re: AmigaOs 3.1
« Reply #5 on: September 25, 2016, 02:05:25 pm »
ш рhave error like access violation an same digit codes
i try to make it with sudo and without

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: AmigaOs 3.1
« Reply #6 on: September 25, 2016, 02:25:51 pm »
Ok, i am now officially in a confused state of mind.  :D

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

  • Newbie
  • Posts: 6
    • ALBs Projects
Re: AmigaOs 3.1
« Reply #7 on: September 26, 2016, 08:15:49 pm »
- 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

  • New Member
  • *
  • Posts: 39
Re: AmigaOs 3.1
« Reply #8 on: September 26, 2016, 09:25:02 pm »
Thank you very much!!!! Now i reinstalling new mac os and i will try to compile it in few days!

saashapont

  • New Member
  • *
  • Posts: 39
Re: AmigaOs 3.1
« Reply #9 on: September 30, 2016, 07:35:53 pm »
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

  • New Member
  • *
  • Posts: 39
Re: AmigaOs 3.1
« Reply #10 on: October 01, 2016, 03:40:59 pm »
The solution was create symbol link to fpcres and copy project1.fpcres file

ALB42

  • Newbie
  • Posts: 6
    • ALBs Projects
Re: AmigaOs 3.1
« Reply #11 on: December 31, 2016, 03:59:37 pm »

 

TinyPortal © 2005-2018