This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]