Results 1 to 10 of 12

Thread: FPC 4 Wii

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ok, thanks for the suggestions. I have edited a little bit the page, following your advices

    The error you get comes in two cases: 1) the rtl isn't built at all or it misses some units or 2) the file fpc.cfg is missing or it points to the wrong paths.
    Please, make sure that in C:\fpc4wii\units\powerpc-wii there are system.o and system.ppu.

    In the meanwhile, I just found some problems (a couple of functions I forgot to translate...) on libogcfpc. Please, download gccore.inc again from the svn trunk
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  2. #2
    After doing a update to head on the fpc sources i decided to to a new build_rtl.
    Now it think it fails on:
    d:/fpc4wii/bin/powerpc-wii/ppcppc.exe -Twii -Ppowerpc -XPpowerpc-eabi- -Xr -Fi..
    /inc -Fi../powerpc -FE. -FU../../rtl/units/powerpc-wii -Twii -CX -XX -O2 -dpower
    pc ../inc/cmem.pp
    D:\fpc4wii\bin\powerpc-wii\powerpc-eabi-ar.exe: creating ..\..\rtl\units\powerpc
    -wii\libpcmem.a
    Bestand niet gevonden - *.*
    0 bestand(en) gekopieerd
    A file not found does not seem good in my opnion. Although i do not see something like a build error.
    http://3das.noeska.com - create adventure games without programming

  3. #3
    Quote Originally Posted by noeska View Post
    After doing a update to head on the fpc sources i decided to to a new build_rtl.
    Now it think it fails on:

    A file not found does not seem good in my opnion. Although i do not see something like a build error.
    Definitely not. The problem is in the batch script: it searches the units in a folder that does not exist...

    Code:
    XCOPY /Y %FPC_SRC_DIR%\rtl\wii\units\powerpc-wii\*.* %FPC_INST_DIR%\units\powerpc-wii\
    should be

    Code:
    XCOPY /Y %FPC_SRC_DIR%\rtl\units\powerpc-wii\*.* %FPC_INST_DIR%\units\powerpc-wii\
    I have fixed the wiki too. Sorry for the inconvenience
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  4. #4
    Ok applied that fix and started from scratch and i now seem to have an almost working fpc4wii compiler.
    The audio examples now compile.
    But now i get some errors on the usbgecko examples:
    make[1]: Entering directory `/d/fpc4wii/build_examples/examples/devices'
    make -C network all
    make[2]: Entering directory `/d/fpc4wii/build_examples/examples/devices/network'

    make -C sockettest all
    make[3]: Entering directory `/d/fpc4wii/build_examples/examples/devices/network/
    sockettest'
    /d/FPC/2.2.4/bin/i386-Win32/gmkdir.exe -p units/powerpc-wii
    ppcppc.exe -Twii -Ppowerpc -XPpowerpc-eabi- -Xr -g -Xm -FE. -FUunits/powerpc-wii
    -dpowerpc sockettest.pp
    make[3]: Leaving directory `/d/fpc4wii/build_examples/examples/devices/network/s
    ockettest'
    make[2]: Leaving directory `/d/fpc4wii/build_examples/examples/devices/network'
    make -C usbgecko all
    make[2]: Entering directory `/d/fpc4wii/build_examples/examples/devices/usbgecko
    '
    make -C gdbstub all
    make[3]: Entering directory `/d/fpc4wii/build_examples/examples/devices/usbgecko
    /gdbstub'
    /d/FPC/2.2.4/bin/i386-Win32/gmkdir.exe -p units/powerpc-wii
    ppcppc.exe -Twii -Ppowerpc -XPpowerpc-eabi- -Xr -g -Xm -FE. -FUunits/powerpc-wii
    -dpowerpc gdbstub.pp
    D:\devkitPro\libogc\lib\wii\\libdb.a(debug_supp.o) : In function `gdbstub_getoffs
    ets':
    /Users/davem/projects/devkitpro/libogc/libdb/debug_supp.c:289: undefined referen
    ce to `__text_fstart'
    /Users/davem/projects/devkitpro/libogc/libdb/debug_supp.c:289: undefined referen
    ce to `__text_fstart'
    /Users/davem/projects/devkitpro/libogc/libdb/debug_supp.c:289: undefined referen
    ce to `__data_fstart'
    /Users/davem/projects/devkitpro/libogc/libdb/debug_supp.c:289: undefined referen
    ce to `__data_fstart'
    /Users/davem/projects/devkitpro/libogc/libdb/debug_supp.c:290: undefined referen
    ce to `__bss_fstart'
    /Users/davem/projects/devkitpro/libogc/libdb/debug_supp.c:290: undefined referen
    ce to `__bss_fstart'
    gdbstub.pp(49,33) Error: Error while linking
    gdbstub.pp(49,33) Fatal: There were 1 errors compiling module, stopping
    Fatal: Compilation aborted
    make[3]: *** [gdbstub.dol] Error 1
    make[3]: Leaving directory `/d/fpc4wii/build_examples/examples/devices/usbgecko/
    gdbstub'
    make[2]: *** [gdbstub_all] Error 2
    make[2]: Leaving directory `/d/fpc4wii/build_examples/examples/devices/usbgecko'

    make[1]: *** [usbgecko_all] Error 2
    make[1]: Leaving directory `/d/fpc4wii/build_examples/examples/devices'
    make: *** [devices_all] Error 2
    http://3das.noeska.com - create adventure games without programming

  5. #5
    That example needs to be fixed. Maybe I have missed to link some library or the linking order is wrong, but I haven't investigated further, because I'm focusing on the library itself.

    EDIT: seems that this could be fixed by passing --gc-sections to the linker, or rather by passing -k--gc-sections to the fpc compiler. It is only matter to add this parameter to the makefile.fpc:

    Code:
    [compiler]
    options=-Xm -k--gc-sections
    then regenerate the Makefile as usual, by

    Code:
    fpcmake -r -w -Twii
    Last edited by Legolas; 02-03-2011 at 09:02 PM.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #6
    Thanks.

    I am not that good with fpcmake and the likes.

    I now run into problems when executing the fpcmake -r -w Twii as it then states:
    Processing Makefile.fpc
    Error: Target "wii", package "libogcfpc" not found
    Just removing usbgecko examples gives and not found for usbgecko.

    Maybe i should compile the examples one by one. :-)

    Anyways i am going to try out the working examples on the wii this weekend.

    Is not the gecko some kind of debug device?
    http://3das.noeska.com - create adventure games without programming

  7. #7
    Yes, it is. BTW, as you have noticed, things need some work here and there. I'll try to fix these issues in the next days. Let me know if the examples are running fine on the Wii
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •