Flexible I/O Tester development
 help / color / mirror / Atom feed
* Build issue on arm: undefined reference to `get_cpu_clock'
@ 2010-08-10 12:11 Michael Opdenacker
  2010-08-10 18:04 ` Jens Axboe
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Opdenacker @ 2010-08-10 12:11 UTC (permalink / raw)
  To: fio mailing list

Hello,

Though the arm platform seems to be supported, fio fails to build on the
arm platform. Other non Intel platforms should also be impacted.

gettime.o: In function `get_cycles_per_usec':
/home/ubuntu/.phoronix-test-suite/installed-tests/fio/fio-1.42/gettime.c:192:
undefined reference to `get_cpu_clock'
/home/ubuntu/.phoronix-test-suite/installed-tests/fio/fio-1.42/gettime.c:199:
undefined reference to `get_cpu_clock'
make: *** [fio] Error 1

Unlike in the fio_gettime, where there is an "#ifdef
ARCH_HAVE_CPU_CLOCK" statement around the calls to get_cpu_clock(),
there are other places where this function is used unconditionally.

The get_cpu_clock function is only defined in
arch/arch-ia64.h
arch/arch-x86.h
arch/arch-x86_64.h

How are other architectures supported? I don't understand fio can
support them without defining the get_cpu_clock() function.

I did my tests on version 1.42, but faced the same issues with the
latest git version.

Thank you in advance.

Cheers,

Michael.

-- 
Michael Opdenacker, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
+ 33 621 604 642


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-16 22:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-10 12:11 Build issue on arm: undefined reference to `get_cpu_clock' Michael Opdenacker
2010-08-10 18:04 ` Jens Axboe
2010-08-12  9:04   ` Michael Opdenacker
2010-08-12 11:49     ` Jens Axboe
2010-08-15 19:03       ` Jens Axboe
2010-08-16 12:59         ` Michael Opdenacker
2010-08-16 22:27           ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox