egcs-1.0 compile fails on Linux/Alpha, RedHat 4.2.

Jeffrey A Law law@cygnus.com
Wed Dec 3 20:09:00 GMT 1997


  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



More information about the Gcc-bugs mailing list