KallistiOS : Fail to build Dreamcast toolchain cannot compute suffix of object files

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
kentosama
DCEmu Newbie
DCEmu Newbie
Posts: 2
Joined: Fri Apr 17, 2020 6:23 pm
Has liked: 0
Been liked: 0

KallistiOS : Fail to build Dreamcast toolchain cannot compute suffix of object files

Post by kentosama » Fri Apr 17, 2020 6:36 pm

Hello, i try to build the toolchain on Debian Buster (same error on ArchLinux) with dc-chain, but i got this error :

Code: Select all

checking for suffix of object files... configure: error: in `/storage/toolchains/dreamcast/kos/utils/dc-chain/build-gcc-arm-eabi-8.4.0/arm-eabi/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [Makefile:12528: configure-target-libgcc] Error 1
Please, can you help me ?

edit: i fix it with move kos folder outsite the toolchain dir but i have problem when i want make KallistiOS, many header file is missing from newlib:

Code: Select all

Dans le fichier inclus depuis fs_iso9660.c:31:
/storage/toolchains/dreamcast/kos/kernel/arch/dreamcast/include/dc/fs_iso9660.h:29:1: erreur: nom de type « __BEGIN_DECLS » inconnu
   29 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
Dans le fichier inclus depuis /storage/toolchains/dreamcast/kos/kernel/arch/dreamcast/include/dc/fs_iso9660.h:31,
                 depuis fs_iso9660.c:31:
/storage/toolchains/dreamcast/kos/kernel/arch/dreamcast/include/arch/types.h:22:14: erreur: expected « ; » before « typedef »
   22 | __BEGIN_DECLS
      |              ^
      |              ;
Dans le fichier inclus depuis /storage/toolchains/dreamcast/kos/include/sys/_types.h:12,
                 depuis /storage/toolchains/dreamcast/kos/kernel/arch/dreamcast/include/arch/types.h:86,
                 depuis /storage/toolchains/dreamcast/kos/kernel/arch/dreamcast/include/dc/fs_iso9660.h:31,
                 depuis fs_iso9660.c:31:
/storage/toolchains/dreamcast/kos/include/sys/lock.h:6:10: erreur fatale: newlib.h : Aucun fichier ou dossier de ce type
    6 | #include <newlib.h>
kentosama
DCEmu Newbie
DCEmu Newbie
Posts: 2
Joined: Fri Apr 17, 2020 6:23 pm
Has liked: 0
Been liked: 0

Re: KallistiOS : Fail to build Dreamcast toolchain cannot compute suffix of object files

Post by kentosama » Sat Apr 18, 2020 2:40 am

Now i have this error :

Code: Select all

./gthr-default.h:37:10: erreur fatale: kos/thread.h : Aucun fichier ou dossier de ce type
   37 | #include <kos/thread.h>
      |          ^~~~~~~~~~~~~~
compilation terminée.
make[3]: *** [../../../gcc-9.3.0/libgcc/config/sh/t-sh:51: unwind-dw2-Os-4-200.o] Error 1
make[3] : on quitte le répertoire « /storage/toolchains/dc/kos/utils/dc-chain/build-gcc-sh-elf-9.3.0/sh-elf/libgcc »
make[2]: *** [Makefile:12861: all-target-libgcc] Error 2
make[2]: *** Attente des tâches non terminées....
OK, I understand, I was using the make -j8 command rather than make and modifying -j2 and by -j8 in the makefile. I'm not used to using scripts that automate everything to build a toolchain, usually I do it manually. I hope it will work now.


Again problem with libtremor :?

Code: Select all

ibtremor is not currently installed.
Finished processing dependencies for libtremor.
Fetching libtremor from http://svn.xiph.org/branches/lowmem-branch/Tremor/ ...
svn: E170013: Unable to connect to a repository at URL 'http://svn.xiph.org/branches/lowmem-branch/Tremor'
svn: E000110: Erreur à l'exécution du contexte: Connexion terminée par expiration du délai d'attente
make: *** [/opt/toolchains/dc/kos/../kos-ports/scripts/download.mk:10: fetch] Error 1
make : on quitte le répertoire « /storage/toolchains/dc/kos-ports/libtremor »
2
Error building /opt/toolchains/dc/kos/../kos-ports/libtremor. Bailing out.
I get tremor form gitlab but now i can't build it :

Code: Select all

make : on entre dans le répertoire « /storage/toolchains/dc/kos-ports/libtremor »
libtremor is not currently installed.
Finished processing dependencies for libtremor.
Fetching libtremor from https://gitlab.xiph.org/xiph/tremor.git ...
Clonage dans 'libtremor-19480'...
remote: Enumerating objects: 1122, done.
remote: Counting objects: 100% (1122/1122), done.
remote: Compressing objects: 100% (328/328), done.
remote: Total 1122 (delta 764), reused 1113 (delta 758), pack-reused 0
Réception d'objets: 100% (1122/1122), 603.63 KiB | 546.00 KiB/s, fait.
Résolution des deltas: 100% (764/764), fait.
Copying SCM checkout of libtremor ...
Copying KOS files...
make[1] : on entre dans le répertoire « /storage/toolchains/dc/kos-ports/libtremor/build/libtremor-19480 »
kos-cc  -c mdct.c -o mdct.o
make[1]: ***  Aucune règle pour fabriquer la cible « dsp.o », nécessaire pour « defaultall ». Arrêt.
make[1] : on quitte le répertoire « /storage/toolchains/dc/kos-ports/libtremor/build/libtremor-19480 »
make: *** [/storage/toolchains/dc/kos/../kos-ports/scripts/build.mk:11: build-stamp] Error 2
make : on quitte le répertoire « /storage/toolchains/dc/kos-ports/libtremor »
2
Error building /storage/toolchains/dc/kos/../kos-ports/libtremor. Bailing out.
For fix it just copy the files from svn into dist
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5416
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 2 times
Been liked: 18 times
Contact:

Re: KallistiOS : Fail to build Dreamcast toolchain cannot compute suffix of object files

Post by BlueCrab » Tue Apr 21, 2020 9:35 am

The first error you had there with libtremor looks to be that for some reason you were having network issues connecting to their SVN repository (although, my French is quite rusty, so I could be wrong about that).

Replacing it with the newer Git version is not going to work as it has not been ported to KOS, which is why you had an issue when you pulled it from Gitlab.
Post Reply