Poster | Thread |
abalaban
| |
Re: New AmigaOS 4.1 SDK available Posted on 27-Jan-2009 17:35:21
| | [ #41 ] |
|
|
|
Super Member |
Joined: 1-Oct-2004 Posts: 1114
From: France | | |
|
| @xeron
given that the Sam440ep does not have altivec wouldn't an Altivec optimized binary crash ? (Just a question). _________________ AOS 4.1 : I dream it, Hyperion did it ! Now dreaming AOS 4.2... Thank you to all devs involved for this great job !
|
|
Status: Offline |
|
|
Templario
| |
Re: New AmigaOS 4.1 SDK available Posted on 27-Jan-2009 18:03:47
| | [ #42 ] |
|
|
|
Elite Member |
Joined: 22-Jun-2004 Posts: 3670
From: Unknown | | |
|
| Interesting, now I shall compile my codes for my Sam and maybe programming some dockies for Sam. |
|
Status: Offline |
|
|
xeron
| |
Re: New AmigaOS 4.1 SDK available Posted on 27-Jan-2009 18:36:58
| | [ #43 ] |
|
|
|
Elite Member |
Joined: 22-Jun-2003 Posts: 2440
From: Weston-Super-Mare, Somerset, England, UK, Europe, Earth, The Milky Way, The Universe | | |
|
| @abalaban
If it doesn't detect Altivec presence, it would crash, yes. The fix is to provide a non-altivec build. Not a 440ep optimised binary. Like I said, there are reasons why 440ep optimisation is useful, but for the most part there is really no point in using it. _________________ Playstation Network ID: xeron6
|
|
Status: Offline |
|
|
Tomppeli
| |
Re: New AmigaOS 4.1 SDK available Posted on 27-Jan-2009 20:34:56
| | [ #44 ] |
|
|
|
Super Member |
Joined: 18-Jun-2004 Posts: 1652
From: Home land of Santa, sauna, sisu and salmiakki | | |
|
| @everybody involved
_________________ Rock lobster bit me. My Workbench has always preferences. X1000 + AmigaOS4.1 FE "Anyone can build a fast CPU. The trick is to build a fast system." -Seymour Cray
|
|
Status: Offline |
|
|
broadblues
| |
Re: New AmigaOS 4.1 SDK available Posted on 27-Jan-2009 23:59:10
| | [ #45 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4447
From: Portsmouth England | | |
|
| Downloaded installed and everything working, except that I can't seem to build and amiga library (not a sobj a 'proper' amiga one )
I'm getting link errors, along the lines of duplicate _start symbol, and if I use -nostartfiles I get linker errors as the constructors aren't inlcuded.
In my old SDK I was using a specs file based on the one made by Entzila ( I think) for the asobjs package on os4depot, this drew in the needed the files without having to add explicit paths to the start up objects in the make file.
Now the -shared option has been used for making sobjs and I can find an alternate opion mentioned in the docs. Nor can I find the new specs file to have a butchers at it. (I suspect there aint one)
What am I missing? _________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad
|
|
Status: Offline |
|
|
AlexC
| |
Re: New AmigaOS 4.1 SDK available Posted on 28-Jan-2009 0:53:27
| | [ #46 ] |
|
|
|
Super Member |
Joined: 22-Jan-2004 Posts: 1300
From: City of Lost Angels, California. | | |
|
| @broadblues
Works here with my Commander.blanker but I don't know if it qualifies as a "shared" library.
It compiles with: CFLAGS = -D__NOLIBBASE__ -D__NOGLOBALIFACE__ And links with: LINK = -nostartfiles -lm
Not sure that's any help though. _________________ AlexC's free OS4 software collection
AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation
|
|
Status: Offline |
|
|
broadblues
| |
Re: New AmigaOS 4.1 SDK available Posted on 28-Jan-2009 1:27:46
| | [ #47 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4447
From: Portsmouth England | | |
|
| I think the problem may be that I'm using clib2 threadsafe for my library. And the calls to _lib_init() need the constructors, thus nostartfiles removes to much.
I may be behind the times though can you use newlib for shared libraries these days?
I think the issue would not occur with alibrary that solely used dos.library etc but as I need to link againstt things like libjpeg I need a C-library as well. _________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad
|
|
Status: Offline |
|
|
zerohero
| |
Re: New AmigaOS 4.1 SDK available Posted on 28-Jan-2009 5:55:31
| | [ #48 ] |
|
|
|
Team Member |
Joined: 4-May-2004 Posts: 2524
From: Uddevalla, Sweden | | |
|
| @broadblues
There are no problems when using newlib for shared libraries, I do that with dopus.library. Here's a code snippet I think Joerg posted somewhere about using newlib with amiga type .libraries:
Quote:
struct Interface *INewlib; struct ExecIFace *IExec; BPTR g_seglist;
static struct Library *LIB_Init(struct Library *library, BPTR seglist, struct ExecIFace *exec) { struct Library *newlibbase; IExec = exec;
library->lib_Revision = REVISION; newlibbase = IExec->OpenLibrary("newlib.library", 52); if (newlibbase) { INewlib = IExec->GetInterface(newlibbase, "main", 1, NULL); } if (INewlib) { g_seglist = seglist; return library; } else { IExec->DebugPrintF("foobar.library couldn't open newlib.library V52\n"); IExec->Alert(AT_Recovery|AG_OpenLib|AO_NewlibLib); return NULL; } }
static BPTR LIB_Expunge(struct LibraryManagerInterface *Self) { BPTR result; struct Library *library = Self->Data.LibBase;
if (0 == library->lib_OpenCnt) { struct Library *newlibbase = INewlib->Data.LibBase; result = g_seglist; /* Undo what the init code did */ IExec->DropInterface(INewlib); IExec->CloseLibrary(newlibbase); IExec->Remove(&library->lib_Node); IExec->DeleteLibrary(library); } else { result = 0; library->lib_Flags |= LIBF_DELEXP; } return result; }
|
Regards, Joachim Birging _________________ Common sense - So rare it's almost like a super power
|
|
Status: Offline |
|
|
abalaban
| |
Re: New AmigaOS 4.1 SDK available Posted on 28-Jan-2009 16:05:39
| | [ #49 ] |
|
|
|
Super Member |
Joined: 1-Oct-2004 Posts: 1114
From: France | | |
|
| Wasn't newlib using the Task's UserData to store some own datas ? _________________ AOS 4.1 : I dream it, Hyperion did it ! Now dreaming AOS 4.2... Thank you to all devs involved for this great job !
|
|
Status: Offline |
|
|
Georg
| |
Re: New AmigaOS 4.1 SDK available Posted on 29-Jan-2009 16:31:41
| | [ #50 ] |
|
|
|
Regular Member |
Joined: 14-May-2003 Posts: 451
From: Unknown | | |
|
| Quote:
There are no problems when using newlib for shared libraries, I do that with dopus.library. Here's a code snippet I think Joerg posted somewhere about using newlib with amiga type .libraries: |
I don't know about OS4/newlib, but in AROS using it's shared c lib (not based on newlib) in another library can cause problems, for example when running an app from shell. Example:
- App (Dopus) is started from Shell. Apps run directly in shell task (app task == shell task).
- App loads lib (dopus.library) which loads shared c lib which connects clib context data to app task (== shell task).
- App quits, but shared c lib is not closed, because that happens only when dopus.library is expunged (not just closed).
- clib context data stays connected to shell task, although it shouldn't, because app is gone.
- Shared clib using apps started after that from same shell may try to re-use already existing clib context, although they shouldn't (should init/create their own one). |
|
Status: Offline |
|
|
Hypex
| |
Re: New AmigaOS 4.1 SDK available Posted on 1-Feb-2009 6:13:44
| | [ #51 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11329
From: Greensborough, Australia | | |
|
| |
Status: Offline |
|
|
Hypex
| |
Re: New AmigaOS 4.1 SDK available Posted on 14-Feb-2009 6:04:23
| | [ #52 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11329
From: Greensborough, Australia | | |
|
| @xeron
Quote:
If something crashes that has been compiled for PowerPC, the fix is not to enable 440ep optimisations, the fix is the fix the bug in the software. |
How can we be sure it's a big in the software? It runs fine on my G3 without AV. I have also noticed erratic behaviour as sometimes there is no crash. But mostly things like UAE crash.
And Rogue has stated the 440ep doesn't use a full PowerPC IIRC, he said it was a BookE CPU. That was comparing the 603/G2? to a Sam CPU SoC. |
|
Status: Offline |
|
|