Java-Thread-Affinity icon indicating copy to clipboard operation
Java-Thread-Affinity copied to clipboard

Fix TeamCity ARM build

Open JerryShea opened this issue 1 year ago • 3 comments

Appears to be an issue with compilation of the native affinity code on ARM via g++. Have reached out to Roger for comment, pointers.

JerryShea avatar Jun 27 '23 22:06 JerryShea

See TeamCity

JerryShea avatar Jun 25 '24 03:06 JerryShea

@JerryShea - reproduced this and here's the g++ output:

net_openhft_ticker_impl_JNIClock.cpp:65:19: error: ‘rdtsc’ was not declared in this scope
   65 |    return (jlong) rdtsc();

AFAIK fails due to rdtsc not existing on ARM but Roger will have better detail.

The build can be fixed up with the following PR (tested locally on ARM at time of writing) https://github.com/OpenHFT/Java-Thread-Affinity/pull/128

@rogersimmons / @JerryShea do you know much about this JNIClock impl? No hits for it in the wider codebase

tgd avatar Jun 25 '24 22:06 tgd

Fix for 32 and 64 bit ARM now available in https://github.com/OpenHFT/Java-Thread-Affinity/pull/129

rogersimmons avatar Jun 26 '24 08:06 rogersimmons