public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help!
@ 1999-12-03  8:10 Jeff Dickens
  1999-12-03  9:10 ` Jeff Dickens
  1999-12-31 22:24 ` Jeff Dickens
  0 siblings, 2 replies; 6+ messages in thread
From: Jeff Dickens @ 1999-12-03  8:10 UTC (permalink / raw)
  To: help-gcc

I'm building gcc 2.95.2 on NCR System V MP-RAS V3.02.

I'm using the NCR c compiler to build gcc:
NCR High Performance C Compiler R3.0c

I soft-linked in all the binutils components, and building those seemed to
go fine.

Then when it went on to compiling gcc, it failed  on genattrtab.c:

cc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc -I../.
./gc
c-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/genat
trtab.c
.
.
E "../../gcc-2.95.2/gcc/genattrtab.c",L4733/C21(#237):  INT_MAX: Identifier
is u
ndeclared.
.
.
1 user error   192 warnings
make[2]: *** [genattrtab.o] Error 1
make[2]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
make: *** [bootstrap] Error 2

(I removed the 192 warnings to improve readability)


INT_MAX is defined in /usr/include/limits.h. Why would't it find that ?

thanks...







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help!
  1999-12-03  8:10 building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help! Jeff Dickens
@ 1999-12-03  9:10 ` Jeff Dickens
  1999-12-06  8:08   ` Jeff Dickens
  1999-12-31 22:24   ` Jeff Dickens
  1999-12-31 22:24 ` Jeff Dickens
  1 sibling, 2 replies; 6+ messages in thread
From: Jeff Dickens @ 1999-12-03  9:10 UTC (permalink / raw)
  To: help-gcc

genattrtab.c includes system.h.

In system.h, I find this:

#if HAVE_LIMITS_H
# include <limits.h>
#endif

Who decides if "HAVE_LIMITS_H" should be defined ?  And why would this
decision be no ?

Also,genattrtab.c includes sys/resource.h.

sys/resource.h includes sys/time.h which includes sys/types.h, which does
contain INT_MAX, but only inside
"#if defined(_KERNEL)".



Jeff Dickens <jdickens@ersi.com> wrote in message
news: 828pnp$oe6$0@dosa.alt.net ...
> I'm building gcc 2.95.2 on NCR System V MP-RAS V3.02.
>
> I'm using the NCR c compiler to build gcc:
> NCR High Performance C Compiler R3.0c
>
> I soft-linked in all the binutils components, and building those seemed to
> go fine.
>
> Then when it went on to compiling gcc, it failed  on genattrtab.c:
>
>
cc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc -I../.
> ./gc
> c-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
> ../../gcc-2.95.2/gcc/genat
> trtab.c
> .
> .
> E "../../gcc-2.95.2/gcc/genattrtab.c",L4733/C21(#237):  INT_MAX:
Identifier
> is u
> ndeclared.
> .
> .
> 1 user error   192 warnings
> make[2]: *** [genattrtab.o] Error 1
> make[2]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> make: *** [bootstrap] Error 2
>
> (I removed the 192 warnings to improve readability)
>
>
> INT_MAX is defined in /usr/include/limits.h. Why would't it find that ?
>
> thanks...
>
>
>
>
>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help!
  1999-12-03  9:10 ` Jeff Dickens
@ 1999-12-06  8:08   ` Jeff Dickens
  1999-12-31 22:24     ` Jeff Dickens
  1999-12-31 22:24   ` Jeff Dickens
  1 sibling, 1 reply; 6+ messages in thread
From: Jeff Dickens @ 1999-12-06  8:08 UTC (permalink / raw)
  To: help-gcc

Hey, fwiw, I just defined HAVE_LIMITS_H as 1 in gcc/auto-host.h, and away it
went.

"make bootstrap" completed without error.

Jeff Dickens <jdickens@ersi.com> wrote in message
news: 828t9h$6d1$0@dosa.alt.net ...
> genattrtab.c includes system.h.
>
> In system.h, I find this:
>
> #if HAVE_LIMITS_H
> # include <limits.h>
> #endif
>
> Who decides if "HAVE_LIMITS_H" should be defined ?  And why would this
> decision be no ?
>
> Also,genattrtab.c includes sys/resource.h.
>
> sys/resource.h includes sys/time.h which includes sys/types.h, which does
> contain INT_MAX, but only inside
> "#if defined(_KERNEL)".
>
>
>
> Jeff Dickens <jdickens@ersi.com> wrote in message
> news: 828pnp$oe6$0@dosa.alt.net ...
> > I'm building gcc 2.95.2 on NCR System V MP-RAS V3.02.
> >
> > I'm using the NCR c compiler to build gcc:
> > NCR High Performance C Compiler R3.0c
> >
> > I soft-linked in all the binutils components, and building those seemed
to
> > go fine.
> >
> > Then when it went on to compiling gcc, it failed  on genattrtab.c:
> >
> >
>
cc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc -I../.
> > ./gc
> > c-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
> > ../../gcc-2.95.2/gcc/genat
> > trtab.c
> > .
> > .
> > E "../../gcc-2.95.2/gcc/genattrtab.c",L4733/C21(#237):  INT_MAX:
> Identifier
> > is u
> > ndeclared.
> > .
> > .
> > 1 user error   192 warnings
> > make[2]: *** [genattrtab.o] Error 1
> > make[2]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> > make[1]: *** [bootstrap] Error 2
> > make[1]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> > make: *** [bootstrap] Error 2
> >
> > (I removed the 192 warnings to improve readability)
> >
> >
> > INT_MAX is defined in /usr/include/limits.h. Why would't it find that ?
> >
> > thanks...
> >
> >
> >
> >
> >
> >
> >
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help!
  1999-12-03  8:10 building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help! Jeff Dickens
  1999-12-03  9:10 ` Jeff Dickens
@ 1999-12-31 22:24 ` Jeff Dickens
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff Dickens @ 1999-12-31 22:24 UTC (permalink / raw)
  To: help-gcc

I'm building gcc 2.95.2 on NCR System V MP-RAS V3.02.

I'm using the NCR c compiler to build gcc:
NCR High Performance C Compiler R3.0c

I soft-linked in all the binutils components, and building those seemed to
go fine.

Then when it went on to compiling gcc, it failed  on genattrtab.c:

cc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc -I../.
./gc
c-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
../../gcc-2.95.2/gcc/genat
trtab.c
.
.
E "../../gcc-2.95.2/gcc/genattrtab.c",L4733/C21(#237):  INT_MAX: Identifier
is u
ndeclared.
.
.
1 user error   192 warnings
make[2]: *** [genattrtab.o] Error 1
make[2]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
make: *** [bootstrap] Error 2

(I removed the 192 warnings to improve readability)


INT_MAX is defined in /usr/include/limits.h. Why would't it find that ?

thanks...







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help!
  1999-12-06  8:08   ` Jeff Dickens
@ 1999-12-31 22:24     ` Jeff Dickens
  0 siblings, 0 replies; 6+ messages in thread
From: Jeff Dickens @ 1999-12-31 22:24 UTC (permalink / raw)
  To: help-gcc

Hey, fwiw, I just defined HAVE_LIMITS_H as 1 in gcc/auto-host.h, and away it
went.

"make bootstrap" completed without error.

Jeff Dickens <jdickens@ersi.com> wrote in message
news: 828t9h$6d1$0@dosa.alt.net ...
> genattrtab.c includes system.h.
>
> In system.h, I find this:
>
> #if HAVE_LIMITS_H
> # include <limits.h>
> #endif
>
> Who decides if "HAVE_LIMITS_H" should be defined ?  And why would this
> decision be no ?
>
> Also,genattrtab.c includes sys/resource.h.
>
> sys/resource.h includes sys/time.h which includes sys/types.h, which does
> contain INT_MAX, but only inside
> "#if defined(_KERNEL)".
>
>
>
> Jeff Dickens <jdickens@ersi.com> wrote in message
> news: 828pnp$oe6$0@dosa.alt.net ...
> > I'm building gcc 2.95.2 on NCR System V MP-RAS V3.02.
> >
> > I'm using the NCR c compiler to build gcc:
> > NCR High Performance C Compiler R3.0c
> >
> > I soft-linked in all the binutils components, and building those seemed
to
> > go fine.
> >
> > Then when it went on to compiling gcc, it failed  on genattrtab.c:
> >
> >
>
cc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc -I../.
> > ./gc
> > c-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
> > ../../gcc-2.95.2/gcc/genat
> > trtab.c
> > .
> > .
> > E "../../gcc-2.95.2/gcc/genattrtab.c",L4733/C21(#237):  INT_MAX:
> Identifier
> > is u
> > ndeclared.
> > .
> > .
> > 1 user error   192 warnings
> > make[2]: *** [genattrtab.o] Error 1
> > make[2]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> > make[1]: *** [bootstrap] Error 2
> > make[1]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> > make: *** [bootstrap] Error 2
> >
> > (I removed the 192 warnings to improve readability)
> >
> >
> > INT_MAX is defined in /usr/include/limits.h. Why would't it find that ?
> >
> > thanks...
> >
> >
> >
> >
> >
> >
> >
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help!
  1999-12-03  9:10 ` Jeff Dickens
  1999-12-06  8:08   ` Jeff Dickens
@ 1999-12-31 22:24   ` Jeff Dickens
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff Dickens @ 1999-12-31 22:24 UTC (permalink / raw)
  To: help-gcc

genattrtab.c includes system.h.

In system.h, I find this:

#if HAVE_LIMITS_H
# include <limits.h>
#endif

Who decides if "HAVE_LIMITS_H" should be defined ?  And why would this
decision be no ?

Also,genattrtab.c includes sys/resource.h.

sys/resource.h includes sys/time.h which includes sys/types.h, which does
contain INT_MAX, but only inside
"#if defined(_KERNEL)".



Jeff Dickens <jdickens@ersi.com> wrote in message
news: 828pnp$oe6$0@dosa.alt.net ...
> I'm building gcc 2.95.2 on NCR System V MP-RAS V3.02.
>
> I'm using the NCR c compiler to build gcc:
> NCR High Performance C Compiler R3.0c
>
> I soft-linked in all the binutils components, and building those seemed to
> go fine.
>
> Then when it went on to compiling gcc, it failed  on genattrtab.c:
>
>
cc -c  -DIN_GCC     -g  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc -I../.
> ./gc
> c-2.95.2/gcc/config -I../../gcc-2.95.2/gcc/../include
> ../../gcc-2.95.2/gcc/genat
> trtab.c
> .
> .
> E "../../gcc-2.95.2/gcc/genattrtab.c",L4733/C21(#237):  INT_MAX:
Identifier
> is u
> ndeclared.
> .
> .
> 1 user error   192 warnings
> make[2]: *** [genattrtab.o] Error 1
> make[2]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory `/build1/ersbuild/src/gcc-2.95.2-build/gcc'
> make: *** [bootstrap] Error 2
>
> (I removed the 192 warnings to improve readability)
>
>
> INT_MAX is defined in /usr/include/limits.h. Why would't it find that ?
>
> thanks...
>
>
>
>
>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-12-31 22:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-03  8:10 building gcc 2.95.2 - genattrtab.c - INT_MAX undeclared - help! Jeff Dickens
1999-12-03  9:10 ` Jeff Dickens
1999-12-06  8:08   ` Jeff Dickens
1999-12-31 22:24     ` Jeff Dickens
1999-12-31 22:24   ` Jeff Dickens
1999-12-31 22:24 ` Jeff Dickens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).