CleanedBitCrack icon indicating copy to clipboard operation
CleanedBitCrack copied to clipboard

Not building on Apple M1 (arm64)

Open eztam- opened this issue 4 years ago • 23 comments

Hi,

I'm trying to build with make BUILD_OPENCL=1 on MacBook with M1 (arm64 architecture). I'm getting many warnings of this kind: ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/liblogger.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libcommonutils.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libsecp256k1.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libkeyfinder.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libcryptoutil.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libaddressutil.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libclutil.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libCLKeySearchDevice.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/x/src/CleanedBitCrack/lib/libcmdparse.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

in the end the build fails with:

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [all] Error 1

Is there a way to build it for arm64 with OpenCL?

Thanks a lot!

eztam- avatar Nov 16 '21 20:11 eztam-

i got same error

BarhamAA avatar Nov 17 '21 12:11 BarhamAA

Hello,

Am sorry about that, but this is designed for GPU usage arm in not included.

But this needs fixing and readme notice, Thanks! For the reminder.

--

Merruk Technology, SARL. www.merruk.com

Maroc-OS avatar Nov 17 '21 18:11 Maroc-OS

Hello Maroc-OS

thank you for replay, please just put one release for this code (compiled version as release).

appreciate your help @Maroc-OS

BarhamAA avatar Nov 18 '21 09:11 BarhamAA

@Maroc-OS I'd like to offer my help, to fix the build on arm64. I have quite OK C skills, however they seem to be not good enough so that I'm able to spot the actual issue. But with some guidance from you, I might be able to fix it. So, please just give me some guidance on where to start if you think that might help.

eztam- avatar Nov 27 '21 10:11 eztam-

Hello,

Thank for your offer.

Making it compile and run is not the issue here. But arm doesn’t have dedicated GPU to compute the same way as nvidia/amd/intel ones, thats the real issue.

OpenCL doesn’t completely support Apple’s SoC, as i know: does it??

I did not make any researches about this but ll keep this issue open for now until i get some time to make sure its not going to work.

--

Merruk Technology, SARL. www.merruk.com

Maroc-OS avatar Nov 27 '21 18:11 Maroc-OS

bro, will you fix this issue?? and make it run with M1 GPU is awesome

AsicPrince avatar Jun 22 '22 23:06 AsicPrince

hello Maroc-OS

take a look AT hashcat from matrix see:Hashcat-M1/matrix

OpenCL works on M1 Macs ... you only need for power (pro/max) Modell not the base

hope you can use it

Smiril avatar Aug 13 '22 14:08 Smiril

Are there any news, if bitcrack can run on M1 chips?

eztam- avatar Jun 01 '24 18:06 eztam-