error: unknown target CPU 'generic'
#1
Exclamation 
Hello all, 

Running The-Distribution-Which-Does-Not-Handle-OpenCL-Well (Kali), apt upgrade/update/dist-upgrade - This is a VM on ESXI - please let me know if you need additional information. Any help on resolving this would be great!  





Code:
┌──(bruhhh㉿pen-15)-[~]
└─$ hashcat -a 0 -m 3200 hash.txt /usr/share/wordlists/rockyou.txt
hashcat (v6.2.5) starting

OpenCL API (OpenCL 2.0 pocl 1.8  Linux, None+Asserts, RELOC, LLVM 11.1.0, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project]
=====================================================================================================================================
* Device #1: pthread-AMD Ryzen 7 5700G with Radeon Graphics, 2904/5872 MB (1024 MB allocatable), 4MCU

Minimum password length supported by kernel: 0
Maximum password length supported by kernel: 72

Hashes: 1 digests; 1 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
Rules: 1

Optimizers applied:
* Zero-Byte
* Single-Hash
* Single-Salt

Watchdog: Temperature abort trigger set to 90c

[color=#ff857a]clBuildProgram(): CL_BUILD_PROGRAM_FAILURE[/color]

error: unknown target CPU 'generic'
Device pthread-AMD Ryzen 7 5700G with Radeon Graphics failed to build the program, log: error: unknown target CPU 'generic'

[color=#ff857a]* Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.[/color]

Started: Wed Mar 30 14:42:36 2022
Stopped: Wed Mar 30 14:42:36 2022


Someone else made a similar thread but he used the --force flag.  I'm not using --force but receiving the following error: 

https://hashcat.net/forum/thread-10634.html
Reply
#2
I didn't put the "The-Distribution-Which-Does-Not-Handle-OpenCL-Well" - looks like a rule that auto appends
Reply
#3
Remove POCL, install ROCM, install OPENCL DRIVERS for your AMD CPU. Everything is detailed on the homepage. Also note, using Hashcat on a VM makes things even more complicated in getting things to work.
Reply
#4
(03-31-2022, 02:21 AM)slyexe Wrote: Remove POCL, install ROCM, install OPENCL DRIVERS for your AMD CPU. Everything is detailed on the homepage. Also note, using Hashcat on a VM makes things even more complicated in getting things to work.

Thanks for the reply - yea, I was reading about the VM issues - Being a beginner is tough and I appreciate you sharing insight/knowledge.  Even though its on the homepage a point in the right direction is great! ty ty
Reply
#5
Using Hashcat on a VM with your AMD CPU, you just need to install POCL by using the following command : "sudo apt install pocl-opencl-icd". It works just fine!!
Reply