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 - Autres questions


Index du Forum » Autres questions » Compiling sh-gcc separately
Druzyek En ligne Membre Points: 69 Défis: 0 Message

Compiling sh-gcc separately

Posté le 20/06/2025 20:16

I'm having some trouble compiling sh-gcc manually according to Method 3 listed here. This is the error: configure: error: cannot compute suffix of object files: cannot compile

I tried first in a Docker container starting with the debian:latest image then again with a fresh Debian install in a VM and got the same error. Here is what I tried:
- Downloaded and decompressed gcc-15.1.0.tar.xz from https://ftp.gnu.org/gnu/gcc/gcc-15.1.0/. I want 15.1.0 specifically for the musttail attribute. I plan to compile just one of the C files in my project to assembly with -S with this toolchain, so I don't need the full fxsdk functionality.
- Created directory /home/druzyek/sh-gcc/gcc and set SYSROOT to that.
- Set VERSION to 15.1.0
- sudo apt install build-essential
- Followed the command line instructions for Method 3 but did not run the patch line since not using GCC 11.1 or earlier.
- The error happens when running make -j$(nproc) all-gcc all-target-libgcc

Here is the error text and checking a few things:
checking for sh3eb-elf-gcc...  /home/druzyek/sh-gcc/build/./gcc/xgcc -B/home/druzyek/sh-gcc/build/./gcc/ -B/home/druzyek/sh-gcc/gcc/sh3eb-elf/bin/ -B/home/druzyek/sh-gcc/gcc/sh3eb-elf/lib/ -isystem /home/druzyek/sh-gcc/gcc/sh3eb-elf/include -isystem /home/druzyek/sh-gcc/gcc/sh3eb-elf/sys-include  
checking for suffix of object files... configure: error: in `/home/druzyek/sh-gcc/build/sh3eb-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make: *** [Makefile:15378: configure-target-libgcc] Error 1
druzyek@debian:~/sh-gcc/build$ echo $SYSROOT
/home/druzyek/sh-gcc/gcc
druzyek@debian:~/sh-gcc/build$ echo $VERSION
15.1.0
druzyek@debian:~/sh-gcc/build$ cd ..
druzyek@debian:~/sh-gcc$ ls
ar  as  build  gcc  gcc-15.1.0  gcc.tar.xz  ld  ranlib



Druzyek En ligne Membre Points: 69 Défis: 0 Message

Citer : Posté le 20/06/2025 20:20 | # | Fichier joint


config.log attached
Lephenixnoir En ligne Administrateur Points: 25184 Défis: 174 Message

Citer : Posté le 20/06/2025 20:45 | #


So... you didn't install binutils?
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Druzyek En ligne Membre Points: 69 Défis: 0 Message

Citer : Posté le 20/06/2025 20:53 | #


If you mean binutils on the host, that should come with build-essential. ld -v shows 2.40 for example. Do you mean binutils for sh?
Lephenixnoir En ligne Administrateur Points: 25184 Défis: 174 Message

Citer : Posté le 20/06/2025 21:57 | #


Yes I mean binutils for SH: https://git.planet-casio.com/Lephenixnoir/sh-elf-binutils/

That's what the symlink step symlinks to.
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Druzyek En ligne Membre Points: 69 Défis: 0 Message

Citer : Posté le 21/06/2025 03:54 | #


Thanks as always for your help. I got it working in an arch container.

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 - 2025 | Il y a 140 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