• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 598 from 2010/2/10
    From: FRANCE
    Hi.
    Thanks.
    So when i switch GCC4 to GCC 9 here (GCC9 line is comment) :

    https://github.com/BSzili/SDL/blob/mos-sdl2/Makefile.mos
    https://github.com/BSzili/SDL/blob/mos-sdl2/src/core/morphos/devenv/Makefile

    All building good. when i use library, i have a logtool crash :

    BZsili says me about this crash : the problem is *probably* the broken library glue code.

    Code:
    [20200411 21:32:04] >>> Exception 7 <Program>
    ----------------------------------------------------------------------
    Quark Thread TID 0000000010020010 Name ABox
    SRR0 0x00000000 SRR1 0x0208f030
    LR 0x1c669308 CTR 0x00000000
    CR 0x22000243 XER 0x20000400
    GPR[00] 1c6692cc 1f0b31f0 1f0b3aa0 1c815208 140000a8 00000000 1c9a3a98 14000048
    GPR[08] 1c814c68 00000000 00000000 14001948 24000248 1c751530 00000000 00000000
    GPR[16] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0001f900
    GPR[24] 1c746654 1c749474 1c80af40 1c749530 14001948 1c9a3a98 176c3090 176c2ee0
    FPSCR 82020000
    FPR[00] 0000000020020000 0000000000000000 0000000000000000 0000000000000000
    FPR[04] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[08] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[12] 0000000000000000 4003290b3326bf24 0000000000000000 0000000000000000
    FPR[16] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[20] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[24] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[28] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    VSAVE 00000000 VSCR 00010000
    VPR[00] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[02] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[04] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[06] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[08] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[10] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[12] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[14] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[16] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[18] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[20] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[22] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[24] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[26] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[28] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[30] 00000000000000000000000000000000 00000000000000000000000000000000
    IABR 00000000
    DABR 00000000
    MMCR0 00000000
    MMCR1 00000000
    MMCR2 00000000
    PMC1 00000000 PMC2 00000000 PMC3 00000000 PMC4 00000000
    SIA 00000000
    SDA 00000000
    >>> Quark Thread Stack History
    ----------------------------------------------------------------------
    StackFrame[ 0].LR[0x1c668c38] -> LIBS:sdl2.library [Hunk 1 Offset 0x00000fe8]
    StackFrame[ 1].LR[0x1010afcc] -> exec_of_604e.elf [Hunk 0 Offset 0x0000afcc Function OpenLibrary]
    StackFrame[ 2].LR[0x102cc058] -> ramlib.elf [Hunk 0 Offset 0x00000998]
    StackFrame[ 3].LR[0x102cc6d0] -> ramlib.elf [Hunk 0 Offset 0x00001010]
    StackFrame[ 4].LR[0x1b177754] -> scummvm [Hunk 1 Offset 0x01c2f574]
    StackFrame[ 5].LR[0x195486d4] -> scummvm [Hunk 1 Offset 0x000004f4]
    StackFrame[ 6].LR[0x19548574] -> scummvm [Hunk 1 Offset 0x00000394]
    StackFrame[ 7].LR[0x1954848c] -> scummvm [Hunk 1 Offset 0x000002ac]
    StackFrame[ 8].LR[0x102ac628] -> dos.elf [Hunk 0 Offset 0x0001a968]
    StackFrame[ 9].LR[0x102a17c8] -> dos.elf [Hunk 0 Offset 0x0000fb08]
    StackFrame[10].LR[0x102a15f0] -> dos.elf [Hunk 0 Offset 0x0000f930]
    StackFrame[11].LR[0x102a18bc] -> dos.elf [Hunk 0 Offset 0x0000fbfc]
    >>> ABox State
    ----------------------------------------------------------------------
    ExecBase: SysBase 0x14001948
    SysFlags 0x0000 AttnResched 0x0000 IDNestCnt -1 TDNestCnt 0
    ThisTask 0x1c9a3a98 TaskReady 0x151f8d30 TaskWait 0x140243b0
    ResModules 0x140040e8
    TaskTrapCode 0x10120de4 TaskExceptCode 0x10120dec TaskExitCode 0x10120e48
    TaskSigAlloc 0xffff TaskTrapAlloc 0x8000
    IdleCount 18080 DispCount 183519
    Quantum 4 Elapsed 4
    VBlankFrequency 50 PowerSupplyFrequency 50 EClockFrequency 709379
    MainTID 0x10020010 SchedulerTID 0x10020012 SchedulerSig 0x80000000
    OldSRR0 0x0
    ConfigServerTID 0x10000013
    LastIntObject 0x14104f5c
    LastIntObject 0x14104f5c <Not Valid ptr>
    Code 0x10499a68 Data 0x140dc148
    Int0: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int1: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int2: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int3: iv_Code 0x101262b8 iv_Data 0x14003b40 iv_Node 0x00000000
    Int4: iv_Code 0x101262b8 iv_Data 0x14003b60 iv_Node 0x00000000
    Int5: iv_Code 0x101262b8 iv_Data 0x14003b50 iv_Node 0x00000000
    Interrupt 0x1402e476 <graphics.library>
    Code 0x1018dbe8 Data 0x1402e42c
    Interrupt 0x148c2950 <ixemul timer interrupt>
    Code 0x148bfa58 Data 0x00000000
    Int6: iv_Code 0x1018dbf0 iv_Data 0x1402e42c iv_Node 0x1402e4a2
    Int7: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int8: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int9: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int10: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int11: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int12: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int13: iv_Code 0x101262b8 iv_Data 0x14003b70 iv_Node 0x00000000
    Int14: iv_Code 0x00000000 iv_Data 0x00000000 iv_Node 0x00000000
    Int15: iv_Code 0x101262b8 iv_Data 0x14003b80 iv_Node 0x00000000


    >>> Running Task
    ----------------------------------------------------------------------
    Task 0x1c9a3a98 Name 0x1dd2bb7c <scummvm> Type 13 Pri 0
    Flags 0x8 State 2 IDNestCnt -1 TDNestCnt -1
    SigAlloc 0x0000ffff SigWait 0x00000010 SigRecvd 0x00000100 SigExcept 0x00000000
    ExceptCode 0x10120dec ExceptData 0x00000000 TrapCode 0x10120de4 TrapData 0x00000000
    Switch 0x00000000 Launch 0x00000000 UserData 0x00000000
    SPLower 0x1c9a3b7c SPUpper 0x1dd2bb7c SPReg 0x1dd2bb18
    MemList 0x164cf8e8 Entries 0x1
    Address 0x1644d510 Size 0x14
    MemList 0x1658e290 Entries 0x1
    Address 0x1c9a3a98 Size 0x13880ec
    ----------------------------------------------------------------------
    ETask 0x164d2874
    MemPool 0x1772f040 PPCLibData 0x00000000
    PPCSPLower 0x1dd2bb94 PPCSPUpper 0x1f0b3b90
    PPCTrapMsgPort 0x00000000 PPCTrapMessage 0x1658e39c
    PPCRegFrame 0x1f0b36b0
    Private[] 0x00000000 0x00000000 0x00000000 0x00000000
    EmulHandle 0x00000000
    ----------------------------------------------------------------------
    EmulHandle 0x1f0b3aa0 Type 0x00000004 Flags 0x00000001
    SuperHandle 0x10001000 Type 0x00000000 WaitMask 0x00000000 SyncMask 0x00000000
    USP 0x00000000 SSP 0x140037a0 VBR 0x1400e238
    SFC 0x00000000 DFC 0x00000000 CACR 0xa0808000 TC 0x00000000
    ITT0 0x00000000 ITT1 0x00000000 DTT0 0x00000000 DTT1 0x00000000
    URP 0x00000000 SRP 0x00000000 BUSCR 0x00000000 PCR 0x04310501
    >>> Task Registers Frame
    ----------------------------------------------------------------------
    SRR0 0x00000000 SRR1 0x0208f030
    LR 0x1c669308 CTR 0x00000000
    CR 0x22000243 XER 0x20000400
    GPR[00] 1c6692cc 1f0b31f0 1f0b3aa0 1c815208 140000a8 00000000 1c9a3a98 14000048
    GPR[08] 1c814c68 00000000 00000000 14001948 24000248 1c751530 00000000 00000000
    GPR[16] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0001f900
    GPR[24] 1c746654 1c749474 1c80af40 1c749530 14001948 1c9a3a98 176c3090 176c2ee0
    FPSCR 82020000
    FPR[00] 0000000020020000 0000000000000000 0000000000000000 0000000000000000
    FPR[04] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[08] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[12] 0000000000000000 4003290b3326bf24 0000000000000000 0000000000000000
    FPR[16] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[20] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[24] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[28] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    VSAVE 00000000 VSCR 00010000
    VPR[00] 1133af6a000000080000000178300000 11330000000000001a1a1a1a1b1b1b1b
    VPR[02] 1c1c1c1c1d1d1d1d1e1e1e1e1f1f1f1f 1000d97000044e381e1e1e1e0000000b
    VPR[04] 102a18bc11393d91000000000000fbfc 1133af081133af081a1a1a1a1b1b1b1b
    VPR[06] 1000d9301d1d1d1d14001b5c1133ae58 1000d93000044e380000000000000000
    VPR[08] 1c1c1c1c1d1d1d1d1e1e1e1e1f1f1f1f 1000d97011006c9c11393d9100000000
    VPR[10] 102a18bc1000d9781000d97c1000d980 1000d9601000d9780000000000000030
    VPR[12] 1000d9700001182c1000d8d800000000 1000d98000044f580000000000000000
    VPR[14] 1000d9c0000457042004288413131313 1000d9a0151515151000d9f00000000a
    VPR[16] 1000d9b00001182c1e1e1e1e0000000a 1000d9c00001182c1000d9f000000000
    VPR[18] 1000d9d000044f58000000001000dad0 1000da5000045fe80000000178300000
    VPR[20] 00000000000000000000000000000000 30003000336238300000000000000000
    VPR[22] 00000000000000000000000000000000 1133ae1c000000000000000000000000
    VPR[24] 113390c8000000001a1a1a1a1b1b1b1b 1c1c1c1c1d1d1d1d1a1a1a1a1b1b1b1b
    VPR[26] 1c1c1c1c1d1d1d1d1e1e1e1e1f1f1f1f 1000daf000044e380000000000000000
    VPR[28] 0000000100b520080000000a00001689 11339aa800b539310000000000000000
    VPR[30] 00000000000000000000000000000000 00000000000000000000000000000000
    >>> Task Stack History
    ----------------------------------------------------------------------
    LR[0x1c669308] -> LIBS:sdl2.library [Hunk 1 Offset 0x000016b8]
    StackFrame[ 0].LR[0x1c668c38] -> LIBS:sdl2.library [Hunk 1 Offset 0x00000fe8]
    StackFrame[ 1].LR[0x1010afcc] -> exec_of_604e.elf [Hunk 0 Offset 0x0000afcc Function OpenLibrary]
    StackFrame[ 2].LR[0x102cc058] -> ramlib.elf [Hunk 0 Offset 0x00000998]
    StackFrame[ 3].LR[0x102cc6d0] -> ramlib.elf [Hunk 0 Offset 0x00001010]
    StackFrame[ 4].LR[0x1b177754] -> scummvm [Hunk 1 Offset 0x01c2f574]
    StackFrame[ 5].LR[0x195486d4] -> scummvm [Hunk 1 Offset 0x000004f4]
    StackFrame[ 6].LR[0x19548574] -> scummvm [Hunk 1 Offset 0x00000394]
    StackFrame[ 7].LR[0x1954848c] -> scummvm [Hunk 1 Offset 0x000002ac]
    StackFrame[ 8].LR[0x102ac628] -> dos.elf [Hunk 0 Offset 0x0001a968]
    StackFrame[ 9].LR[0x102a17c8] -> dos.elf [Hunk 0 Offset 0x0000fb08]
    StackFrame[10].LR[0x102a15f0] -> dos.elf [Hunk 0 Offset 0x0000f930]
    StackFrame[11].LR[0x102a18bc] -> dos.elf [Hunk 0 Offset 0x0000fbfc]
    Stack: 0x1f0b31f0
    0x1f0b31d0[-0x20] 1c746654 1c749474 1c80af40 1c749530
    0x1f0b31e0[-0x10] 14001948 1c9a3a98 176c3090 176c2ee0
    0x1f0b31f0[0x000] 1f0b3230 1c6692cc 800003f4 1c761424
    0x1f0b3200[0x010] 80000001 1c751530 00000000 1dd2bb74
    0x1c6692cc -> LIBS:sdl2.library [Hunk 1 Offset 0x0000167c]
    0x1c761424 -> LIBS:sdl2.library [Hunk 3 Offset 0x0000015c]
    0x15300000 -> MOSSYS:LIBS/openurl.library [Hunk 1 Offset 0x00002490]
    >>> Full PPC mode: Last saved 68k context
    ----------------------------------------------------------------------
    PC 87654321 SR 0000
    Dn[0] 00000070 00000000 0000000a 1f0b2de0 101097ec 00000000 00000000 00000048
    An[0] 1c814c68 1c749530 1772ee10 1f0b2df0 1010a140 102c39d8 14001948 1dd2bb78
    Stack: 0x1dd2bb78
    0x1dd2bb58[-0x20] 00000000 00000000 00000000 00000000
    0x1dd2bb68[-0x10] 00000000 00000000 00000000 1133e218
    0x1dd2bb78[0x000] 01388000 7363756d 6d766d00 0016a8c2
    0x1dd2bb88[0x010] 1c9a3a90 01388008 01388004 14000034
    0x1dd2bb98[0x020] 0001e18c 0016a8ca 00000406 0001d89c
    0x1dd2bba8[0x030] 0016a8ce 00000404 0003bc9c 0016a8d2
    0x1dd2bbb8[0x040] 00000404 0001e18c 0016a8d6 00000404
    0x1dd2bbc8[0x050] 0001d89c 0016a8e6 00000406 0003bc9c
    0x1dd2bbd8[0x060] 0016a8ea 00000406 0001e17c 0016a8ee
    0x1dd2bbe8[0x070] 00000406 0001d89c 0016a8f2 00000404
    >>> Last saved PPCThread State
    ----------------------------------------------------------------------
    SRR0 0x1011ff18 SRR1 0x0200f030
    LR 0x1010eeb4 CTR 0x00000000
    CR 0x88000884 XER 0x00000000
    GPR[00] 00000000 1f0b3010 1f0b3aa0 00000000 00000000 00000000 00000000 00000000
    GPR[08] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    GPR[16] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000004
    GPR[24] ffffffff 14001af0 14001aec 00000001 ffffffff 88000844 14001948 1c9a3a98
    FPSCR 82020000
    FPR[00] 0000000020020000 0000000000000000 0000000000000000 0000000000000000
    FPR[04] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[08] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[12] 0000000000000000 4003290b3326bf24 0000000000000000 0000000000000000
    FPR[16] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[20] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[24] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    FPR[28] 0000000000000000 0000000000000000 0000000000000000 0000000000000000
    VSAVE 00000000 VSCR 00010000
    VPR[00] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[02] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[04] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[06] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[08] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[10] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[12] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[14] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[16] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[18] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[20] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[22] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[24] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[26] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[28] 00000000000000000000000000000000 00000000000000000000000000000000
    VPR[30] 00000000000000000000000000000000 00000000000000000000000000000000
    SRR0[0x1011ff18] -> exec_of_604e.elf [Hunk 0 Offset 0x0001ff18]
    LR[0x1010eeb4] -> exec_of_604e.elf [Hunk 0 Offset 0x0000eeb4 Function Wait]
    StackFrame[ 0].LR[0x1010e880] -> exec_of_604e.elf [Hunk 0 Offset 0x0000e880 Function WaitPort]
    StackFrame[ 1].LR[0x102cc058] -> ramlib.elf [Hunk 0 Offset 0x00000998]
    StackFrame[ 2].LR[0x102cc6d0] -> ramlib.elf [Hunk 0 Offset 0x00001010]
    StackFrame[ 3].LR[0x1c668c38] -> LIBS:sdl2.library [Hunk 1 Offset 0x00000fe8]
    StackFrame[ 4].LR[0x1010afcc] -> exec_of_604e.elf [Hunk 0 Offset 0x0000afcc Function OpenLibrary]
    StackFrame[ 5].LR[0x102cc058] -> ramlib.elf [Hunk 0 Offset 0x00000998]
    StackFrame[ 6].LR[0x102cc6d0] -> ramlib.elf [Hunk 0 Offset 0x00001010]
    StackFrame[ 7].LR[0x1b177754] -> scummvm [Hunk 1 Offset 0x01c2f574]
    StackFrame[ 8].LR[0x195486d4] -> scummvm [Hunk 1 Offset 0x000004f4]
    StackFrame[ 9].LR[0x19548574] -> scummvm [Hunk 1 Offset 0x00000394]
    StackFrame[10].LR[0x1954848c] -> scummvm [Hunk 1 Offset 0x000002ac]
    StackFrame[11].LR[0x102ac628] -> dos.elf [Hunk 0 Offset 0x0001a968]
    StackFrame[12].LR[0x102a17c8] -> dos.elf [Hunk 0 Offset 0x0000fb08]
    StackFrame[13].LR[0x102a15f0] -> dos.elf [Hunk 0 Offset 0x0000f930]
    StackFrame[14].LR[0x102a18bc] -> dos.elf [Hunk 0 Offset 0x0000fbfc]

    ----------------------------------------------------------------------
    SegList 0x05913544 GlobVec 0x1402356c
    StackBase 0x07268edf StackSize 0x01388000
    TaskNum 0x00000000 Result2 0x00000000
    CurrentDir 0x05934a82 CIS 0x00000000
    COS 0x00000000 CES 0x00000000
    ConsoleTask 0x19230320 FileSystemTask 0x140ccc34
    CLI 0x00000000 ReturnAddr 0x1dd2bb78
    PktWait 0x00000000 WindowPtr 0x00000000
    HomeDir 0x0648ca52 Flags 0x00000000
    ExitCode 0x00000000 ExitData 0x00000000
    Arguments 0x00000000 ShellPrivate 0x00000000
    [20200411 21:32:04] >>> End of Exception State Dump
    ----------------------------------------------------------------------


    [ Edité par beworld 12.04.2020 - 08:23 ]

    [ Edité par beworld 12.04.2020 - 08:25 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.04.20 - 07:03
    Profile Visit Website