[Top] [All Lists]

Re: gcc include strangeness

To: "Maciej W. Rozycki" <>
Subject: Re: gcc include strangeness
From: Florian Lohoff <>
Date: Mon, 11 Feb 2002 14:53:02 +0100
In-reply-to: <>
Organization: rfc822 - pure communication
References: <> <>
User-agent: Mutt/1.3.27i
On Mon, Feb 11, 2002 at 01:51:47PM +0100, Maciej W. Rozycki wrote:
> On Sat, 9 Feb 2002, Florian Lohoff wrote:
> > i just stumbled when i tried to compile a program (bootloader) with
> > gcc which uses varargs. I got the error that "sgidefs.h" was missing.
> > sgidefs.h is contained in the glibc which gets included by va-mips.h
> > from stdarg.h - I dont think this is correct as i should be able
> > to compile programs without glibc.
>  Hmm, in 2.95.3 in va-mips.h I see: 
> /* Get definitions for _MIPS_SIM_ABI64 etc.  */
> #ifdef _MIPS_SIM
> #include <sgidefs.h>
> #endif
> so you shouldn't need sgidefs.h normally.  Or did something get broken for
> 3.x?

revamp:/tmp/arcboot-0.2# make
cd arclib; make all
make[1]: Entering directory `/tmp/arcboot-0.2/arclib'
cc -O -Werror -Wall -mno-abicalls -G 0 -fno-pic    -c -o arc.o arc.c
cc -O -Werror -Wall -mno-abicalls -G 0 -fno-pic    -c -o stdio.o stdio.c
In file included from
                 from stdio.h:8,
                 from stdio.c:7:
/usr/lib/gcc-lib/mips-linux/2.95.4/include/va-mips.h:89: sgidefs.h: No
such file or directory
make[1]: *** [stdio.o] Error 1
make[1]: Leaving directory `/tmp/arcboot-0.2/arclib'
make: *** [all] Error 2

revamp:/tmp/arcboot-0.2# gcc -v
Reading specs from /usr/lib/gcc-lib/mips-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)

revamp:/tmp/arcboot-0.2# vi /usr/lib/gcc-lib/mips-linux/2.95.4/include/va-mips.h
     87 /* Get definitions for _MIPS_SIM_ABI64 etc.  */
     88 #ifdef _MIPS_SIM
     89 #include <sgidefs.h>
     90 #endif

I just saw it - I cant explain it ...

Florian Lohoff                     +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgpZIqVkjh85C.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>