This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.0 compile fails on Linux/Alpha, RedHat 4.2.
- To: Peter Mardahl <peterm at langmuir dot eecs dot berkeley dot edu>
- Subject: Re: egcs-1.0 compile fails on Linux/Alpha, RedHat 4.2.
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 03 Dec 1997 21:12:48 -0700
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199712040353.TAA04525@maxwell.EECS.Berkeley.EDU>you write:
>
> This should clearly define the problem:
>
> gcc -c -g -O2 -I. -I../../libiberty/../include ../../libiberty/getruntime.
> c
> ../../libiberty/getruntime.c: In function `get_run_time':
> ../../libiberty/getruntime.c:75: `HZ' undeclared (first use this function)
> ../../libiberty/getruntime.c:75: (Each undeclared identifier is reported on
> ly once
> ../../libiberty/getruntime.c:75: for each function it appears in.)
> make[1]: *** [getruntime.o] Error 1
> make[1]: Leaving directory `/usr/maxwell/peterm/egcs-1.0/obj/libiberty'
> make: *** [all-libiberty] Error 2
What are the contents of /usr/include/asm/param.h?
That's apparently where alpha/linux wants to define HZ.
<time.h> includes <timebits.h>, which includes <asm/param.h>, so
you might follow each include file to make sure it's doing the
right thing.
jeff