This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Error compiling newlib-1.13.0
- From: "Jonathan S. Shapiro" <shap at eros-os dot org>
- To: Derick Swanepoel <dswanepoel at gmail dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Tue, 27 Sep 2005 10:01:58 -0400
- Subject: Re: Error compiling newlib-1.13.0
- References: <fdcd8067050927065587c558f@mail.gmail.com>
Derek:
I probably can't decipher your problem, but I *can* tell you that
*nobody* can help you without knowing:
What environment (configuration) are you compiling *for*
What environment are you compiling *on*.
shap
On Tue, 2005-09-27 at 15:55 +0200, Derick Swanepoel wrote:
> Hi,
>
> I am compiling newlib for the first time, but I'm not getting very
> far. I get the following error:
>
> gcc -I/home/derick/newlib-1.13.0/newlib/targ-include
> -I/home/derick/newlib-1.13.0/newlib/libc/include -DPACKAGE=\"newlib\"
> -DVERSION=\"1.13.0\" -I. -I. -O2 -Wall -D_I386MACH_ALLOW_HW_INTERRUPTS
> -DHAVE_FCNTL -fPIC -D_I386MACH_NEED_SOTYPE_FUNCTION
> -DMISSING_SYSCALL_NAMES -fno-builtin -g -O2 -c argz_add.c -fPIC -DPIC
> -o .libs/argz_add.o
> In file included from /home/derick/newlib-1.13.0/newlib/targ-include/time.h:11,
> from /usr/include/linux/types.h:153,
> from
> /home/derick/newlib-1.13.0/newlib/targ-include/sys/types.h:130,
> from argz_add.c:9:
> /home/derick/newlib-1.13.0/newlib/targ-include/sys/linux_time.h:53:
> error: parse error before "suseconds_t"
> ...
>
> I have determined that it happens because my
> /usr/include/linux/types.h includes time.h before suseconds_t is
> defined in newlib/targ-include/sys/types.h.
>
> Here are some details about my system:
> Gentoo Linux 2005.1
> gcc 3.4.4
> kernel headers: 2.6.11
>
> Any help would be appreciated.
>
> Thanks,
> Derick