Re: Build issue on arm: undefined reference to `get_cpu_clock'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/10/2010 08:11 AM, Michael Opdenacker wrote:
> 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.

Indeed, dunno what happened there. I'll take a look.

-- 
Jens Axboe


Confidentiality Notice: This e-mail message, its contents and any attachments to it are confidential to the intended recipient, and may contain information that is privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient, please immediately notify the sender and destroy the original e-mail message and any attachments (and any copies that may have been made) from your system or otherwise. Any unauthorized use, copying, disclosure or distribution of this information is strictly prohibited.
--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux