WIP updated homebrew toolchain for PS2

Discussion in 'General PS2 Discussion' started by uyjulian, Aug 25, 2018.

  1. 42
    76
    37
    uyjulian

    uyjulian Developer

    Joined:
    May 27, 2017
    Messages:
    42
    Likes Received:
    76
    Trophy Points:
    37
    Gender:
    Male
    Here's some information about the new WIP toolchain.
    ps2toolchain (uyjworking branch): https://github.com/uyjulian/ps2toolchain
    gsKit (ujworking branch): https://github.com/uyjulian/gsKit
    ps2sdk-ports (merge_stuff branch): https://github.com/uyjulian/ps2sdk-ports
    Quick start:
    Code:
    echo 'export PS2DEVUJ=/usr/local/ps2devuj' >> ~/.bash_profile
    echo 'export PS2SDKUJ=$PS2DEVUJ/ps2sdk' >> ~/.bash_profile
    echo 'export PATH=$PATH:$PS2DEVUJ/bin:$PS2DEVUJ/ee/bin:$PS2DEVUJ/iop/bin:$PS2DEVUJ/dvp/bin:$PS2SDKUJ/bin' >> ~/.bash_profile
    source ~/.bash_profile
    git clone https://github.com/uyjulian/ps2toolchain.git
    cd ps2toolchain
    git checkout origin/uyjworking
    ./toolchain.sh
    
    Stuff may break or not work on the new toolchain, so if you are starting out new, I advise you to use the old toolchain: https://github.com/ps2dev/ps2toolchain
     
    Last edited: Aug 26, 2018
    bguerville, TnA, Berion and 3 others like this.
  2. 42
    76
    37
    uyjulian

    uyjulian Developer

    Joined:
    May 27, 2017
    Messages:
    42
    Likes Received:
    76
    Trophy Points:
    37
    Gender:
    Male
    Here's what will probably happen: EE will be held back at binutils 2.25.1 and GCC 6.3.0, while the IOP toolchain will be continuously updated to latest binutils and GCC combos. I'm not well-versed in binutils and GCC changes, so I'll leave it at that.

    Someone is working on a LLVM/Clang toolchain for the EE.

    If you need assistance with this toolchain, feel free to pop open #psugnd on freenode.

    Here's what already happened: EE and DVP will be held back at binutils 2.25.1, but the rest will be using latest GCC and binutils. It works so far.
     
    Last edited: Sep 9, 2018
    TnA and STLcardsWS like this.
  3. 42
    76
    37
    uyjulian

    uyjulian Developer

    Joined:
    May 27, 2017
    Messages:
    42
    Likes Received:
    76
    Trophy Points:
    37
    Gender:
    Male
    gsKit has been updated and fixed.
     
    TnA likes this.
  4. 237
    146
    47
    TnA

    TnA Member

    Joined:
    Jul 1, 2018
    Messages:
    237
    Likes Received:
    146
    Trophy Points:
    47
    gskit works? Interesting!

    Does any project compile on it 'right out of the box'?
     
  5. 42
    76
    37
    uyjulian

    uyjulian Developer

    Joined:
    May 27, 2017
    Messages:
    42
    Likes Received:
    76
    Trophy Points:
    37
    Gender:
    Male
    No, you have to change the makefile to point it to the new toolchain, and you have to fix any errors (example: wrong l-value assignment)
     
  6. 42
    76
    37
    uyjulian

    uyjulian Developer

    Joined:
    May 27, 2017
    Messages:
    42
    Likes Received:
    76
    Trophy Points:
    37
    Gender:
    Male
    I'm working on patches for upstream ps2sdk and ps2toolchain that will cleanup the code and merge some newlib changes. This will reduce the amount of non-upstreamed code in my branch.
     
  7. 42
    76
    37
    uyjulian

    uyjulian Developer

    Joined:
    May 27, 2017
    Messages:
    42
    Likes Received:
    76
    Trophy Points:
    37
    Gender:
    Male
    GCC 9 will transition to bugfixes on November 11 and regression fixes and documentation fixes on January 6.

    Binutils 2.31.1 has been released a while back, and I'm planning to update to that version.

    I need to fix gsKit so all the samples will work properly. The hires sample complied with my toolchain will error on my PS2 TOOL for some reason.
    I should eventually upstream the working patches, and fix the old patches that differ from upstream.

    libc-test: https://github.com/AssemblyScript/libc-test
    Information about the GCC C unit test suite: https://gcc.gnu.org/onlinedocs/gccint/C-Tests.html
     
    Last edited: Nov 12, 2018 at 3:40 PM
    klx, jolek, TnA and 1 other person like this.

Share This Page