Compilation errors on both HIP and OpenCL
#1
Trying to use hashcat on my desktop and I just can't get it to work. I'm using Arch Linux and from what I can tell I have all applicable packages installed as well. At first I thought it was some issue with the AUR package but downloading the binary and compiling it from source have the same result. Any help is much appreciated.

Code:
[drew@drew-x670eprors hashcat-6.2.6]$ ./hashcat.bin -b hashcat (v6.2.6) starting in benchmark mode Benchmarking uses hand-optimized kernel code by default. You can use it in your cracking session by setting the -O option. Note: Using optimized kernel code limits the maximum supported password length. To disable the optimized kernel code in benchmark mode, use the -w option. * Device #3: Unstable OpenCL driver detected! This OpenCL driver may fail kernel compilation or produce false negatives. You can use --force to override, but do not report related errors. * Device #4: Unstable OpenCL driver detected! This OpenCL driver may fail kernel compilation or produce false negatives. You can use --force to override, but do not report related errors. /sys/bus/pci/devices/0000:1a:00.0/hwmon/hwmon6/pwm1: No such file or directory HIP API (HIP 6.0.32831) ======================= * Device #1: AMD Radeon RX 7800 XT, 16160/16368 MB, 30MCU * Device #2: AMD Radeon Graphics, 15577/15600 MB, 1MCU OpenCL API (OpenCL 1.1 Mesa 24.2.5-arch1.1) - Platform #1 [Mesa] ================================================================ * Device #3: AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 18.1.8, DRM 3.59, 6.11.4-zen1-1-zen), skipped * Device #4: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 18.1.8, DRM 3.59, 6.11.4-zen1-1-zen), skipped OpenCL API (OpenCL 2.1 AMD-APP.dbg (3602.0)) - Platform #2 [Advanced Micro Devices, Inc.] ========================================================================================= * Device #5: AMD Radeon RX 7800 XT, skipped * Device #6: AMD Radeon Graphics, skipped Benchmark relevant options: =========================== * --optimized-kernel-enable ------------------- * Hash-Mode 0 (MD5) ------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ---------------------- * Hash-Mode 100 (SHA1) ---------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. --------------------------- * Hash-Mode 1400 (SHA2-256) --------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. --------------------------- * Hash-Mode 1700 (SHA2-512) --------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ------------------------------------------------------------- * Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL) [Iterations: 4095] ------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ----------------------- * Hash-Mode 1000 (NTLM) ----------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. --------------------- * Hash-Mode 3000 (LM) --------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------- * Hash-Mode 5500 (NetNTLMv1 / NetNTLMv1+ESS) -------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ---------------------------- * Hash-Mode 5600 (NetNTLMv2) ---------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------------------- * Hash-Mode 1500 (descrypt, DES (Unix), Traditional DES) -------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ------------------------------------------------------------------------------ * Hash-Mode 500 (md5crypt, MD5 (Unix), Cisco-IOS $1$ (MD5)) [Iterations: 1000] ------------------------------------------------------------------------------ hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ---------------------------------------------------------------- * Hash-Mode 3200 (bcrypt $2*$, Blowfish (Unix)) [Iterations: 32] ---------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------------------------------- * Hash-Mode 1800 (sha512crypt $6$, SHA512 (Unix)) [Iterations: 5000] -------------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------------------- * Hash-Mode 7500 (Kerberos 5, etype 23, AS-REQ Pre-Auth) -------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ------------------------------------------------- * Hash-Mode 13100 (Kerberos 5, etype 23, TGS-REP) ------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. --------------------------------------------------------------------------------- * Hash-Mode 15300 (DPAPI masterkey file v1 (context 1 and 2)) [Iterations: 23999] --------------------------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. --------------------------------------------------------------------------------- * Hash-Mode 15900 (DPAPI masterkey file v2 (context 1 and 2)) [Iterations: 12899] --------------------------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ------------------------------------------------------------------ * Hash-Mode 7100 (macOS v10.8+ (PBKDF2-SHA512)) [Iterations: 1023] ------------------------------------------------------------------ hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. --------------------------------------------- * Hash-Mode 11600 (7-Zip) [Iterations: 16384] --------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ------------------------------------------------ * Hash-Mode 12500 (RAR3-hp) [Iterations: 262144] ------------------------------------------------ hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------- * Hash-Mode 13000 (RAR5) [Iterations: 32799] -------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------------------------------------------- * Hash-Mode 6211 (TrueCrypt RIPEMD160 + XTS 512 bit (legacy)) [Iterations: 1999] -------------------------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ----------------------------------------------------------------------------------- * Hash-Mode 13400 (KeePass 1 (AES/Twofish) and KeePass 2 (AES)) [Iterations: 24569] ----------------------------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. ---------------------------------------------------------------- * Hash-Mode 6800 (LastPass + LastPass sniffed) [Iterations: 499] ---------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. -------------------------------------------------------------------- * Hash-Mode 11300 (Bitcoin/Litecoin wallet.dat) [Iterations: 200459] -------------------------------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION error: unknown argument: '-flegacy-pass-manager' 1 error generated when compiling for gfx1101. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. * Device #1: Kernel /home/drew/Desktop/hashcat-6.2.6/OpenCL/shared.cl build failed. Started: Sun Oct 20 05:37:34 2024 Stopped: Sun Oct 20 05:38:02 2024
Reply
#2
first try the git version of hashcat, as the latest release on the downloadpage is quite old

error: unknown argument: '-flegacy-pass-manager'

LLVM removed this flag, so its more or less an LLVM problem or hahscat still using this flag, dunno whether this was fixed in the git version but i would try this first

anyway if this not works, you can try option -d 5,6 to use the opencl 2.1 version backend (warning regarding device 3,4 which is the opencl 1.1, which is really old), 1,2 refers to the HIP backend, clamping hahscat to -d 5,6 should work
Reply
#3
(10-21-2024, 10:09 AM)Snoopy Wrote: first try the git version of hashcat, as the latest release on the downloadpage is quite old

error: unknown argument: '-flegacy-pass-manager'

LLVM removed this flag, so its more or less an LLVM problem or hahscat still using this flag, dunno whether this was fixed in the git version but i would try this first

anyway if this not works, you can try option -d 5,6 to use the opencl 2.1 version backend (warning regarding device 3,4 which is the opencl 1.1, which is really old), 1,2 refers to the HIP backend, clamping hahscat to -d 5,6 should work

Using those options does enable it to work at pretty decent speeds so thank you for that. Also interestingly the git built version throws a different error in place of the "-flegacy-pass-manager" 

Code:
* Hash-Mode 5500 (NetNTLMv1 / NetNTLMv1+ESS) -------------------------------------------- hiprtcCompileProgram(): HIPRTC_ERROR_COMPILATION lld: error: undefined hidden symbol: __ockl_get_group_id >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_decompress) >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_decompress) >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_memset) >>> referenced 7 more times lld: error: undefined hidden symbol: __ockl_get_local_size >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_decompress) >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_decompress) >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_memset) >>> referenced 7 more times lld: error: undefined hidden symbol: __ockl_get_local_id >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_decompress) >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_decompress) >>> referenced by /home/drew/.local/share/hashcat/comgr-04123e/input/LLVMBitcode.bc.o:(gpu_memset) >>> referenced 7 more times * Device #1: Kernel /usr/local/share/hashcat/OpenCL/shared.cl build failed. * Device #1: Kernel /usr/local/share/hashcat/OpenCL/shared.cl build failed.
Reply