English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 20 June 2017, 19:20   #361
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
Quote:
Originally Posted by Marlon_ View Post
@bebbo
Latest revision of the toolchain makes the compiling of milkytracker broken.
It compiles fine at -O3, but I get "Program aborted" when I try to run it.
It compiles fine at -O2 too, but I haven't gotten around to try to run it yet.

-Os and -O1 gives me compiler errors.

Maybe these errors are related to why I can no longer execute milkytracker when compiled with -O3?
...
Uhm yes, found that bug and fixed it. Milky compiles here again.
bebbo is offline  
Old 20 June 2017, 19:29   #362
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Awesome! Thanks =)
Marlon_ is offline  
Old 20 June 2017, 20:18   #363
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
It's been a while since I did some testing, so I'd like to get in on this compiling MilkyTracker thing.

I've cloned this git repo: https://github.com/milkytracker/MilkyTracker

But I don't see any makefile, only a cmake directory, so I'm confused. How do I compile this? (cygwin-32/win7-64)
guy lateur is offline  
Old 20 June 2017, 20:22   #364
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by guy lateur View Post
It's been a while since I did some testing, so I'd like to get in on this compiling MilkyTracker thing.

I've cloned this git repo: https://github.com/milkytracker/MilkyTracker

But I don't see any makefile, only a cmake directory, so I'm confused. How do I compile this? (cygwin-32/win7-64)
This is my fixed version: https://github.com/mbeijer/milkytracker-amiga68k

it requires premake4 to create the makefile.

I'm not done with optimizations, so currently it only runs at a decent speed in UAE-JIT 040. Just fyi.

Browsing files inside milkytracker doesn't work either, so you have to load files from commandline. So it's far from usable at this point.

My plan is to "remove" SDL and add in CGX RTG support instead and go straight for AHI myself, in hopes for getting some improvements by removing overhead. I'd like it to at least run on a Vampire accelerated Amiga in a foreseeable future.

Last edited by Marlon_; 20 June 2017 at 20:30.
Marlon_ is offline  
Old 20 June 2017, 20:38   #365
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by Marlon_ View Post
This is my fixed version: https://github.com/mbeijer/milkytracker-amiga68k
it requires premake4 to create the makefile.
premake4 comes with your distribution, right? Or do I have to download/install that separately? Because it says it can't find premake4 when building the makefile:
Code:
$ ./build_gmake
./build_gmake: regel 2: premake4: opdracht niet gevonden
guy lateur is offline  
Old 20 June 2017, 20:40   #366
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by guy lateur View Post
premake4 comes with your distribution, right? Or do I have to download/install that separately? Because it says it can't find premake4 when building the makefile:
Code:
$ ./build_gmake
./build_gmake: regel 2: premake4: opdracht niet gevonden
https://premake.github.io/download.html#v4

I have included premake4 and premake4.exe, first being for linux, second for windows. You just need to modify the build_gmake file to run the included executable.

But this is off topic discussion, if you need further help, send me a PM.
Marlon_ is offline  
Old 20 June 2017, 21:04   #367
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
Quote:
Originally Posted by Marlon_ View Post
But if Bebbo get 18 mins on his 5 year old laptop, I feel like my server should be able to compile faster than 15 min.
Guess I was cheating... it was 28mins.


And I added a new switch: --mytools
Code:
./toolchain-m68k build --mytools --threads 8 --prefix /opt/amiga >& b.log
using --mytools most of the tools are not built, instead it's required to have these installed and working.

=> speeds up build process :-)
bebbo is offline  
Old 20 June 2017, 21:07   #368
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by bebbo View Post
Guess I was cheating... it was 28mins.
Hah! Gotcha

Quote:
Originally Posted by bebbo View Post
And I added a new switch: --mytools
Code:
./toolchain-m68k build --mytools --threads 8 --prefix /opt/amiga >& b.log
using --mytools most of the tools are not built, instead it's required to have these installed and working.

=> speeds up build process :-)
Oh, so if I only need to update gcc and no other surrounding tools, --mytools will suffice? But the linker and stuff still gets built, right?
Marlon_ is offline  
Old 20 June 2017, 21:34   #369
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by bebbo View Post
Guess I was cheating... it was 28mins.
Darn, that still beats my 35 minutes..
guy lateur is offline  
Old 20 June 2017, 21:36   #370
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Hmm, still get "Program aborted" with -O1, -O2 and -O3, then UAE locks up.
Do you get it to run after it's compiled?
Marlon_ is offline  
Old 20 June 2017, 22:37   #371
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
Quote:
Originally Posted by Marlon_ View Post
Hmm, still get "Program aborted" with -O1, -O2 and -O3, then UAE locks up.
Do you get it to run after it's compiled?
I never tried running this... needed the SDL lib to link.

It dies at SDL_SYS_CreateThread, because DOSBase is 0. And DOSBase is not an alias for __DOSBase which is initialized...
bebbo is offline  
Old 20 June 2017, 22:53   #372
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by bebbo View Post
I never tried running this... needed the SDL lib to link.

It dies at SDL_SYS_CreateThread, because DOSBase is 0. And DOSBase is not an alias for __DOSBase which is initialized...
Well, it was working before, and I haven't made any changes since last time.

EDIT:
How do you debug by the way? I need to sort that out so I can develop this properly.
Marlon_ is offline  
Old 20 June 2017, 22:57   #373
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
hm - I dislike the linker - library order matters a lot

-> will check the link specs and compare with previous versions...
... and then math stuff will break again
... /sigh
bebbo is offline  
Old 20 June 2017, 23:01   #374
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by bebbo View Post
hm - I dislike the linker - library order matters a lot

-> will check the link specs and compare with previous versions...
... and then math stuff will break again
... /sigh
The struggle! Your work is highly appreciated though! Too bad there's only one of you. Would be nice if someone knowledgable about compilers could help you out.

I unfortunately know nothing about that stuff and am afraid I would just break it further. :P

Do you have a patreon or something to show you support?
Marlon_ is offline  
Old 21 June 2017, 09:32   #375
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
OK - I tries different older revisions - and none worked out. Always the same crash.

SDL-1.2.15.lha is crashing.

Then I tried a different libSDL.a and finally an empty window shows up plus some complaints in the console window about a missing audio device...

Which libSDL.a is the correct one to use?
bebbo is offline  
Old 21 June 2017, 13:41   #376
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
Quote:
Originally Posted by Marlon_ View Post
The struggle! Your work is highly appreciated though! Too bad there's only one of you. Would be nice if someone knowledgable about compilers could help you out.

I unfortunately know nothing about that stuff and am afraid I would just break it further. :P

Do you have a patreon or something to show you support?
I have me ^^ and I found a bug in the flow analysis that caused some parts of code not been evaulated at all: tail calls which are converted into a jump.

PUSH

should I get more than this complaint? "SDL: failed to open audio device! ..."? with my UAE?

And consider using
Code:
-fno-rtti -fno-exceptions
to reduce the code size a tiny bit.
bebbo is offline  
Old 21 June 2017, 13:42   #377
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
Quote:
Originally Posted by bebbo View Post
OK - I tries different older revisions - and none worked out. Always the same crash.

SDL-1.2.15.lha is crashing.

Then I tried a different libSDL.a and finally an empty window shows up plus some complaints in the console window about a missing audio device...

Which libSDL.a is the correct one to use?
The one referred to in the github repo works: http://aminet.net/package/dev/misc/SDL-Amiga

What I get when I start the application is an actual SDL window, the "intro"-screen, then when it's supposed to show the actual program contents I get "Program aborted" and the SDL window just stays.

Quote:
Originally Posted by bebbo View Post
should I get more than this complaint? "SDL: failed to open audio device! ..."? with my UAE?
Do you have AHI installed? It is needed. AHI set to Paula Stereo++ should work.

Quote:
Originally Posted by bebbo View Post
And consider using
Code:
-fno-rtti -fno-exceptions
to reduce the code size a tiny bit.
Thanks for the tip!
Marlon_ is offline  
Old 21 June 2017, 14:31   #378
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
Quote:
Originally Posted by Marlon_ View Post
The one referred to in the github repo works: http://aminet.net/package/dev/misc/SDL-Amiga

What I get when I start the application is an actual SDL window, the "intro"-screen, then when it's supposed to show the actual program contents I get "Program aborted" and the SDL window just stays.


Do you have AHI installed? It is needed. AHI set to Paula Stereo++ should work.



Thanks for the tip!
OK - AHI audio driver is found now.
Now I have an empty window - no abort - no complaints.

Do I need further libraries?
bebbo is offline  
Old 21 June 2017, 14:34   #379
Marlon_
AmigaDev.com
 
Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Stockholm, Sweden
Age: 35
Posts: 625
only the ones stated in my github repo readme. I get the MilkyTracker logo in the window, that then fades out to black and should show the actual tracker interface. But when it's supposed to show the tracker interface it aborts.

I haven't tried your latest changes yet though.
Marlon_ is offline  
Old 21 June 2017, 14:39   #380
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 681
Quote:
Originally Posted by Marlon_ View Post
only the ones stated in my github repo readme. I get the MilkyTracker logo in the window, that then fades out to black and should show the actual tracker interface. But when it's supposed to show the tracker interface it aborts.

I haven't tried your latest changes yet though.
I recommend using the latest fix.

And btw: I am using my old old old hard disk image which I was using 20+ years ago on my A2000/040 then A3000/030 - don't ask but there are loads of libs in ancient versions...

... maybe I should setup a new vanilla wb...

PS: new there is now a milkytracker_config file
bebbo is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New GCC based dev toolchain for AmigaOS 3.x cla Coders. Releases 8 24 December 2017 10:18
Issue with photon/xxxx WinUAE Toolchain arpz Coders. Asm / Hardware 2 26 September 2015 22:33
New 68k gcc toolchain arti Coders. C/C++ 17 31 July 2015 03:59
Hannibal's WinUAE Demo Toolchain 5 Bobic Amiga scene 1 23 July 2015 21:04
From gcc to vbcc. Cowcat Coders. General 9 06 June 2014 14:45

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 20:50.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12070 seconds with 14 queries