NanoLog icon indicating copy to clipboard operation
NanoLog copied to clipboard

arm64 Support

Open mhasnainamjad opened this issue 2 years ago • 0 comments

Is Nanolog support arm64 systems? When I try to compile on arm64 based systems, I am getting errors, although working perfectly fine on x86-64 systems. Steps I follow git clone https://github.com/PlatformLab/NanoLog.git . cd runtime make

Complete output of make command.

`rm -f ./.depend g++ -std=c++17 -g -O3 -I. -ItestHelper -I"../googletest/googletest"/include -MM Cycles.cc Util.cc testHelper/GeneratedCode.cc Log.cc NanoLog.cc RuntimeLogger.cc TimeTrace.cc > ./.depend;

g++ -std=c++17 -g -O3 -I. -ItestHelper -I"../googletest/googletest"/include -c Cycles.cc -o Cycles.o In file included from Cycles.cc:24:0:

Cycles.h: In static member function ‘static void PerfUtils::Cycles::init()’:

Cycles.h:46:61: error: impossible constraint in ‘asm’ asm volatile("rdtsc" : "=a" (lo), "=d" (hi)); ^ Cycles.h:46:61: error: impossible constraint in ‘asm’ asm volatile("rdtsc" : "=a" (lo), "=d" (hi)); ^ GNUmakefile:18: recipe for target 'Cycles.o' failed

make: *** [Cycles.o] Error 1`

mhasnainamjad avatar Apr 27 '23 13:04 mhasnainamjad