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

How to compile on Ubuntu? #3

Open
noeldum opened this issue Jan 26, 2020 · 1 comment
Open

How to compile on Ubuntu? #3

noeldum opened this issue Jan 26, 2020 · 1 comment

Comments

@noeldum
Copy link

noeldum commented Jan 26, 2020

make build ARCH=x86-64

I tried the above but it returns
undefined reference to `PopCnt16'

@GiacobboNicola
Copy link

GiacobboNicola commented Mar 6, 2022

Hi!
I'm facing the same error.
My solution was to modify the util.h file:
#ifndef USE_POPCNT
extern uint8_t PopCnt16[1 << 16];
union {
uint64_t bb;
uint16_t u[4];
} v = { b };
return PopCnt16[v.u[0]] + PopCnt16[v.u[1]] + PopCnt16[v.u[2]] + PopCnt16[v.u[3]];
#el
if defined(_MSC_VER) || defined(__INTEL_COMPILER)

After that I was able to compile running make build ARCH=x86-64

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

2 participants