This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: toolchain compilation problem


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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]