Re: gcc include strangeness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
/usr/lib/gcc-lib/mips-linux/2.95.4/include/stdarg.h:27,
                 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 ...

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgp00146.pgp
Description: PGP signature


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux