English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 31 January 2012, 10:07   #1
mousehouse
 
Posts: n/a
Building WarpOS binaries on classic / 3.x

Hello fellow EAB'ers,

It seems most developers have left amiga.org, thus this long-time lurker comes running here ;-)

Finally I have succeeded in getting gcc 2.95.3 up and running and successfully compiling C code on 68K. Have not tried anything too fancy but it compiles, spits out an "a.out" binary that actually runs. Nice...

Now that I have that working I want to get the PPC/WarpOS part up and running. I have the 5 archives containing the add-ons installed successfully, meaning that I should have a compiler that can create PPC code running on 68K...

I can do a "ppc-amigaos-gcc -warpup --version" and it tells me nicely that it is 2.95.3 etc. Now when I actually try to compile my hello.c, it bails out on me... The 68K compiler runs fine, no issues there. I can run the first stage of the compiler just fine, after that 'ar' bails out on me with "as: unrecognized option 'u"...

Any clues? I've got the binutils from the latest GG snapshot on back2roots, it tells me it's version 2.91.

see:
 
Old 31 January 2012, 11:08   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Hard to say. When I should guess, I would say that your WarpOS-compiler still calls the 68k assembler? Or the compiler frontend expects a different assembler version?

Probably an installation problem. Try to find out with SnoopDos which binaries are really started. Maybe you get a clue from that.


My personal opinion is that you should look out for a real WarpOS compiler. Most of those gcc ports I have seen do neither support the WarpOS PowerOpen ABI nor do they create EHF object files.

Instead they will still generate ELF objects using the V.4-ABI. And to make that work they need a wrapper function for each WarpOS kernel call to fix the stack frame. But this doesn't help for callback functions, of course. So it might happen that your stack gets corrupted...
phx is offline  
Old 31 January 2012, 11:24   #3
mousehouse
 
Posts: n/a
Thanks!

What's the best way to create WarpOS binaries in your opinion? StormC 4.x? Or stick with my SAS/C 6.58 creating PowerUP code?

edit:
Correct, it seems the compiler calls the 68K assembler for creating a binary, which obviously fails. I checked the .S file and it looks like powerpc assembly compared to regular 68K assembly. Will do a snoopdos tonight to see what it is calling...

Last edited by mousehouse; 31 January 2012 at 11:34.
 
Old 31 January 2012, 11:45   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
I'd use VBCC. If you don't need C++ it's the best C compiler for all Amiga-like OSes (except AROS unfortunately). It runs on every Amiga OS and can create code for every other Amiga OS.
thomas is offline  
Old 31 January 2012, 13:03   #5
mousehouse
 
Posts: n/a
I dislike C++ anyway, so I'll give VBCC a go... The version on Aminet is 0.8, on http://sun.hasenbraten.de/vbcc/index.php?view=download I can see 0.9b... any best/most-recently-updated/recommended version?
 
Old 31 January 2012, 13:19   #6
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
The most recent version is always the one on the vbcc home page:
http://sun.hasenbraten.de/vbcc/
It is V0.9b.
phx is offline  
Old 31 January 2012, 13:58   #7
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
Quote:
Originally Posted by phx View Post
It is V0.9b.
OT: are you aware already that the 68k binary of fd2pragma crashes in 0.9b? It runs well in 0.9a.
thomas is offline  
Old 31 January 2012, 14:16   #8
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by thomas View Post
OT: are you aware already that the 68k binary of fd2pragma crashes in 0.9b? It runs well in 0.9a.
Indeed, you're right!
I will check that and upload an update.
Thanks.
phx is offline  
Old 31 January 2012, 16:52   #9
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Done.
phx 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
Amiga OS Fanboys on alt.binaries. Smiley Amiga scene 3 20 July 2009 01:25
Need Some Info About Compilng AmigaOS 3.x Binaries in AmiDevCpp Franz Bazarov Coders. General 9 14 May 2009 18:37
Assembler: Linking binaries with blink redblade Coders. General 0 29 March 2005 11:02
Any chance of Win95-compatible 0.8.23 binaries? MethodGit support.WinUAE 8 03 January 2004 14:06
alt.binaries download gdido Retrogaming General Discussion 3 31 October 2001 10:10

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 22:01.

Top

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