KOS Toolchain Assistance?

Discussion in 'Sega Dreamcast Development and Research' started by TerdFerguson, Jun 17, 2016.

  1. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    I'm using @kazade guide here:
    http://blog.kazade.co.uk/2016/01/setting-up-kallistios-on-fedora.html

    I have a fresh install of Fedora on an SD card. I followed all the steps correctly, but I'm getting these errors after you ./download , ./unpack , then make the makefile
    [​IMG]

    This is where I've gotten stuck on other distros. I figured using a fresh Fedora install would fix that. But I'm not sure how to go about diagnosing and fixing these errors because from what I understand Make errorcode 1 is just whatever command was run in the Makefile returns an error and the build exits with Ecode 1

    I figured this would be the best place to get assistance specifically for KOS. Since Ecode 1 and 2 are pretty general errors. Any assistance is greatly appriciated. I've been wanting to setup a working toolchain for awhile

    Thanks
     
  2. beepboop

    beepboop <B>Site Supporter 2013</B>

    Joined:
    Jul 10, 2013
    Messages:
    238
    Likes Received:
    52
    It says right there, makeinfo is missing. Fix it by installing it:
    Code:
    sudo yum install texinfo
     
    TerdFerguson likes this.
  3. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    I can't believe I missed that. I assumed anything above the Ecodes was irrelevant. Thanks man it's building now
     
  4. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    I installed a bunch of development libraries and a few dependancies I was missing but still stuck at GCC pass 2

    Here's everything I could copy from console
     

    Attached Files:

    • log.txt
      File size:
      1.5 KB
      Views:
      125
  5. Trident6

    Trident6 Spirited Member

    Joined:
    Oct 17, 2015
    Messages:
    119
    Likes Received:
    55
    Code:
    checking how to copy va_list... Makefile:3810: recipe for target 'configure-gcc' failed
    Looks like the gcc-configure step failed, what is going on in the makefile around line 3810?
     
  6. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    KOS/utils/dc-chain/Makefile is only 352 lines long. Though it's probably making the Makefiles for each of the toolchain components, do you want the main Makefile or GCC's Makefile?

    Edit: Here's the section from line 3809 of dc-chain/build-gcc-sh-elf-4.7.3. It's impressive how you could predict the line for the failed function
     
  7. Trident6

    Trident6 Spirited Member

    Joined:
    Oct 17, 2015
    Messages:
    119
    Likes Received:
    55
    Interesting, that doesn't seem to have anything to do with va_lists. Post the whole output of the make process that fails (make &> somefile.txt will pipe it to a file).

    I know KOS wants a specific version of GCC, but 4.7 is pretty old. It is possible that the ABI for va_lists in libcpp has changed recently.
     
  8. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    Here's the log
     

    Attached Files:

  9. Trident6

    Trident6 Spirited Member

    Joined:
    Oct 17, 2015
    Messages:
    119
    Likes Received:
    55
    It looks like your error is way up in the makefile, searching for a parser fails but the make process continues to truck along.

    line 7536:
    Code:
    checking command to parse /home/dan/dreamcast/kallistios/utils/dc-chain/build-gcc-sh-elf-4.7.3/./gcc/nm output from /home/dan/dreamcast/kallistios/utils/dc-chain/build-gcc-sh-elf-4.7.3/./gcc/xgcc -B/home/dan/dreamcast/kallistios/utils/dc-chain/build-gcc-sh-elf-4.7.3/./gcc/ -B/home/dan/dreamcast/toolchain/sh-elf/sh-elf/bin/ -B/home/dan/dreamcast/toolchain/sh-elf/sh-elf/lib/ -isystem /home/dan/dreamcast/toolchain/sh-elf/sh-elf/include -isystem /home/dan/dreamcast/toolchain/sh-elf/sh-elf/sys-include    object... (cached) failed
    This usually means you are missing binutils for your target. This is the only link I could find on that error:
    http://stackoverflow.com/questions/33450401/building-gcc-make-all-error-2
    https://gcc.gnu.org/ml/gcc-help/2012-07/msg00018.html

    Good luck.
     
  10. TerdFerguson

    TerdFerguson ls ~/

    Joined:
    Apr 27, 2015
    Messages:
    664
    Likes Received:
    353
    Thanks a lot, hopefully I'll have a working toolchain in the next couple days
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page