Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
50 user(s) are online (34 user(s) are browsing Forums)

Members: 1
Guests: 49

Cosmos, more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 ... 8 9 10 (11)


Re: Porting to AmigaOS4 thread
Quite a regular
Joined:
2007/2/27 10:47
From Gravity well
Posts: 668
I'm at the limit of my understanding but...

@Raziel

Link library to Amiga shared library is not a compilation issue, more like a "translation" job for which there is unlikely to be a software solution. The assumptions required of each don't seem to match.

Even the header files look quite different, at least to me. One factor maybe that the commonly used variety is intended to work both within an executable file and loaded separately. This is rather on the OS level (AmigaOS 4: a mention of "shared object" in elf.library). Before the program runs one line. Amiga libraries are "opened" by the program and the OS only complies.

   Report Go to top

Re: Porting to AmigaOS4 thread
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 3632
@Thematic

Yes, i know, this was a total noob question, since i never tried or done anything like this.

In the meantime i learned, that it need to be done with
IDLTool and the help of an .xml file to create a skeleton which the .a/.so library is "linked" in somewhat.

Thats about all i know

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: Porting to AmigaOS4 thread
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 3632
Another noob question:

Address Sanitizer or (-l)asan should be available since gcc 4.8.

It doesn't work though
Quote:

Development:Coding/SDK/gcc/ppc-amigaos/bin/ld: cannot find -lasan


Is it the same case as with -lto, that it has to be turned on in our gcc builds, or do we have to have the corresponding library first to use it in compiling?

Sounds like a really good addition to me and if we could get it, i'd vouche for it.

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: Porting to AmigaOS4 thread
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 3632
@kas1e

Can you tell me if that crash is one of those dos.library not open type ones?
Crash log for task "ScummVM_SDL2_Shared"
Generated by GrimReaper 53.19
Crash occured in module libstdc
++.so at address 0x7C33C6E4
Type of crash
DSI (Data Storage Interruptexception
Alert number
0x80000003

Register dump
:
GPR (General Purpose Registers):
   
07C33809C 4995A300 3D408000 49666584 00000000 00000006 4963E10C 49E16798 
   8
49666584 49E16798 4995A348 00000008 000007A8 4966E398 00000000 4E74D340 
  16
7CAD3EE0 00000000 4F8F7010 4E01E7C8 02B30000 02B30000 00000000 00000001 
  24
6FF8C180 00000001 49E158D0 49666584 4963EFDC 00000000 496639F4 4B9E3E68 


FPR 
(Floating Point RegistersNaN Not a Number):
   
0:              nan                0                0                0 
   4
:                0               -1                1              0.5 
   8
:              300             0.04                0       4.5036e+15 
  12
:              480                0                0                0 
  16
:                0                0                0                0 
  20
:                0                0                0                0 
  24
:                0                0                0                0 
  28
:                0                0                0               -

FPSCR 
(Floating Point Status and Control Register): 0x82008000


SPRs 
(Special Purpose Registers):
           
Machine State (msr) : 0x0200B030
                Condition 
(cr) : 0x4B6C1AB4
      Instruction Pointer 
(ip) : 0x7C33C6E4
       Xtended Exception 
(xer) : 0x4AA64018
                   Count 
(ctr) : 0x6FF494D0
                     Link 
(lr) : 0x7FAE9920
            DSI Status 
(dsisr) : 0x4AA63DD0
            Data Address 
(dar) : 0x021AD048



680x0 emulated registers
:
DATA96F04E00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
ADDR
6FFB8700 96BC5B00 00000000 00000000 00000000 00000000 00000000 49959CA0 
FPU0
:                0                0                0                0 
FPU4
:                0                0                0                0 



Symbol info
:
Instruction pointer 0x7C33C6E4 belongs to module "libstdc++.so" (PowerPC
Symbol_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE 0xEC in section 11 offset 0x000068E4

Stack trace
:
    
Games:ScummVM/sobjs/libstdc++.so:_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE()+0xec (section 11 0x68E4)
    
Games:ScummVM/sobjs/libstdc++.so:__dynamic_cast()+0x94 (section 11 0x229C)
    
module ScummVM_SDL2_Shared at 0x7CC2E000 (section 4 0x2C5FDC)
    
module ScummVM_SDL2_Shared at 0x7CC2D048 (section 4 0x2C5024)
    
module ScummVM_SDL2_Shared at 0x7CC2D370 (section 4 0x2C534C)
    
module ScummVM_SDL2_Shared at 0x7CC2CDD4 (section 4 0x2C4DB0)
    
module ScummVM_SDL2_Shared at 0x7CC2D370 (section 4 0x2C534C)
    
module ScummVM_SDL2_Shared at 0x7CC2CDD4 (section 4 0x2C4DB0)
    
module ScummVM_SDL2_Shared at 0x7CC2E230 (section 4 0x2C620C)
    
module ScummVM_SDL2_Shared at 0x7CC59BF0 (section 4 0x2F1BCC)
    
module Games:ScummVM/plugins/libtitanic.so at 0x79A90450 (section 0 0x1ACC40)
    
module Games:ScummVM/plugins/libtitanic.so at 0x79A9A55C (section 0 0x1B6D4C)
    
module Games:ScummVM/plugins/libtitanic.so at 0x79A99160 (section 0 0x1B5950)
    
module Games:ScummVM/plugins/libtitanic.so at 0x79A98F2C (section 0 0x1B571C)
    
module Games:ScummVM/plugins/libtitanic.so at 0x79AA1C34 (section 0 0x1BE424)
    
module Games:ScummVM/plugins/libtitanic.so at 0x79AA0638 (section 0 0x1BCE28)
    
module Games:ScummVM/plugins/libtitanic.so at 0x798F5D54 (section 0 0x12544)
    
module Games:ScummVM/plugins/libtitanic.so at 0x798FA24C (section 0 0x16A3C)
    
module Games:ScummVM/plugins/libtitanic.so at 0x798FA420 (section 0 0x16C10)
    
module ScummVM_SDL2_Shared at 0x7CAD5660 (section 4 0x16D63C)
    
module ScummVM_SDL2_Shared at 0x7CAD69CC (section 4 0x16E9A8)
    
module ScummVM_SDL2_Shared at 0x7CAD4144 (section 4 0x16C120)
    
native kernel module newlib.library.kmod+0x000020a4
    native kernel module newlib
.library.kmod+0x00002d0c
    native kernel module newlib
.library.kmod+0x00002ee8
    ScummVM_SDL2_Shared
:_start()+0x170 (section 11 0x1AB8)
    
native kernel module dos.library.kmod+0x000255c8
    native kernel module kernel
+0x000420ac
    native kernel module kernel
+0x000420f4

PPC disassembly
:
 
7c33c6dc8361002c   lwz               r27,44(r1)
 
7c33c6e07c0803a6   mtlr              r0
*7c33c6e4816b001c   lwz               r11,28(r11)
 
7c33c6e883810030   lwz               r28,48(r1)
 
7c33c6ec83a10034   lwz               r29,52(r1)

System information:

CPU 
 Model
P.ASemi PWRficient PA6T-1682M VB1 
 CPU speed
1800 MHz 
 FSB speed
900 MHz 
 Extensions
altivec 

Machine 
 Machine name
AmigaOne X1000 
 Memory
2097152 KB 
 Extensions
bus.pci bus.pcie

And if yes, how can i determine it?
Just because dos.library is mentioned after _start() in the stack trace?

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top

Re: Porting to AmigaOS4 thread
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5882
@Raziel
Quote:

Address Sanitizer

That one need llvm/clang and stuff

Quote:

And if yes, how can i determine it?
Just because dos.library is mentioned after _start() in the stack trace?


Usually when i see dos.library in stack trace and dar are 0x00000000, then yes. But in your example DAR seems different.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Porting to AmigaOS4 thread
Home away from home
Joined:
2006/11/26 21:45
From a dying planet
Posts: 3632
@kas1e

Ah, ok, thanks

_________________
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
   Report Go to top


« 1 ... 8 9 10 (11)



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project