MBG icon indicating copy to clipboard operation
MBG copied to clipboard

Error compiling on Mac

Open Euphrasiologist opened this issue 1 year ago • 1 comments

Hello,

I'm getting this error when compiling on my M1 Mac:

src/RankBitvector.cpp:9:10: error: unrecognized instruction mnemonic
        __asm__("popcnt %0, %0" : "+r" (x));
                ^
<inline asm>:1:2: note: instantiated into assembly here
        popcnt x0, x0
        ^
src/RankBitvector.cpp:9:10: error: unrecognized instruction mnemonic
        __asm__("popcnt %0, %0" : "+r" (x));
                ^
<inline asm>:1:2: note: instantiated into assembly here
        popcnt x9, x9
        ^
src/RankBitvector.cpp:9:10: error: unrecognized instruction mnemonic
        __asm__("popcnt %0, %0" : "+r" (x));
                ^
<inline asm>:1:2: note: instantiated into assembly here
        popcnt x10, x10
        ^
3 errors generated.
make: *** [obj/RankBitvector.o] Error 1

Any ideas?

Thanks, Max

Euphrasiologist avatar Oct 09 '24 14:10 Euphrasiologist

Same errors, does MBG support macOS?

zxzhang8 avatar Nov 29 '24 11:11 zxzhang8