aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
205 stars 78 forks source link

error when building source on Mac OS Ventura #46

Closed michto36 closed 1 year ago

michto36 commented 1 year ago

hi !

Despite that OSX compatibility issue which has been fixed by @unkernet, I still can't build properly this source :-(

I'm on a Mac M1 with Ventura 13.0 and this is the error I get when I execute the "make" command:

make gcc -std=gnu99 -O3 -march=native solve_bs.c readnonces.c crypto1_bs.c crypto1_bs_crack.c crapto1-v3.3/crapto1.c crapto1-v3.3/crypto1.c -I crapto1-v3.3/ craptev1-v1.1/craptev1.c -I craptev1-v1.1/ -o solve_bs -lpthread -lm clang: error: the clang compiler does not support '-march=native' clang: error: the clang compiler does not support '-march=native' clang: error: the clang compiler does not support '-march=native' clang: error: the clang compiler does not support '-march=native' clang: error: the clang compiler does not support '-march=native' clang: error: the clang compiler does not support '-march=native' clang: error: the clang compiler does not support '-march=native' make: *** [solve_bs] Error

i have tried all others -march options, but same results.

any idea ?

thank you for your time.

michto36 commented 1 year ago

After some researches, with Clang version < 15 you can make it by replacing --march=native by the option -mcpu=apple-m1

and with Clang at latest version ( 15 ), you can leave --march=native and it will works.

Closed for me ! :-)