2010-09-07 5 views
3

J'essaye de construire une chaîne d'outils de bras à partir de zéro.Obtenir une erreur lors de la compilation de newlib

Je fais référence à ce site.

http://www.nixit.co.uk/cortex-m3-mac-1

suivi toutes les instructions. Tout s'est bien passé jusqu'à la compilation newlib. Je reçois une erreur étrange.

/bin/bash: bras-none-eabi-cc: command not found

Alors j'ai vérifié le Makefile il y a une ligne dans le Makefile. Il existe une directive relative à bras-aucun-eabi-cc

# ----------------------------------------------- 
# Programs producing files for the TARGET machine 
# ----------------------------------------------- 

AR_FOR_TARGET=arm-none-eabi-ar 
AS_FOR_TARGET=arm-none-eabi-as 
CC_FOR_TARGET=$(STAGE_CC_WRAPPER) arm-none-eabi-cc 

# If GCC_FOR_TARGET is not overriden on the command line, then this 
# variable is passed down to the gcc Makefile, where it is used to 
# build libgcc2.a. We define it here so that it can itself be 
# overridden on the command line. 
GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) arm-none-eabi-gcc 

J'ai vérifié le répertoire/usr/bras/bin. Donc, je ne trouve aucun bras-eabi-outils, mais pas bras-none-eabi-cc

arm-none-eabi-ld  arm-none-eabi-readelf 
arm-none-eabi-ar   arm-none-eabi-gcc-4.4.3 arm-none-eabi-nm  arm-none-eabi-size 
arm-none-eabi-as   **arm-none-eabi-gcc** 

S'il vous plaît aider

Répondre

2

Essayez de remplacer le bras-ne-eabi-cc dans le Makefile avec Arm- none-eabi-gcc, ou symlinking arm-none-eabi-cc à arm-none-eabi-gcc.

+0

les choses ont avancé. Voyons ce qui se passe si la chaîne d'outils est capable de compiler le code correctement. – chai

+0

merci Nathon .. la chaîne d'outils a installé. – chai

Questions connexes