This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: toolchain compilation problem
- From: llewelly at xmission dot com
- To: dev karan <devkaransingh at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 10 Jun 2004 13:22:51 -0600
- Subject: Re: toolchain compilation problem
- References: <20040609060748.63696.qmail@web20604.mail.yahoo.com>
dev karan <devkaransingh@yahoo.com> writes:
> Sir,
>
> i have build tool chain for sh using following source
> rpms :
> 1)binutils-2.13.90.0.18
> 2)gcc-3.2.3
> 3)glibc-2.2.5
Can you try a newer glibc? The headers the errors are reported in are
glibc headers. Maybe your gcc and your glibc are not compatible.
Also, try the cross compiler list, crossgcc at sources.redhat.com
>
> After successfully compiling(make) I have installed
> all these .Now the problem is when I try to compile my
> program with this new gcc(i.e sh-linux-gcc)like this
> [spsingh@3di-4-linux test]$ sh-linux-gcc hello.c
>
> following errors occur:
>
> In file included from hello.c:1:
> /embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:55:
> syntax error before "
> typedef"
> /embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:60:
> syntax error before "
> __USING_NAMESPACE_STD"
> /embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:
> In function `__USING_NAM
> ESPACE_STD':
> /embediosh4/lib/gcc-lib/sh-linux/3.2.3/include/stdio.h:71:
> storage class specifi
> ed for parameter `__FILE'
[snip]