06 November 2014, 10:59 | #61 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Perhaps I missed something but aros-m68k of course uses same ABI and everything, it is supposed to run normal AOS binaries after all. (and vice versa if binary is not linked with aros startup)
Most executables should be in elf-format (unless something was changed and they all are now converted to hunk before distribution files are created). At least arosbootstrap loadable rom image (aros.elf.gz) is elf formatted. (arosbootstrap = softkick for aros.elf, only works with elf executables). Note that arosbootstrap is also a special case, it is designed to run on AOS to allow aros m68k softkick. afaik only point of having elf excutables (vs hunk) is better debugging and compatibility with other "alien" tools (standard nm can be used to list all symbols etc..) Quote:
|
|
06 November 2014, 13:00 | #62 | ||||||
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
06 November 2014, 13:16 | #63 | |||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
Quote:
Quote:
Quote:
|
|||
06 November 2014, 13:49 | #64 | |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
i thought the exec loaders for elf and hunk were different and deadwood improved aomething the elf one few months ago while the other was left as is. if nothing of this matters and it seems that elf format has no advantages for amiga-m68k platform, we can stay with hunk as well. |
|
06 November 2014, 14:00 | #65 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
@toni
just trying to compile some small pieces of aros outside the build mechanism (single file sources like c commands) and i notice how powerfull mechanism it is to configure to a target platform. headers need to be created, a lot of constants have to be defined, while doing this by hand is crazy. what and where are acually these annoying macros? asmcall.h? can we narrow down a possibly small region of source that would be beneficial to make changes to in order to have it compiled with vbcc? i think it would be best to mess with the build system only where absolutely necessary. |
06 November 2014, 14:08 | #66 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Quote:
Quote:
Jason did 99% of the macro stuff. (The most difficult to part that had to be done before anything m68k was possible) Strange. It has always been elf and arosbootstrap has not changed for long time.. I guess some build option has changed and now all files are converted to hunk. (Note that I practically have never used binaries, I always compile everything myself) |
||
06 November 2014, 15:21 | #67 | ||
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
/AROS-source/arch/m68k-all/include/gencall.c Quote:
|
||
06 November 2014, 19:13 | #68 | |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
i have a message from jason whom i will directly quote here, not to miss something:
Quote:
|
|
07 November 2014, 01:51 | #69 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
asm.c https://gitorious.org/aros/aros/sour.../include/asm.c gencall.c https://gitorious.org/aros/aros/sour...lude/gencall.c The whole AROS build system does look overly complex and full of GCCisms. Maybe Heiroglyph's idea of creating a new 68k build (like AFA OS but with real Amiga executables and libraries) isn't that bad of an idea. |
|
07 November 2014, 02:16 | #70 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
@matthey
you would have to put together another build system instead. okay, it might be easier, because you would have a fixed target and you wouldnt have to automate building a toolchain if you would update it by hand. but the question, whatever solution, is about the same: who is going to do that? another question remains: how will we keep synchronized with aros upstream? also by hand? you have to keep track of changes, test, and update accordingly to maintain. also we lose influence on the main aros branch, on which we though still depend in that case. our reports may not be taken into account if there is a problem. also, we would have either to heavily modify the sources or does heiroglyph already forund out what set of definitions is needed to compile the executables vith vbcc? @phx: what you you think about jasons mail, do you know what he is reffering to exactly (im just reading on struct offsets, but its way ahead before i understand what particular problem is crosscompiling from x86 to 68k any why it is so special). if so do you think there is a solution we can think of, i mean aros/vbcc? Last edited by wawa; 07 November 2014 at 02:23. |
07 November 2014, 10:56 | #71 | |||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
Quote:
He mentions it might be for generating assembler include files or generating a cpu.i (whatever this is needed for) ... ? Quote:
But probably Jason is refering to something else. Quote:
Better would be to understand why all these macros and inline assembly are needed and think about a better solution. For example, all other Amiga-like operating systems use FD or SFD files to define their library functions and arguments, so fd2pragma can generate stubs for any compiler. |
|||
07 November 2014, 12:58 | #72 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,515
|
Quote:
Perhaps there is less ugly method to automatically generate structure offsets from C headers? (We don't need extra care because our compiler already knows m68k structure alignment) We can't use official AOS headers because AOS headers have private fields (that are documented or reused in AROS) and AROS also have extensions. Quote:
|
||
07 November 2014, 13:18 | #73 | |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
Quote:
|
|
10 November 2014, 13:13 | #74 | |
Registered User
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,773
|
Quote:
|
|
11 November 2014, 09:54 | #75 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
Making new directories for software under /usr/local is not that unusual. /opt, on the other hand, is used by Linux only (for optionally installed software packages?) while I'm using NetBSD.
|
13 November 2014, 18:04 | #76 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
just to document the progress and save a reference for further apporoach.
aros dependency packages: binutils-source libcloog-ppl-dev (adds lots of other dependencies) g++ libelf-dev bison flex gcc-4.5-source libmpfr-dev libmpc-dev libecm-dev netpbm automake libpng-dev (on ubuntu i have libpng12-dev, lets see if this will cause problems) libc6-dev-i386 currently building aros68k crosstools on ubuntu: directory structure: <some dir> - aros (clean aros sources here, no binaries!) - build-m68k-tools (cross compiler will be built here) - yet another directory where aros-m68k will be build (I just use "build") <some dir> cd build-m68k-tools ./../aros/configure --target=amiga-m68k --with-aros-toolchain-install=/opt/aros-m68k sudo make -s crosstools |
16 November 2014, 19:20 | #77 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
../aros/configure --target=amiga-m68k --with-aros-toolchain-install=/opt /aros-m68k --with-aros-toolchain=yes --with-serial-debug=yes
make -s am proud to report that with an extensive help of toni i was able to build aros68k on my machine. many thanks, toni! now i will be looking into the details. |
29 November 2014, 12:48 | #78 |
Posts: n/a
|
How is it going guys,
Are we making any progress? |
29 November 2014, 15:19 | #79 |
Registered User
Join Date: Aug 2007
Location: berlin/germany
Posts: 1,054
|
i dont know. i am learning and documenting how to cross build aros and trying to get around the source and build system. thats what i can do myself atm. but it seems deadwood is up to something:
http://eab.abime.net/showthread.php?t=75973 looks like he tries to compile some example part of aros with gcc. |
29 November 2014, 16:30 | #80 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
@wawa
You mean VBCC don't you? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMOS for Windows installer using AROS-68K and WinUAE | Mequa | News | 32 | 04 May 2017 09:08 |
New Video of my Aros 68k distribution "Aros Vision" | OlafSch | Amiga scene | 26 | 16 February 2016 11:16 |
How do I create an AROS 68k boot disk? | Leandro Jardim | Amiga scene | 3 | 18 October 2014 03:37 |
News about Aros Vision | OlafSch | Amiga scene | 3 | 09 June 2014 15:04 |
Version 1.3. of Aros Vision 68k online now | OlafSch | Amiga scene | 1 | 19 June 2012 13:43 |
|
|