building latest ( snapshot || cvs )

ADAM Sulmicki adam@cfar.umd.edu
Sat Feb 26 17:54:00 GMT 2000


This is follow-up to my last email. 
	The bottom line is : 
		- I got the snapshot (2/21/00) to compile and it can run
		  it compiles hello.c fine (any update on status of
		  testsuite?).. see below on details.
		- the compilation of cvs tree fails on another error, see
		  attached file.

about the rusage stuff, I have them delcared in
	/usr/include/sys/resource.h 
which is from glibc I belive. In addiion they are in linux kernel headers
as well. However trying to just include said file in gcc.c gives me
other stuff being redefined. 

I guess it is something wrong with 'configure' and HAVE_SYS_RESOURCE_H

This or other way, I have manually defined RUSAGE_CHILDREN to be -1
and included declaration of struct 'rusage' and it comiled past it.

In case of the snapshot, it was the last problem (and I was able to
compile gcc).

In case of cvs tree, there was another problem, and I have no idea how to
get around this one.



On Sat, 26 Feb 2000, ADAM Sulmicki wrote:

> 
> Hello,
> 	I had been trying to build GCC from latest snapshot (20000221)
> 	as well as from today's (2/26/00) cvs tree. In each time
>  	I get exacatly the same error. I have checked gcc* mailing list
> 	but I did not come by any other report of this, so I'm kind of 
> 	perplexed as I immagine my system is pretty much standard
> 	Redhat 6.1 on x86, so someone else should have come by this
> 	by now.
> 
> system info:
> 
> 	Red Hat Linux release 6.1 (Cartman)
> 	Linux pepsi 2.3.42 #240 SMP Tue Feb 1 18:57:15 EST 2000 i686 unknown
> 	gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> 	gcc sources : either egcs-20000221 or cvs-2/28/00
> 
> build:
> 
>         mkdir egcs.obj ; cd egcs.obj
>         ../egcs/configure --enable-threads=posix --prefix=/usr/local/gcc
>         make bootstrap MAKE="make -j 2" -j 2
> 
> the error:
> 
> gcc -c  -DIN_GCC    -g -W -Wall -Wtraditional  -DHAVE_CONFIG_H    -I. -I../../egcs/gcc -I../../egcs/gcc/config -I../../egcs/gcc/../include ../../egcs/gcc/diagnostic.c
> ../../egcs/gcc/gcc.c: In function `execute':
> ../../egcs/gcc/gcc.c:2588: `prus' has an incomplete type
> ../../egcs/gcc/gcc.c:2589: `RUSAGE_CHILDREN' undeclared (first use in this function)
> ../../egcs/gcc/gcc.c:2589: (Each undeclared identifier is reported only once
> ../../egcs/gcc/gcc.c:2589: for each function it appears in.)
> ../../egcs/gcc/gcc.c:2590: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2590: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2591: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2591: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2594: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2594: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2595: invalid use of undefined type `struct rusage'
> ../../egcs/gcc/gcc.c:2595: invalid use of undefined type `struct rusage'
> gcc  -DIN_GCC    -g -W -Wall -Wtraditional  -DHAVE_CONFIG_H    -I. -I../../egcs/
> gcc -I../../egcs/gcc/config -I../../egcs/gcc/../include  \
>   -DTARGET_NAME=\"i686-pc-linux-gnu\" \
>   -c `echo ../../egcs/gcc/toplev.c | sed 's,^\./,,'`
> ../../egcs/gcc/gcc.c: At top level:
> ../../egcs/gcc/gcc.c:190: storage size of `rus' isn't known
> ../../egcs/gcc/gcc.c:190: storage size of `prus' isn't known
> make[2]: *** [gcc.o] Error 1
> make[2]: Leaving directory
> `/usr/src/Development/Languages/gcc/cvs/egcs.obj/gcc'
> make[1]: *** [bootstrap] Error 2
> make[1]: Leaving directory
> `/usr/src/Development/Languages/gcc/cvs/egcs.obj/gcc'
> make: *** [bootstrap] Error 2
> 
> any hints?
> 
> Adam
> 
> 
> 



More information about the Gcc-help mailing list