This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Build newlib: parse error
- To: newlib at sources dot redhat dot com
- Subject: Build newlib: parse error
- From: nal at supereva dot it ()
- Date: 6 Feb 2001 09:22:15 -0000
- Reply-To: nal at supereva dot it
Hi all,
I am try to compile a cross-gcc for SH (sh-1,sh-2) from my Linux-Pc
but I have some problem (parse error!!)with the newlib-1.9.0.
I have followed the procedure described in the CrossGcc Faq
in www.objsw.com/CrossGCC/.
I am not very familiar what these do in newlib, so if anyone
can give me any hints or suggestions on how to resolve that,
it would be greatly appreciated!
thanks in advance!
Antonio
--------------------------------
I have create the binutils and gcc-2.95.2 for SH...
target=sh-hms
prefix=/usr/local
CC_FOR_TARGET=/usr/local/bin/${target}-gcc \
AS_FOR_TARGET=/usr/local/bin/${target}-as \
LD_FOR_TARGET=/usr/local/bin/${target}-ld \
AR_FOR_TARGET=/usr/local/bin/${target}-ar \
RANLIB_FOR_TARGET=/usr/local/bin/${target}-ranlib
> ../src/buil-newlib/configure --target=$target --prefix=$prefix
> make all install
....
....
Making install in doc
make[2]: Entering directory `/people/naletto/PROJECT/build-newlib/sh-hms/newlib/
doc'
gcc -g -c ../../../../src/newlib-1.9.0/newlib/doc/makedoc.c
In file included from /usr/include/libio.h:30,
from /usr/include/stdio.h:57,
from ../../../../src/newlib-1.9.0/newlib/doc/makedoc.c:39:
/usr/include/_G_config.h:43: parse error before `_G_sigset_t'
/usr/include/_G_config.h:43: warning: data definition has no type or storage cla
ss
In file included from /usr/include/stdio.h:57,
from ../../../../src/newlib-1.9.0/newlib/doc/makedoc.c:39:
/usr/include/libio.h:370: parse error before `_IO_seekoff'
/usr/include/libio.h:370: parse error before `_G_off64_t'
/usr/include/libio.h:370: warning: data definition has no type or storage class
/usr/include/libio.h:371: parse error before `_IO_seekpos'
/usr/include/libio.h:371: parse error before `_G_fpos64_t'
/usr/include/libio.h:371: warning: data definition has no type or storage class
make[2]: *** [makedoc.o] Error 1
-----------------------------------------------------
messaggio inviato con Freemail by superEva
http://www.supereva.it
-----------------------------------------------------