Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Vos tutoriels et astuces


Index du Forum » Vos tutoriels et astuces » [Tutoriel] Installation manuelle de GCC (et du fxSDK)
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

[Tutoriel] Installation manuelle de GCC (et du fxSDK)

Posté le 31/05/2014 17:02

Parmi les compilateurs C/C++ modernes de premier plan (LLVM, GCC, MSVC...), GCC est le seul à avoir un backend SuperH, ie. capable de générer des add-ins pour les calculatrices CASIO. Dans ce tutoriel, on va voir comment compiler GCC à la main. J'y mentionne également par le symbole les étapes supplémentaires nécessaires pour installer le fxSDK tout entier à la main.

Ce tutoriel était initialement utilisé pour toutes les installation de GCC pour la calculatrice, mais il y a maintenant des méthodes automatiques via le dépôt sh-elf-gcc, via MiddleArch ou même l'installation complète du fxSDK avec GiteaPC. Le texte ci-dessous est donc destiné à des personnes relativement expérimentées avec le terminal et les processus classiques de compilation, et spécifiquement à ceux qui voudraient tester des configurations inhabituelles. Pour relire l'ancien tutoriel, voir sur la forge Gitea.

Ce tutoriel est écrit pour Linux mais vous pouvez le suivre sous Windows 10 en utilisant WSL qui vous donnera accès à Ubuntu.

1. Présentation du processus

Dans ce tutoriel, on va compiler plusieurs logiciels. Côté compilateur, d'abord binutils, une suite de programmes qui gère l'assembleur, les fichiers objets, les bibliothèques, et l'édition des liens ; puis GCC, le compilateur C/C++ en lui-même.

Ensuite on va faire un détour par le fxSDK pour installer la bibliothèque mathématique et la bibliothèque standard C qui sont nécessaires pour avoir accès à la totalité du langage C.

On reviendra alors vers GCC, puisqu'une fois la lib standard C installée on peut compiler la bibliothèque standard C++, qui est là aussi nécessaire pour avoir accès à la totalité du langage C++.

Enfin on pourra finir l'installation du fxSDK avec gint et d'autres bibliothèques.

[fxSDK] Commencez par installer le dépôt fxsdk, qui fournit la sysroot dans laquelle on va installer le compilateur. C'est un cmake/make classique.

2. Installation des dépendances

Nos calculatrices utilisent des processeurs de la famille SuperH, on ne peut donc pas utiliser le même compilateur C que quand on programme pour l'ordinateur. On va utiliser un cross-compilateur qui ne s'appelera pas gcc mais sh-elf-gcc, attention à ne pas confondre !

Téléchargez la dernière version de binutils (téléchargement ici) ainsi que la dernière version de GCC (téléchargement ici). En cas d'erreur insondable, vous pourrez toujours tenter d'autres versions plus tard.

Attention : Si votre GCC système est en version 12.1 ou 12.2 (tapez gcc -v pour le déterminer), vous devez prendre GCC 11.1 pour la calculatrice à cause de ce bug de GCC pour x86_64.

Bien sûr GCC est un logiciel complexe avec pas mal de dépendances. Voici de quoi les installer :

# Pour Debian, Ubuntu, Mint, WSL pour Windows, et autres dérivés de Debian :
% sudo apt install libmpfr-dev libmpc-dev libgmp-dev libpng-dev libppl-dev flex g++ git texinfo
# Pour Arch Linux, Manjaro, et autres dérivés de Arch :
% sudo pacman -S mpfr libmpc gmp libpng ppl flex gcc git texinfo

  • MPFR : calcul flottant à précision arbitraire
  • MPC : calcul complexe à précision arbitraire
  • GMP : arithmétique entière multi-précision
  • libPNG : manipulations d'images PNG
  • PPL : optimisation polyhédrique (optimisation magique)
  • flex : générateur d'analyseurs lexicaux
  • g++ : compilateur C++ pour votre système
  • git : gestionnaire de versions
  • texinfo : générateur de documentation formatée

3. Préparation de l'environnement de compilation

Le compilateur et toutes les bibliothèques pour la calculatrice vont être installées dans un même dossier. Si vous utilisez le fxSDK, ce dossier est pré-choisi et la commande fxsdk path sysroot vous l'affiche. Sinon vous pouvez aller où vous voulez, mais restez dans votre dossier personnel.

% export PREFIX="$(fxsdk path sysroot)"
# Exemple de dossier hors fxSDK :
# export PREFIX="$HOME/opt/sh-elf-2.39-11.1.0"

% mkdir -p $PREFIX

Assurez-vous que $PREFIX/bin est dans votre PATH. Extrayez le contenu des archives que vous avez téléchargées dans un dossier temporaire, et créez deux répertoires build-binutils et build-gcc.

% tar -xJf binutils-2.39.tar.xz
% tar -xJf gcc-11.1.0.tar.xz
% mkdir build-binutils build-gcc

On va ensuite appliquer quelques patchs. On va d'abord toucher un fichier de binutils pour éviter la régénération d'un parser avec bison qui ne marche plus depuis longtemps :

% touch binutils-2.39/intl/plural.c

Si vous utilisez GCC 11.1 (et sans doute quelques versions d'avant), téléchargez de plus ce patch qui désactive des tests de configuration inutilement aggressifs dans la lib C++ et appliquez-le :

% patch -u -N -p0 < gcc-11.1.0-libstdc++-v3-skip-dlopen.patch

4. Compilation de binutils

La compilation de binutils est un configure/make classique. Les options qu'on utilise sont :

  • --prefix pour indiquer le dossier d'installation final.
  • --target="sh3eb-elf" pour spécifier qu'on veut un cross-compilateur pour SuperH.
  • --with-multilib-list="m3,m4-nofpu" indique plus précisément qu'on veut une variante pour SH3 et une pour SH4 sans FPU.
  • --program-prefix="sh-elf-" renomme le compilateur de sh3eb-elf-gcc à sh-elf-gcc vu qu'on a aussi le SH3.

Il n'y a pas beaucoup d'autres options intéressantes, mais vous pouvez les voir toutes avec configure --help.

% cd build-binutils
% ../binutils-2.39/configure --prefix="$PREFIX" --target="sh3eb-elf" --with-multilib-list="m3,m4-nofpu" --program-prefix="sh-elf-"

Une fois que tout est configuré, il n'y a plus qu'à compiler et à installer. Normalement ça va assez vite, comptez quelques minutes.

% make -j4
% make install-strip

Les exécutables de binutils ont dû apparaître dans $PREFIX/bin Essayez sh-elf-ld --version qui doit vous renvoyer la version de binutils (ici 2.39).

5. Compilation de gcc et de libgcc

Ensuite c'est pareil mais pour GCC. En plus des options précédentes, on indique :

  • --enable-languages="c,c++" qui spécifie les compilateurs qu'on veut. Si vous voulez expérimenter avec d'autres langages notamment Ada, D, Go ou Fortran, c'est là qu'il faut commencer !
  • --without-headers qui indique essentiellement qu'on veut un cross-compilateur.
  • --enable-clocale="generic" qui simplifie le module <locale> de la lib C++.
  • --enable-libstdcxx-allocator qui fait de même avec les allocateurs mémoire.
  • --disable-threads qui désactive le threading (qu'on n'a pas).
  • --disable-libstdcxx-verbose qui élimine des logs dans la lib C++.
  • --enable-cxx-flags="-fno-exceptions" qui désactive les exceptions durant la compilation de la lib C++.

Voyez le guide de configuration pour toutes les options utiles.

% cd "$PREFIX/build-gcc"
% ../gcc-11.1.0/configure --prefix="$PREFIX" --target="sh3eb-elf" --with-multilib-list="m3,m4-nofpu" --enable-languages="c,c++" --without-headers --program-prefix="sh-elf-" --enable-clocale="generic" --enable-libstdcxx-allocator --disable-threads --disable-libstdcxx-verbose --enable-cxx-flags="-fno-exceptions

Cette fois la compilation occupera entre 10 et 30 minutes... ou 5/6 heures sur un vieux Raspberry Pi.

% make -j4 all-gcc all-target-libgcc
% make install-strip-gcc install-strip-target-libgcc

Avec ça vous devez pouvoir taper sh-elf-gcc -v et la version et les options de compilation.

[fxSDK] C'est le moment d'installer OpenLibm, avec make.
[fxSDK] Installez aussi la lib C, fxlibc, un autre cmake/make classique.

6. Compilation de libstdc++

On peut maintenant revenir dans le dossier de compilation de GCC et compiler des libs plus évoluées, comme la lib C++. Si vous testez d'autres langages (par exemple D) c'est le moment de compiler les libs qui vont avec (libphobos), ou même de compiler libssl, libiberty, etc. selon vos goûts.

% make -j4 all-target-libstdc++-v3
% make install-strip-target-libstdc++-v3

Et voilà, la toolchain est complète. Si vous manquez d'espace disque vous pouvez supprimez les archives, dossiers de sources, et dossiers de build de binutils et GCC.

Vous pouvez aussi installer gdb dans la même veine que binutils pour pouvoir debugger les add-ins à distance.

[fxSDK] Installez maintenant gint, et les autres libs qui vous plaisent (eg. libprof, zlib, etc).

Et voilà, vous avez un compilateur C/C++ complet voire un SDK complet pour programmer des add-ins.

Fichier joint


Précédente 1, 2, 3 ··· 10 ··· 14, 15, 16, 17, 18, 19, 20 ··· 23, 24, 25 Suivante
Ityt Hors ligne Membre Points: 216 Défis: 0 Message

Citer : Posté le 15/12/2018 15:12 | #


Ouai ouai la compilation bug plus, praise the lord
Je vais pouvoir continuer mes tests, et sympa ta fonction j'ai pas pensé à utiliser des soustractions

Ajouté le 15/12/2018 à 15:31 :
Eh tu t'es trompé de fonction Lephe ! T'as fait seulement strcmp() et pas strncmp() De plus regarde moi cette fonction que j'ai sorti des enfers :

int strcmp(char *s1, char *s2) {
    while(*s1 == *s2 && *s1) s1++, s2++;
    return *s1 - *s2;
}


Tant que les caractères sont égaux on continue, on veut arrêter si les deux sont nuls, pas besoin de vérifier les deux car supposons que *s2 == 0 et *s1 != 0 alors c'est la première condition du while qui va nous faire sortir et supposons que *s1 == *s2 == 0 alors la deuxième condition va nous faire sortir, pas mal non ?
salut je m'appelle sacha et je viens du bourg-palette et voici mon meilleur ami pikachu
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 15/12/2018 15:40 | #


Raah oui j'ai codé strcmp() >_<

Pas mal, ta version ! Pas sûr que multiplier les accès soit mieux mais GCC optimisera sûrement.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Ityt Hors ligne Membre Points: 216 Défis: 0 Message

Citer : Posté le 15/12/2018 21:02 | # | Fichier joint


argh j'ai besoin d'aide j'ai la création de fichier qui foire ça me retourne l'erreur -5 "illegal device"
Dans la docu officielle de Casio ça me dit :
If you create a file in Storage Memory, the pathname to the file is the following string.
     FONTCHARACTER PathName[]={'¥¥','¥¥','f','l','s','0','¥¥','f','i','l','e','n','a','m','e','.','e','x','t',0};

C'est moi ou c'est n'importe quoi ? sachant qu'après ils disent :
The root directory (¥¥fls0¥) means Storage Memory area. This name is fixed.

du coup j'ai tenté de virer les ¥¥ et faire 157, 157, 'f', 'l', 's', '0', 157, ... sachant que 157 est le code ascii étendu de ¥ mais c'est là que ça me donne l'erreur. J'ai tenté de mettre qu'un nom sans le "fls0" mais pareil même erreur
J'ai mis mon dossier en fichier join si vous voulez vérifier ce que je fais.
salut je m'appelle sacha et je viens du bourg-palette et voici mon meilleur ami pikachu
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 15/12/2018 21:03 | #


C'est des backslashs (\). L'encodage du PDF est foireux.

FONTCHARACTER PathName[]={'\\','\\','f','l','s','0','\\','f','i','l','e','n','a','m','e','.','e','x','t',0};

Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Ityt Hors ligne Membre Points: 216 Défis: 0 Message

Citer : Posté le 15/12/2018 22:21 | #


Miracle ça marche
salut je m'appelle sacha et je viens du bourg-palette et voici mon meilleur ami pikachu
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 15/12/2018 22:36 | #


Pour information, le seul autre nom de périphérique valide est \\crd0 qui représente la carte SD.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Ityt Hors ligne Membre Points: 216 Défis: 0 Message

Citer : Posté le 15/12/2018 23:14 | #


Petite question, pour créer un fichier il nous demande une taille, cela implique qu'on ne peut pas dépasser une certaine limite quand on écrit dans le fichier ?
salut je m'appelle sacha et je viens du bourg-palette et voici mon meilleur ami pikachu
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 15/12/2018 23:54 | #


Tout à fait, cela fait partie des limitations du système de fichiers sur la mémoire de stockage...
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 22/02/2019 22:25 | #


Non, c'est plutôt à côté, comme tu peux le voir sur cette arborescence :

% tree -L 1
.
├── binutils-2.31.1
├── binutils-2.31.1.tar.xz
├── build-binutils
├── build-gcc
├── gcc-8.2.0
└── gcc-8.2.0.tar.xz

En principe tu installes binutils avant de compiler gcc donc gcc saura tout seul où trouver les exécutables qu'il lui faut.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Milang Hors ligne Membre Points: 488 Défis: 2 Message

Citer : Posté le 22/02/2019 23:01 | #


là je compile sur un pc portable à 1 gb de ram (ce qu j'ai sous la main pour pouvoir faire 2 choses à la fois mais c'est normal d'être à 98.9 % de ram lors de la compilation ? c'est chaud quand même !
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 22/02/2019 23:07 | #


Oui, pour compiler un gros truc comme GCC, ce n'est pas extraordinaire. Si tu compiles avec -j2 (sur deux coeurs) ça n'aide pas trop.

Je te conseille de compiler sans -j2 (tu peux faire Ctrl-C et relancer make) si tu veux récupérer le contrôle.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Milang Hors ligne Membre Points: 488 Défis: 2 Message

Citer : Posté le 22/02/2019 23:15 | #


ok thanks

Et sinon est-ce que tu sais si je peux arrêter voire éteindre le pc entre 2 étapes(et revenir dans le dossier ensuite) ou je dois le faire dans le même terminal ?
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 22/02/2019 23:27 | #


Tu peux totalement éteindre le PC entre 2 étapes, par contre si tu fermes le terminal il faudra que refasses les export quand tu en ouvriras un nouveau (dans l'ordre).
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Milang Hors ligne Membre Points: 488 Défis: 2 Message

Citer : Posté le 22/02/2019 23:31 | #


ok c'est ce que je me disais. bon bah je vais attendre la fin de la compilation puis je verrai(vu comme c'est parti ça va durer 1 à 2 heures au total)
mais jusque là super tuto !

Ajouté le 23/02/2019 à 09:03 :
Est-ce que c'est normal d'avoir :
milan@milan-1005P:~/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc$ make install-target-libgcc
/bin/bash ../gcc-8.2.0/mkinstalldirs /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/sh3eb-elf/libgcc'
make[1]: *** No rule to make target 'install'. Stop
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/sh3eb-elf/libgcc'
Makefile:12462: recipe for target 'install-target-libgcc' failed
make: *** [install-target-libgcc] Error 2
milan@milan-1005P:~/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc$

Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 23/02/2019 10:08 | #


Non, c'est pas normal. C'est assez bizarre. Peux-tu relancer make all-target-libgcc pour voir ? Cette commande ne prend pas longtemps à s'exécuter.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Milang Hors ligne Membre Points: 488 Défis: 2 Message

Citer : Posté le 23/02/2019 10:21 | #


là dans un 2eme terminal j'ai configuré libgcc comme j'avais fait pour gcc et maintenant il en est à make all-target-libgcc depuis 30min c'est long
Attends je vais envoyer le code qui est sur le 2e pc
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 23/02/2019 10:23 | #


Milang a écrit :
là dans un 2eme terminal j'ai configuré libgcc comme j'avais fait pour gcc et maintenant il en est à make all-target-libgcc depuis 30min c'est long

Quelque chose s'est mal passé, soit gcc n'était pas compilé et du coup il commence par compiler gcc... soit autre chose du même type.

libgcc prend 2 minutes à compiler sur des PC modestes et quasi-instantané sur ma machine actuelle.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Milang Hors ligne Membre Points: 488 Défis: 2 Message

Citer : Posté le 23/02/2019 10:27 | #


ca alors c'est bizarre parce que jusque hier soir gcc s'est bien compilé et ce matin j'arrive pas à compiler la libgcc sauf avec la méthode de tout à l'heure

Ajouté le 23/02/2019 à 10:29 :
code pour make all-target-libgcc :

milan@milan-1005P:~/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc$ make all-target-libgcc
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libiberty'
make[2]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libiberty/testsuite'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libiberty/testsuite'
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libiberty'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/lto-plugin'
make  all-am
make[2]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/lto-plugin'
make[2]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/lto-plugin'
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/lto-plugin'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/intl'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/intl'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/libiberty'
make[2]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/libiberty'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/fixincludes'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/fixincludes'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/build-x86_64-pc-linux-gnu/libcpp'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-static-libstdc++ -static-libgcc " "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/gcc-8.2.0/missing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O" "infodir=/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/share/info" "libdir=/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/lib" "prefix=/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O" "tooldir=/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/zlib'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libbacktrace'
make  all-am
make[2]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libbacktrace'
true  DO=all multi-do # make
make[2]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libbacktrace'
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libbacktrace'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libcpp'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libdecnumber'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/libdecnumber'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/fixincludes'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/fixincludes'
make[1]: Entering directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/gcc'
Makefile:2632: warning: overriding recipe for target 'gt-sh.h'
../../gcc-8.2.0/gcc/config/sh/t-sh:93: warning: ignoring old recipe for target 'gt-sh.h'
make[1]: Leaving directory '/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/gcc'
Checking multilib configuration for libgcc...
Configuring in sh3eb-elf/libgcc
configure: loading cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... sh3eb-unknown-elf
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for sh3eb-elf-ar... sh3eb-elf-ar
checking for sh3eb-elf-lipo... sh3eb-elf-lipo
checking for sh3eb-elf-nm... /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/./gcc/nm
checking for sh3eb-elf-ranlib... sh3eb-elf-ranlib
checking for sh3eb-elf-strip... sh3eb-elf-strip
checking whether ln -s works... yes
checking for sh3eb-elf-gcc...  /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/./gcc/xgcc -B/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/./gcc/ -B/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/bin/ -B/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/lib/ -isystem /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/include -isystem /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/sys-include  
checking for suffix of object files... configure: error: in `/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/sh3eb-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:12310: recipe for target 'configure-target-libgcc' failed
make: *** [configure-target-libgcc] Error 1




Ajouté le 23/02/2019 à 10:31 :
mais dans le 2e terminal il a toujours pas fini. je vais le laisser faire.
Mais sur mon pc gcc a pris 2h30 à se compiler et à la fin il n'y avait pas de message d'erreur
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 23/02/2019 10:33 | #


Bon, c'est pas dramatique. Tu as éteint ton ordinateur entre-temps ? Quelque chose auquel je n'ai pas pensé à dû disparaître.

Peux-tu me joindre les contenus de config.log ?

Cette erreur peut se produire si tu n'as pas bien installé MPC, MPFR ou GMP. Vérifie que tu as bien tout ça.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Milang Hors ligne Membre Points: 488 Défis: 2 Message

Citer : Posté le 23/02/2019 10:42 | #


entre la compilation de gcc et le make install-gcc je l'ai éteint.
les paquets dont tu parles sont installés

config.log
Cliquer pour enrouler


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ ../gcc-8.2.0/configure --target=sh3eb-elf --enable-languages=c,c++

## --------- ##
## Platform. ##
## --------- ##

hostname = mario-1005P
uname -m = x86_64
uname -r = 4.15.0-43-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /home/mario/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2304: checking build system type
configure:2318: result: x86_64-pc-linux-gnu
configure:2365: checking host system type
configure:2378: result: x86_64-pc-linux-gnu
configure:2398: checking target system type
configure:2411: result: sh3eb-unknown-elf
configure:2465: checking for a BSD-compatible install
configure:2533: result: /usr/bin/install -c
configure:2544: checking whether ln works
configure:2566: result: yes
configure:2570: checking whether ln -s works
configure:2574: result: yes
configure:2581: checking for a sed that does not truncate output
configure:2645: result: /bin/sed
configure:2654: checking for gawk
configure:2670: found /usr/bin/gawk
configure:2681: result: gawk
configure:3174: checking for libatomic support
configure:3180: result: no
configure:3212: checking for libitm support
configure:3218: result: no
configure:3231: checking for libsanitizer support
configure:3237: result: no
configure:3250: checking for libvtv support
configure:3256: result: no
configure:3270: checking for libmpx support
configure:3276: result: no
configure:3289: checking for libhsail-rt support
configure:3295: result: no
configure:4008: checking for gcc
configure:4024: found /usr/bin/gcc
configure:4035: result: gcc
configure:4264: checking for C compiler version
configure:4273: gcc --version >&5
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4284: $? = 0
configure:4273: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
configure:4284: $? = 0
configure:4273: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4284: $? = 1
configure:4273: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4284: $? = 1
configure:4304: checking for C compiler default output file name
configure:4326: gcc    conftest.c  >&5
configure:4330: $? = 0
configure:4367: result: a.out
configure:4383: checking whether the C compiler works
configure:4392: ./a.out
configure:4396: $? = 0
configure:4411: result: yes
configure:4418: checking whether we are cross compiling
configure:4420: result: no
configure:4423: checking for suffix of executables
configure:4430: gcc -o conftest    conftest.c  >&5
configure:4434: $? = 0
configure:4456: result:
configure:4462: checking for suffix of object files
configure:4484: gcc -c   conftest.c >&5
configure:4488: $? = 0
configure:4509: result: o
configure:4513: checking whether we are using the GNU C compiler
configure:4532: gcc -c   conftest.c >&5
configure:4532: $? = 0
configure:4541: result: yes
configure:4550: checking whether gcc accepts -g
configure:4570: gcc -c -g  conftest.c >&5
configure:4570: $? = 0
configure:4611: result: yes
configure:4628: checking for gcc option to accept ISO C89
configure:4692: gcc  -c -g -O2  conftest.c >&5
configure:4692: $? = 0
configure:4705: result: none needed
configure:4783: checking for g++
configure:4799: found /usr/bin/g++
configure:4810: result: g++
configure:4837: checking for C++ compiler version
configure:4846: g++ --version >&5
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4857: $? = 0
configure:4846: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
configure:4857: $? = 0
configure:4846: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4857: $? = 1
configure:4846: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
compilation terminated.
configure:4857: $? = 1
configure:4861: checking whether we are using the GNU C++ compiler
configure:4880: g++ -c   conftest.cpp >&5
configure:4880: $? = 0
configure:4889: result: yes
configure:4898: checking whether g++ accepts -g
configure:4918: g++ -c -g  conftest.cpp >&5
configure:4918: $? = 0
configure:4959: result: yes
configure:5008: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:5025: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc conftest.cpp  >&5
configure:5025: $? = 0
configure:5026: result: yes
configure:5090: checking for gnatbind
configure:5120: result: no
configure:5182: checking for gnatmake
configure:5212: result: no
configure:5231: checking whether compiler driver understands Ada
configure:5254: result: no
configure:5263: checking how to compare bootstrapped objects
configure:5288: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5348: checking for objdir
configure:5363: result: .libs
configure:5534: checking for the correct version of gmp.h
configure:5554: gcc -c -g -O2   conftest.c >&5
configure:5554: $? = 0
configure:5572: gcc -c -g -O2   conftest.c >&5
configure:5572: $? = 0
configure:5573: result: yes
configure:5589: checking for the correct version of mpfr.h
configure:5607: gcc -c -g -O2   conftest.c >&5
configure:5607: $? = 0
configure:5624: gcc -c -g -O2   conftest.c >&5
configure:5624: $? = 0
configure:5625: result: yes
configure:5642: checking for the correct version of mpc.h
configure:5659: gcc -c -g -O2   conftest.c >&5
configure:5659: $? = 0
configure:5675: gcc -c -g -O2   conftest.c >&5
configure:5675: $? = 0
configure:5676: result: yes
configure:5694: checking for the correct version of the gmp/mpfr/mpc libraries
configure:5725: gcc -o conftest -g -O2    conftest.c  -lmpc -lmpfr -lgmp >&5
configure:5725: $? = 0
configure:5726: result: yes
configure:5911: checking for isl 0.15 or later
configure:5924: gcc -o conftest -g -O2      -lisl -lmpc -lmpfr -lgmp conftest.c  -lisl -lgmp >&5
conftest.c:10:10: fatal error: isl/schedule.h: No such file or directory
#include <isl/schedule.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
configure:5924: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <isl/schedule.h>
| int
| main ()
| {
| isl_options_set_schedule_serialize_sccs (NULL, 0);
|   ;
|   return 0;
| }
configure:5931: result: no
configure:5935: result: required isl version is 0.15 or later
configure:7028: checking for default BUILD_CONFIG
configure:7060: result:
configure:7065: checking for --enable-vtable-verify
configure:7078: result: no
configure:7678: checking for bison
configure:7694: found /usr/bin/bison
configure:7705: result: bison -y
configure:7725: checking for bison
configure:7741: found /usr/bin/bison
configure:7752: result: bison
configure:7772: checking for gm4
configure:7802: result: no
configure:7772: checking for gnum4
configure:7802: result: no
configure:7772: checking for m4
configure:7788: found /usr/bin/m4
configure:7799: result: m4
configure:7819: checking for flex
configure:7835: found /usr/bin/flex
configure:7846: result: flex
configure:7867: checking for flex
configure:7883: found /usr/bin/flex
configure:7894: result: flex
configure:7914: checking for makeinfo
configure:7944: result: no
configure:7975: checking for expect
configure:8005: result: no
configure:8024: checking for runtest
configure:8054: result: no
configure:8169: checking for ar
configure:8185: found /usr/bin/ar
configure:8196: result: ar
configure:8310: checking for as
configure:8326: found /usr/bin/as
configure:8337: result: as
configure:8451: checking for dlltool
configure:8481: result: no
configure:8592: checking for ld
configure:8608: found /usr/bin/ld
configure:8619: result: ld
configure:8733: checking for lipo
configure:8763: result: no
configure:8874: checking for nm
configure:8890: found /usr/bin/nm
configure:8901: result: nm
configure:9015: checking for ranlib
configure:9031: found /usr/bin/ranlib
configure:9042: result: ranlib
configure:9151: checking for strip
configure:9167: found /usr/bin/strip
configure:9178: result: strip
configure:9287: checking for windres
configure:9317: result: no
configure:9428: checking for windmc
configure:9458: result: no
configure:9569: checking for objcopy
configure:9585: found /usr/bin/objcopy
configure:9596: result: objcopy
configure:9710: checking for objdump
configure:9726: found /usr/bin/objdump
configure:9737: result: objdump
configure:9851: checking for readelf
configure:9867: found /usr/bin/readelf
configure:9878: result: readelf
configure:9992: checking for sh3eb-elf-cc
configure:10022: result: no
configure:9992: checking for sh3eb-elf-gcc
configure:10008: found /home/mario/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/bin/sh3eb-elf-gcc
configure:10019: result: sh3eb-elf-gcc
configure:10153: checking for sh3eb-elf-c++
configure:10169: found /home/mario/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/bin/sh3eb-elf-c++
configure:10180: result: sh3eb-elf-c++
configure:10314: checking for sh3eb-elf-gcc
configure:10330: found /home/mario/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/bin/sh3eb-elf-gcc
configure:10341: result: sh3eb-elf-gcc
configure:10470: checking for sh3eb-elf-gfortran
configure:10500: result: no
configure:10631: checking for sh3eb-elf-gccgo
configure:10661: result: no
configure:10761: checking for ar
configure:10794: result: no
configure:10872: checking for sh3eb-elf-ar
configure:10902: result: no
configure:10991: checking for as
configure:11024: result: no
configure:11102: checking for sh3eb-elf-as
configure:11132: result: no
configure:11221: checking for dlltool
configure:11254: result: no
configure:11332: checking for sh3eb-elf-dlltool
configure:11362: result: no
configure:11451: checking for ld
configure:11484: result: no
configure:11562: checking for sh3eb-elf-ld
configure:11592: result: no
configure:11681: checking for lipo
configure:11714: result: no
configure:11792: checking for sh3eb-elf-lipo
configure:11822: result: no
configure:11911: checking for nm
configure:11944: result: no
configure:12022: checking for sh3eb-elf-nm
configure:12052: result: no
configure:12141: checking for objcopy
configure:12174: result: no
configure:12252: checking for sh3eb-elf-objcopy
configure:12282: result: no
configure:12371: checking for objdump
configure:12404: result: no
configure:12482: checking for sh3eb-elf-objdump
configure:12512: result: no
configure:12601: checking for ranlib
configure:12634: result: no
configure:12712: checking for sh3eb-elf-ranlib
configure:12742: result: no
configure:12831: checking for readelf
configure:12864: result: no
configure:12942: checking for sh3eb-elf-readelf
configure:12972: result: no
configure:13061: checking for strip
configure:13094: result: no
configure:13172: checking for sh3eb-elf-strip
configure:13202: result: no
configure:13291: checking for windres
configure:13324: result: no
configure:13402: checking for sh3eb-elf-windres
configure:13432: result: no
configure:13521: checking for windmc
configure:13554: result: no
configure:13632: checking for sh3eb-elf-windmc
configure:13662: result: no
configure:13729: checking where to find the target ar
configure:13766: result: pre-installed
configure:13771: checking where to find the target as
configure:13808: result: pre-installed
configure:13813: checking where to find the target cc
configure:13836: result: just compiled
configure:13855: checking where to find the target c++
configure:13881: result: just compiled
configure:13900: checking where to find the target c++ for libstdc++
configure:13926: result: just compiled
configure:13945: checking where to find the target dlltool
configure:13982: result: pre-installed
configure:13987: checking where to find the target gcc
configure:14010: result: just compiled
configure:14029: checking where to find the target gfortran
configure:14069: result: pre-installed
configure:14074: checking where to find the target gccgo
configure:14114: result: pre-installed
configure:14119: checking where to find the target ld
configure:14156: result: pre-installed
configure:14161: checking where to find the target lipo
configure:14187: result: pre-installed
configure:14192: checking where to find the target nm
configure:14229: result: pre-installed
configure:14234: checking where to find the target objcopy
configure:14271: result: pre-installed
configure:14276: checking where to find the target objdump
configure:14313: result: pre-installed
configure:14318: checking where to find the target ranlib
configure:14355: result: pre-installed
configure:14360: checking where to find the target readelf
configure:14397: result: pre-installed
configure:14402: checking where to find the target strip
configure:14439: result: pre-installed
configure:14444: checking where to find the target windres
configure:14481: result: pre-installed
configure:14486: checking where to find the target windmc
configure:14523: result: pre-installed
configure:14556: checking whether to enable maintainer-specific portions of Makefiles
configure:14565: result: no
configure:14796: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on mario-1005P

config.status:968: creating Makefile

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_FOR_TARGET_set=
ac_cv_env_OBJCOPY_FOR_TARGET_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=sh3eb-elf
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_AS=as
ac_cv_prog_AWK=gawk
ac_cv_prog_BISON=bison
ac_cv_prog_CC_FOR_TARGET=sh3eb-elf-gcc
ac_cv_prog_CXX_FOR_TARGET=sh3eb-elf-c++
ac_cv_prog_FLEX=flex
ac_cv_prog_GCC_FOR_TARGET=sh3eb-elf-gcc
ac_cv_prog_LD=ld
ac_cv_prog_LEX=flex
ac_cv_prog_M4=m4
ac_cv_prog_NM=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_READELF=readelf
ac_cv_prog_STRIP=strip
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=sh3eb-unknown-elf
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_isl=no
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/usr/local/libexec/gcc/sh3eb-elf/8.2.0:/usr/local/libexec/gcc/sh3eb-elf:/usr/lib/gcc/sh3eb-elf/8.2.0:/usr/lib/gcc/sh3eb-elf:/usr/local/sh3eb-elf/bin/sh3eb-elf/8.2.0:/usr/local/sh3eb-elf/bin:
gcc_cv_tool_prefix=/usr/local
lt_cv_objdir=.libs

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='sh3eb-elf-ar'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='sh3eb-elf-as'
AWK='gawk'
BISON='bison'
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXXFLAGS_FOR_TARGET='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"'
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='sh3eb-elf-dlltool'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
FLEX='flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCC_SHLIB_SUBDIR=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='sh3eb-elf-gfortran'
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET='sh3eb-elf-gccgo'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='sh3eb-elf-ld'
LEX='flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='sh3eb-elf-lipo'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/home/mario/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/gcc-8.2.0/missing makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='sh3eb-elf-nm'
OBJCOPY='objcopy'
OBJCOPY_FOR_TARGET='sh3eb-elf-objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='sh3eb-elf-objdump'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='sh3eb-elf-ranlib'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
READELF='readelf'
READELF_FOR_TARGET='sh3eb-elf-readelf'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SED='/bin/sed'
SHELL='/bin/bash'
STRIP='strip'
STRIP_FOR_TARGET='sh3eb-elf-strip'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-8.2.0/configure --target=sh3eb-elf --enable-languages=c,c++'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='sh3eb-elf-windmc'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='sh3eb-elf-windres'
YACC='bison -y'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_configargs=' --cache-file=./config.cache '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s&^&sh3eb-elf-&'\'' --disable-option-checking'
build_configdirs=' libiberty libcpp fixincludes'
build_cpu='x86_64'
build_libsubdir='build-x86_64-pc-linux-gnu'
build_noncanonical='x86_64-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-pc-linux-gnu'
build_tooldir='${exec_prefix}/sh3eb-elf'
build_vendor='pc'
compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*'
configdirs=' intl libiberty zlib libbacktrace libcpp libdecnumber fixincludes gcc libcc1 lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
extra_host_libiberty_configure_flags='--enable-shared'
extra_host_zlib_configure_flags=''
extra_isl_gmp_configure_flags=''
extra_liboffloadmic_configure_flags=''
extra_linker_plugin_configure_flags=''
extra_linker_plugin_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
get_gcc_base_ver='cat'
gmpinc=''
gmplibs='-lmpc -lmpfr -lgmp'
host='x86_64-pc-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache  '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s&^&sh3eb-elf-&'\'' --disable-option-checking'
host_cpu='x86_64'
host_noncanonical='x86_64-pc-linux-gnu'
host_os='linux-gnu'
host_shared='no'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
islinc=''
isllibs=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
prefix='/usr/local'
program_transform_name='s&^&sh3eb-elf-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c,c++,lto'
stage1_ldflags='-static-libstdc++ -static-libgcc'
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='sh3eb-unknown-elf'
target_alias='sh3eb-elf'
target_configargs='--cache-file=./config.cache --enable-multilib --with-cross-host=x86_64-pc-linux-gnu   '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s&^&sh3eb-elf-&'\'' --disable-option-checking'
target_configdirs=' libgcc libstdc++-v3 libssp libquadmath'
target_cpu='sh3eb'
target_noncanonical='sh3eb-elf'
target_os='elf'
target_subdir='sh3eb-elf'
target_vendor='unknown'
tooldir='${exec_prefix}/sh3eb-elf'

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag='/dev/null'
host_makefile_frag='/dev/null'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='/dev/null'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"

configure: exit 0




Ajouté le 23/02/2019 à 10:45 :
je sens que je vais éteindre l'ordi portable et tout recommencer
Lephenixnoir Hors ligne Administrateur Points: 24232 Défis: 170 Message

Citer : Posté le 23/02/2019 10:49 | #


Ah, mais je suis un peu aveugle. Cette ligne-là :

checking for sh3eb-elf-gcc...  /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/./gcc/xgcc -B/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/build-gcc/./gcc/ -B/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/bin/ -B/home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/lib/ -isystem /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/include -isystem /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/sh3eb-elf/sys-include  

Devrait être beaucoup plus courte, comme ceci :

checking for sh3eb-elf-gcc...  sh3eb-elf-gcc

Ou comme cela :

checking for sh3eb-elf-gcc...  /home/milan/Documents/Casio/gcc/sh3eb-elf-2.31.1-8.2.O/bin/sh3eb-elf-gcc

Vérifie que tu as sh3eb-elf-gcc dans le PATH. La commande which sh3eb-elf-gcc doit te renvoyer le chemin complet juste ci-dessus. Tu peux aussi afficher le PATH avec la commande echo $PATH et vérifier que le dossier approprié est dedans. Tu peux aussi taper sh3eb-elf-gcc et vérifier que le compilateur se lance bien (il renvoie une erreur, ce qui est normal).

Ajouté le 09/03/2019 à 13:29 :
Grâce à l'aide de deux contributeurs sur la liste gcc-help, j'ai trouvé un problème dans ma procédure de compilation, qui fait que le sh4eb-nofpu-elf génère parfois des instructions FPU (si si !), ce que la Graph 90 n'aime pas (SysERROR).

J'ai appris comment me débarasser de ça, et même comment compiler un GCC qui supporte à la fois le SH3 et le SH4, ce qui évite aux développeurs extensifs comme moi de compiler les deux. Je vous tiendrai au courant !

Vous pouvez lire la conversation sur les archives de gcc-help.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Précédente 1, 2, 3 ··· 10 ··· 14, 15, 16, 17, 18, 19, 20 ··· 23, 24, 25 Suivante

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2024 | Il y a 62 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd