Bienvenido: Ingresar
location: Diferencias para "WebHome/HerramientasProgramacion/ErroresFrecuentes"
Diferencias entre las revisiones 1 y 2
Versión 1 con fecha 2010-09-08 20:58:48
Tamaño: 1525
Comentario:
Versión 2 con fecha 2010-09-08 21:04:35
Tamaño: 1635
Comentario:
Los textos eliminados se marcan así. Los textos añadidos se marcan así.
Línea 5: Línea 5:
===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
=== Error ===
Línea 12: Línea 7:
}}}
===Solución===

=== Solución ===
Línea 18: Línea 13:
#cd /opt/gnu-arm/bin
#ln -s /opt/gnu-arm/libexec/gcc/arm-elf/4.3.2/cc1 ./cc1
#ls -l
root@td03005:/# cd /opt/gnu-arm/bin
root@td03005:/opt/gnu-arm/bin# ln -s /opt/gnu-arm/libexec/gcc/arm-elf/4.3.2/cc1 ./cc1
root@td03005:/opt/gnu-arm/bin# ls -l
Línea 45: Línea 39:
=== Error ===
/opt/gnu-arm/bin/../libexec/gcc/arm-elf/4.3.2/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object

=== Solución ===
Instalar la librería correspondiente
{{{
# aptitude install libmpfr1ldbl
}}}
Línea 50: Línea 52:

Instalación de Herramientas GNU-ARM

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

Error

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

root@td03005:/# cd /opt/gnu-arm/bin
root@td03005:/opt/gnu-arm/bin# ln -s /opt/gnu-arm/libexec/gcc/arm-elf/4.3.2/cc1 ./cc1
root@td03005:/opt/gnu-arm/bin# 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

=== Error === /opt/gnu-arm/bin/../libexec/gcc/arm-elf/4.3.2/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object

Solución

Instalar la librería correspondiente

# aptitude install libmpfr1ldbl

UntitledWiki: WebHome/HerramientasProgramacion/ErroresFrecuentes (última edición 2011-03-15 14:41:20 efectuada por GuillermoSteiner)