Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 Support #69

Open
mhasnainamjad opened this issue Apr 27, 2023 · 0 comments
Open

arm64 Support #69

mhasnainamjad opened this issue Apr 27, 2023 · 0 comments

Comments

@mhasnainamjad
Copy link

mhasnainamjad commented Apr 27, 2023

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant