Bienvenido: Ingresar

Versión 1 con fecha 2010-09-08 20:58:48

Quitar mensaje
location: WebHome / HerramientasProgramacion / ErroresFrecuentes

Instalación de Herramientas GNU-ARM

Problemas frecuentes enla instalación y/o ejecución de las herramientas ARM

===Problema=== Al realizar un make en una aplicación tenemos el siguiente error

teknikas@td03005:~/prueba$ make
arm-elf-as -mcpu=arm7tdmi -mapcs-32 -g  head.s -o head.o 
arm-elf-gcc -Wall -O0 -g -mcpu=arm7tdmi -c main.c 
arm-elf-gcc: error trying to exec 'cc1': execvp: No existe el fichero ó directorio

===Solución=== Se debe realizar un enlace simbólico del cc1 a la carpeta de los binarios.

como root

#cd /opt/gnu-arm/bin
#ln -s /opt/gnu-arm/libexec/gcc/arm-elf/4.3.2/cc1 ./cc1
#ls -l

.....
-rwxr-xr-x 1 root root  2814764 2010-06-10 18:47 arm-elf-strip
lrwxrwxrwx 1 root root       42 2010-09-08 17:29 cc1 -> /opt/gnu-arm/libexec/gcc/arm-elf/4.3.2/cc1
.....

verificar que cc1 tenga permiso de ejecución

root@td03005:/opt/gnu-arm/bin# cd /opt/gnu-arm/libexec/gcc/arm-elf/4.3.2/
root@td03005:/opt/gnu-arm/libexec/gcc/arm-elf/4.3.2# chmod +x cc1
root@td03005:/opt/gnu-arm/libexec/gcc/arm-elf/4.3.2# chmod +x cc1plus

root@td03005:/opt/gnu-arm/libexec/gcc/arm-elf/4.3.2# ls
cc1  cc1plus  collect2  install-tools
root@td03005:/opt/gnu-arm/libexec/gcc/arm-elf/4.3.2# ls -l
total 50968
-rwxr-xr-x 1 root root 24760130 2010-06-10 18:47 cc1
-rwxr-xr-x 1 root root 27062393 2010-06-10 18:47 cc1plus
-rw-r--r-- 1 root root   292766 2010-06-10 18:47 collect2
drwxr-xr-x 2 root root     4096 2010-06-10 18:47 install-tools