2003-09-17 09:23:50

by Stephen Torri

[permalink] [raw]
Subject: 2.6.0-test5: Undefined reference to 'monotonic_clock'

I am compiling 2.6.0-test5 on a Alpha box. I grepped for the phrase
'monotonic_clock' because for some reason the file that was to provide
it was missing. The machine is a Alpha EV56 EB164 type, PC164 variation
using the 2.95.4. Here is the error message:

storri@alpha:$ sudo make vmlinux
make[1]: `arch/alpha/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CC kernel/configs.o
LD kernel/built-in.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `hangcheck_fire':
/usr/src/linux-2.6.0-test5/drivers/char/hangcheck-timer.c:87: undefined
reference to `monotonic_clock'
/usr/src/linux-2.6.0-test5/drivers/char/hangcheck-timer.c:87: undefined
reference to `monotonic_clock'
/usr/src/linux-2.6.0-test5/drivers/char/hangcheck-timer.c:103: undefined
reference to `monotonic_clock'
/usr/src/linux-2.6.0-test5/drivers/char/hangcheck-timer.c:103: undefined
reference to `monotonic_clock'
drivers/built-in.o: In function `pnp_device_probe':
/usr/src/linux-2.6.0-test5/drivers/pnp/driver.c:119: undefined reference
to `monotonic_clock'
drivers/built-in.o:/usr/src/linux-2.6.0-test5/drivers/pnp/driver.c:119:
more undefined references to `monotonic_clock' follow
make: *** [.tmp_vmlinux1] Error 1

Stephen
--
Stephen Torri
GPG Key: http://www.cs.wustl.edu/~storri/storri.asc


Attachments:
signature.asc (189.00 B)
This is a digitally signed message part

2003-09-17 17:35:30

by john stultz

[permalink] [raw]
Subject: Re: 2.6.0-test5: Undefined reference to 'monotonic_clock'

On Wed, 2003-09-17 at 02:23, Stephen Torri wrote:
> I am compiling 2.6.0-test5 on a Alpha box. I grepped for the phrase
> 'monotonic_clock' because for some reason the file that was to provide
> it was missing. The machine is a Alpha EV56 EB164 type, PC164 variation
> using the 2.95.4. Here is the error message:

> /usr/src/linux-2.6.0-test5/drivers/char/hangcheck-timer.c:87: undefined
> reference to `monotonic_clock'

Yea, monotonic_clock, which the hangcheck-timer module uses is not yet
defined on all arches (only i386/x86-64 at the moment)

Patch to follow soon.

thanks
-john