This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Can't Build 2.95.2 gcc
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Can't Build 2.95.2 gcc
- From: "HORROBIN, BRINLEY" <brinley dot horrobin at bell dot ca>
- Date: Thu, 19 Oct 2000 09:12:24 -0400
- Organization: Bell Canada
Good morning
I am trying to load GCC-2.95.2 onto a PC operating
Red Hat 6. It configures ok (./configure) but will not build. These
are the the error I get in the /usr/include/stdlib.h include
lib.
[root@hamcj0 gcc-2.95.2]# make bootstrap
make[1]: Entering directory
`/home/bhorrobi/downloads/gcc/gcc-2.95.2/libiberty'
test x"no" != xyes || \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include choose-temp.c -o
pic/choose-temp.o
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I./../include choose-temp.c
In file included from /usr/include/time.h:25,
from /usr/include/sys/types.h:121,
from choose-temp.c:30:
/usr/include/sys/select.h:90: warning: `struct timespec' declared inside
parameter list
/usr/include/sys/select.h:90: warning: its scope is only this definition
or declaration,
/usr/include/sys/select.h:90: warning: which is probably not what you
want.
In file included from choose-temp.c:35:
/usr/include/stdlib.h:246: syntax error before `void'
/usr/include/stdlib.h:246: parse error before `__NORETURN2'
/usr/include/stdlib.h:246: warning: data definition has no type or
storage class
/usr/include/stdlib.h:262: syntax error before `void'
/usr/include/stdlib.h:262: parse error before `__NORETURN2'
/usr/include/stdlib.h:262: warning: data definition has no type or
storage class
/usr/include/stdlib.h:301: syntax error before `int'
/usr/include/stdlib.h:301: parse error before `__CONSTVALUE2'
/usr/include/stdlib.h:301: warning: data definition has no type or
storage class
/usr/include/stdlib.h:302: syntax error before `long'
/usr/include/stdlib.h:302: parse error before `__CONSTVALUE2'
/usr/include/stdlib.h:302: warning: data definition has no type or
storage class
/usr/include/stdlib.h:307: syntax error before `div_t'
/usr/include/stdlib.h:307: parse error before `__CONSTVALUE2'
/usr/include/stdlib.h:307: warning: data definition has no type or
storage class
/usr/include/stdlib.h:308: syntax error before `ldiv_t'
/usr/include/stdlib.h:309: parse error before `__CONSTVALUE2'
/usr/include/stdlib.h:309: warning: data definition has no type or
storage class
make[1]: *** [choose-temp.o] Error 1
make[1]: Leaving directory
`/home/bhorrobi/downloads/gcc/gcc-2.95.2/libiberty'
make: *** [all-libiberty] Error 2
I also had a problem with the time.h include file in /usr/include
this was corrected by replacing that file with the time.h header
loaded by the program in /usr/include/sys
thanks for your time and patience
--
Brin Horrobin
e-mail - brinley.horrobin@bell.ca
tel # 905-526-5689
pgr 905-719-2370