[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] uclibc compilation error



Hi
   I had the same problem. That is because your "GCC" for or1200 is compiled in an other 
language than English.  In the file "uclib/Rules.mak" the research of the directories where 
are include files, is based on an english answer which does not correspond to the response 
of the language in which was compiled or32-uclinux-GCC.  
For my part (French version) I modified line 38 of Rules.mak like this:  
GCCINCDIR = ${shell $(cc) - print-search-dirs|sed - "s/install.*:  \(.*\)/\1include/gp "} 
Since everything works well.

Al
> Hi:
>
>    Thank for your response but the problem is other. When I compile uclibc
> he says : stddef.h not found. I copy stddef.h to the directory but then I
> obtain the error: limits.h not found.
>  I follow the instructions in readme.or32 in the uclinux section of the web
> step by step but I obtain the error:
>
> Thanks again
>
>
> ----- Original Message -----
> From: "Marko Mlinar" <markom@opencores.org>
> To: <openrisc@opencores.org>
> Sent: Friday, October 18, 2002 8:04 AM
> Subject: Re: [openrisc] uclibc compilation error
>
> > On Thursday 17 October 2002 19:43, javier_castillo_villar@yahoo.es wrote:
> > > I made a mistake, I create the Config file in the ./extra/Configs path
> > > not in the /uclibc path, but now I have another error. I subtitute the
> > > paths in the Config file and when I execute make all install I obtain
> > > this:
> >
> > It is surely hard to read the below errors :)
> > your host compiler -- 'gcc' is not working. I am not sure what have you
>
> done,
>
> > to obtain it, hopefully you just rewriten PATH or INCLUDE variables.
> > Otherwise you will probably have to reinstall (your host -- not or1k)
> > gcc.
> >
> > Marko
> >
> > > (cd include/bits && ln -sf ../../../../../uClibc_config.h
> > > uClibc_config.h)
> > > make -C libc/sysdeps/linux/or32 headers
> > > make[1]: Cambiando a directorio
> > > `/tmp/tools/or1k/uclibc/libc/sysdeps/linux/or32'
> > > make[1]: Saliendo directorio
> > > `/tmp/tools/or1k/uclibc/libc/sysdeps/linux/or32'
> > > make -C  extra
> > > make[1]: Cambiando a directorio `/tmp/tools/or1k/uclibc/extra'
> > > make -C  gcc-uClibc
> > > make[2]: Cambiando a directorio
> > > `/tmp/tools/or1k/uclibc/extra/gcc-uClibc'
> > > gcc -Wall -O2 -s gcc-uClibc.c -o or32-uclibc-gcc
> > > gcc-uClibc.c:73:19: stdio.h: No existe el fichero o el directorio
> > > gcc-uClibc.c:74:20: stdlib.h: No existe el fichero o el directorio
> > > gcc-uClibc.c:76:20: string.h: No existe el fichero o el directorio
> > > gcc-uClibc.c:77:20: unistd.h: No existe el fichero o el directorio
> > > gcc-uClibc.c:90: error de decodificación antes de "size"
> > > gcc-uClibc.c: En la función `xmalloc':
> > > gcc-uClibc.c:92: aviso: declaración implícita de la función `malloc'
> > > gcc-uClibc.c:92: `size' no ha sido declarado aquí (primero úselo en
> > > esta función)
> > > gcc-uClibc.c:92: (Cada identificador no declarado solamente se reporta
> > > una vez
> > > gcc-uClibc.c:92: para cada funcion en la que aparece.)
> > > gcc-uClibc.c:92: aviso: asignación de valores iniciales crea un
> > > apuntador desde un entero sin una conversión
> > > gcc-uClibc.c:95: aviso: declaración implícita de la función `fprintf'
> > > gcc-uClibc.c:95: `stderr' no ha sido declarado aquí (primero úselo en
> > > esta función)
> > > gcc-uClibc.c:96: aviso: declaración implícita de la función `exit'
> > > gcc-uClibc.c:96: `EXIT_FAILURE' no ha sido declarado aquí (primero
> > > úselo en esta función)
> > > gcc-uClibc.c: En la función `xstrcat':
> > > gcc-uClibc.c:123: `BUFSIZ' no ha sido declarado aquí (primero úselo en
> > > esta función)
> > > gcc-uClibc.c:129: aviso: declaración implícita de la función `strcat'
> > > gcc-uClibc.c: En la función `main':
> > > gcc-uClibc.c:154: aviso: declaración implícita de la función `getenv'
> > > gcc-uClibc.c:154: aviso: asignación crea un apuntador desde un entero
> > > sin una conversión
> > > gcc-uClibc.c:159: aviso: asignación crea un apuntador desde un entero
> > > sin una conversión
> > > gcc-uClibc.c:164: aviso: asignación crea un apuntador desde un entero
> > > sin una conversión
> > > gcc-uClibc.c:165: aviso: asignación crea un apuntador desde un entero
> > > sin una conversión
> > > gcc-uClibc.c:167: `NULL' no ha sido declarado aquí (primero úselo en
> > > esta función)
> > > gcc-uClibc.c:183: aviso: asignación crea un apuntador desde un entero
> > > sin una conversión
> > > gcc-uClibc.c:188: aviso: asignación crea un apuntador desde un entero
> > > sin una conversión
> > > gcc-uClibc.c:193: aviso: declaración implícita de la función `strstr'
> > > gcc-uClibc.c:216: aviso: declaración implícita de la función `strcmp'
> > > gcc-uClibc.c:233: aviso: declaración implícita de la función `strncmp'
> > > gcc-uClibc.c:313: aviso: declaración implícita de la función `printf'
> > > gcc-uClibc.c:320: aviso: declaración implícita de la función `execvp'
> > > make[2]: *** [gcc-uClibc] Error 1
> > > make[2]: Saliendo directorio `/tmp/tools/or1k/uclibc/extra/gcc-uClibc'
> > > make[1]: *** [_dir_gcc-uClibc] Error 2
> > > make[1]: Saliendo directorio `/tmp/tools/or1k/uclibc/extra'
> > > make: *** [_dir_extra] Error 2
> >
> > --
> > To unsubscribe from openrisc mailing list please visit
>
> http://www.opencores.org/mailinglists.shtml
>
> _______________________________________________________________
> Copa del Mundo de la FIFA 2002
> El único lugar de Internet con vídeos de los 64 partidos.
> ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/
--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml