hi
tried to build https://bugzilla.redhat.com/show_bug.cgi?id=1366839
on arm builder but there is this problem
net_openhft_ticker_impl_JNIClock.cpp:59:25: error: 'rdtsc' was not declared in this scope
any ideas?
thanks in advance
regards
.g
On 23/08/16 12:17, gil wrote:
tried to build https://bugzilla.redhat.com/show_bug.cgi?id=1366839
on arm builder but there is this problem
net_openhft_ticker_impl_JNIClock.cpp:59:25: error: 'rdtsc' was not declared in this scope
any ideas?
Well rdtsc is an x86 assembly instruction to read the processors timestamp counter so you will need to replace that with something portable when not compiling on x86.
Tom
On Tue, 23 Aug 2016 13:17:54 +0200 gil puntogil@libero.it wrote:
hi
tried to build https://bugzilla.redhat.com/show_bug.cgi?id=1366839
on arm builder but there is this problem
net_openhft_ticker_impl_JNIClock.cpp:59:25: error: 'rdtsc' was not declared in this scope
rdtsc is x86 specific instruction for getting the number of ticks (clock), so likely the code in question is x86-specific
Dan
On Tuesday, 23 August 2016 at 13:26, Dan Horák wrote:
On Tue, 23 Aug 2016 13:17:54 +0200 gil puntogil@libero.it wrote:
hi
tried to build https://bugzilla.redhat.com/show_bug.cgi?id=1366839
on arm builder but there is this problem
net_openhft_ticker_impl_JNIClock.cpp:59:25: error: 'rdtsc' was not declared in this scope
rdtsc is x86 specific instruction for getting the number of ticks (clock), so likely the code in question is x86-specific
I'd suggest looking at how GROMACS does it, for example:
https://github.com/gromacs/gromacs/blob/master/src/gromacs/timing/cyclecount...
Do note that the mrrc instruction on ARMv7 will fail with SIGILL, because it's a kernel-mode instruction: https://redmine.gromacs.org/issues/1933
Regards, Dominik