English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 10 May 2017, 12:22   #1
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
compiling instructions for aros68k

by request from here:
http://eab.abime.net/showthread.php?t=84430&page=18
i am opening a separate thread for those interested about how to get aros compile and run either under uae or on an amiga.

if you want to check it out via svn, there is full instructions to do so on aros portal. namely here:
http://aros.sourceforge.net/document.../compiling.php
scroll down the page:

given you have all necessary packages installed you can then make a build dir and from there invoke configure, with some - your preffered - options, like:
--target=amiga-m68k
--with-serial-debug (if you want serial debug)
--enable-debug (if you want debug symbols compiled in)
--with-portssources=.. (if you want contributed archives and toolchain sources stored locally instead downloading them anew)
--with-gcc-version=6.3.0 --with-binutils-version=2.25 (if you want the neweat toolchain)

and then simply..
Quote:
make (-s)
i can tell you how to compile a part of the source (a module) but if you want to use another (external) compiler, you will have to experiment on yourself.
wawa is offline  
AdSense AdSense  
Old 10 May 2017, 13:02   #2
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
Thanks wawa!

Some addendum:
if you prefer GIT there is Jason repository mirror at:
https://github.com/ezrec/AROS-mirror
then you can clone in ./AROS

If you prefer to make separate cross compiler toolchain (like me), in your work dir (that can be even ~) you need to:
- mkdir AROS-build (where aros-m68k will be build)
- mkdir m68k-aros-build (where cross compiler toolchain will be built)
- cd m68k-aros-build
- ../AROS/configure --target=amiga-m68k --with-aros-toolchain-install=/opt/m68k-aros [plus all the wawa explained options]
- make -s crosstools
- cd ../AROS-build/
- ../AROS/configure --target=amiga-m68k --with-aros-toolchain-install=/opt/m68k-aros --with-aros-toolchain=yes [--enable-debug --with-serial-debug=yes]
- make [-s]

(in /opt/m68k-aros lies the toolchain)
(in ~/AROS-build all the goodies)

Cheers,
ross

Last edited by ross; 10 May 2017 at 13:31. Reason: [optional]
ross is offline  
Old 10 May 2017, 13:08   #3
Locutus
Registered User

 
Join Date: Jul 2014
Location: Finland
Posts: 759
That really does look pretty painless, including build scripts for the required cross compiler toolchain is a very nice touch.

I'll give it a go once i have some free time.
Locutus is online now  
Old 10 May 2017, 14:11   #4
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
Quote:
Originally Posted by ross View Post
If you prefer to make separate cross compiler toolchain (like me), in your work dir...
thats a similar method as the one i used initially. with the exception that i have been installing the toolchain in opt as described here:
http://www.amigaforum.de/index.php?t....msg200#msg200
i have not done separate toolchain build since a while and im not sure if i would advise it. best is to keep up to the whole amount of changes at once and the toolchain elements or sdk also get updated constantly, not only the aros code as such.

my practice is to check out aros into the homedir like that: /AROS-source/AROS/contribs

and then create directories for parallel builds on the same level, labelled like aros-m68k-630 or aros-x86-464 in order to test and work on different platforms and compilers in parallel from the same source. you simply need to keep in mind to reconfigure. other than that i put a local potrssources dir on the same level to conserve time and bandwidth.
wawa is offline  
Old 10 May 2017, 14:19   #5
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
Quote:
Originally Posted by Locutus View Post
That really does look pretty painless
it is painless, for the most part. you can even compile module for module, library for library or directory for directory. all you need to, is to go and look at local mmakefile.src in the sources you are interetsed in and identify
a module name. for instance, to compile png.library you go to
Quote:
/AROS-source/AROS/workbench/libs/png
check mmakefile.src, see right away this line:
Quote:
#MM workbench-libs-png : workbench-libs-z
then you simply do
Quote:
make workbench-libs-png
and the library gets built along with all dependencies.

if you have dependencies built already you can
Quote:
make workbench-libs-png-quick
..usually.

if you now want all libraries to be built or rebuilt, assuming you might have done some changes you want to test, you simply go level up:
Quote:
make workbench-libs
wawa is offline  
Old 10 May 2017, 15:42   #6
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
Quote:
Originally Posted by wawa View Post
you can even compile module for module, library for library or directory for directory
You spared me to ask

Thanks very much,
ross
ross is offline  
Old 10 May 2017, 19:26   #7
Locutus
Registered User

 
Join Date: Jul 2014
Location: Finland
Posts: 759
Small catch, the SVN repo doesn't have Anonymous read only access... (wth..)

Quote:
At the request of Amiga Inc., anonymous read-only access to the repository has been disabled.
I'll grab the git mirror :-)
Locutus is online now  
Old 10 May 2017, 19:49   #8
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
are you sure? ;O

where have you seen it? i doubt amigainc is being currently in position of requesting anything like that. it must be an old notice, i believe to remember when anon access has been enabled.
wawa is offline  
Old 10 May 2017, 19:56   #9
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
http://www.amiga.org/forums/showpost...5&postcount=19
(05-30-2007, 03:44 AM)

ross is offline  
Old 10 May 2017, 20:26   #10
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
wawa is offline  
Old 10 May 2017, 20:44   #11
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
cygwin compilation --with-gcc-version=6.3.0 --with-binutils-version=2.25

no errors
ross is offline  
Old 11 May 2017, 00:14   #12
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
you might check out contribs and ports
wawa is offline  
Old 12 May 2017, 22:23   #13
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
in case anyone tries to boot aros on an amiga to date there has been some issues lately. toni has commited some fixes but one yet remains to be researched.
also kalamatee added some checks for proper rom sizes and some changes that look like will enable us to properly use gdb with the debug builds.

so stand by.
wawa is offline  
Old 13 May 2017, 00:16   #14
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
Quote:
Originally Posted by wawa View Post
in case anyone tries to boot aros on an amiga to date there has been some issues lately. toni has commited some fixes but one yet remains to be researched.
also kalamatee added some checks for proper rom sizes and some changes that look like will enable us to properly use gdb with the debug builds.

so stand by.
No boot problems here.. compiled from 10/05 commit (before 11-12/05 twilen/nicja patch)

I had noticed that the main ROM was almost full (up to $fffd00).
Maybe code fit thanks to GCC6.3.0 compile?

[EDIT: sorry, read in a hurry.. WinUAE used]
[EDIT2: tested with a Blizzard -> no boot]

ross
Attached Thumbnails
Click image for larger version

Name:	aros.png
Views:	53
Size:	133.9 KB
ID:	53076  

Last edited by ross; 13 May 2017 at 00:34. Reason: ops...
ross is offline  
Old 13 May 2017, 02:44   #15
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
aros boots on my a1200 with blizzard1260/16mb.
however there is still crash while AddUSBClasses.
one could comment it out in the s-s, i dont have any usb hardware there, let alone if the stack was even woking for now.
but im giving it a shot to debug, since toni beats me to it.

edit: looks like i found it.

Last edited by wawa; 13 May 2017 at 02:56.
wawa is offline  
Old 14 May 2017, 17:36   #16
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
Quote:
Originally Posted by wawa View Post
aros boots on my a1200 with blizzard1260/16mb.
Good, with last commits boot also on Blizzard 1230IV

ross
ross is offline  
Old 14 May 2017, 18:23   #17
wawa
Registered User
 
Join Date: Aug 2007
Location: berlin/germany
Posts: 892
Quote:
Originally Posted by ross View Post
Good, with last commits boot also on Blizzard 1230IV

ross
has it ben fixed? i cant determine just by looking at the commits. according to toni it is a compiler bug. that explains why the nightly doesnt exhibit wrong behaviour. it is still being compiled with 4.6.4.
wawa is offline  
Old 14 May 2017, 18:55   #18
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 47
Posts: 516
Quote:
Originally Posted by wawa View Post
has it ben fixed? i cant determine just by looking at the commits. according to toni it is a compiler bug. that explains why the nightly doesnt exhibit wrong behaviour. it is still being compiled with 4.6.4.
I've only recompiled the nightly build (not the toolchain, so assume the preceding 6.3.0 gcc and all).
Can be previously my bad, but today AROS and Blizzard agree

Bye,
ross
ross is offline  
Old 14 May 2017, 19:15   #19
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,794
AddUSBClasses crash is compiler bug, Blizzard arosbootstrap crash was rom image memory allocation problem (54665/54666), which worked accidentally with older compiler.
Toni Wilen is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ARos68k RTG driver for OS 3.x _WB_ request.UAE Wishlist 1 09 October 2016 12:42
AROS68k: what is needed to run on real hardware? Akira support.Apps 9 11 December 2015 03:57
Help debugging differences and problems between aos and aros68k wawa Coders. System 1 23 April 2014 22:04
Weird instructions absence Coders. General 4 12 October 2009 17:54
Instructions? Daz support.Hardware 8 12 July 2002 21:29

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:01.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.21541 seconds with 15 queries