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

Error installation on ubuntu 24. #68

Open
thierotsy opened this issue Jul 24, 2024 · 1 comment
Open

Error installation on ubuntu 24. #68

thierotsy opened this issue Jul 24, 2024 · 1 comment

Comments

@thierotsy
Copy link

Hello everyone,

I want to use BitCracker on Ubuntu 24, but I encountered the error below after executing build.sh.

====== Build BitCracker Hash Extractor ======
rm -rf *.o
rm -rf ../build/bitcracker_hash
gcc bitcracker_hash.c -o bitcracker_hash

====== Build BitCracker Recovery Password generator ======
rm -rf *.o
rm -rf ../build/bitcracker_rpgen
gcc bitcracker_rpgen.c -o bitcracker_rpgen

====== Build BitCracker CUDA version ======
rm -rf *.o
rm -rf ../build/bitcracker_cuda
nvcc -gencode arch=compute_70,code=sm_70 -Xptxas -v -o bitcracker_cuda main.cu cuda_attack.cu utils.cu w_blocks.cu
make: nvcc: Aucun fichier ou dossier de ce type
make: *** [Makefile:4 : bitcracker_cuda] Erreur 127

====== Build BitCracker OpenCL version ======
rm -rf *.o
rm -rf bitcracker_opencl
gcc -I/usr/include -L/usr/lib64 -L/usr/lib -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -cl-std=CL1.2 -O3 -Wextra -o bitcracker_opencl main.c opencl_attack.c utils.c w_blocks.c -lOpenCL
gcc: error: unrecognized command line option ‘-cl-std=CL1.2’; did you mean ‘--std=c11’?
make: *** [Makefile:9 : all] Erreur 1

====== Executables in build directory ======

Can you help me please

@RizinCode
Copy link

RizinCode commented Aug 10, 2024

For all issues which will appear.

  1. Remove -cl-std=CL1.2 (you have -lOpenCL in the end)
  2. Fix 186 line in src_OpenCL/utils.c (remove "}" in the end or will appear another issue if u don't)
  3. Intall needed packages for opencl (tbh these are the ones I installed, probably last one is not needed but idk)
    sudo apt-get update
    sudo apt-get install ocl-icd-opencl-dev
    sudo apt-get install opencl-headers
    sudo apt-get install ocl-icd-libopencl1
    sudo apt-get install opencl-c-headers

This fixed all my issues in the way so hope it will be usefull for people looking for solutions for themselves

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