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

app m1 run pkzip error #3527

Closed
ws1922667298 opened this issue Dec 6, 2022 · 3 comments
Closed

app m1 run pkzip error #3527

ws1922667298 opened this issue Dec 6, 2022 · 3 comments

Comments

@ws1922667298
Copy link

run

sudo ./hashcat -a 3 -m 17200  --force '$pkzip2$1*1*2*0*0*10bf6655*94d3fb19*0*59*8*0*94d3*7264**$/pkzip2$'

message

hc_mtlCreateLibraryWithSource(): failed to create metal library, In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:57:17: error: typedef redefinition with different types ('ulong' (aka 'unsigned long') vs 'struct __Reserved_Name__Do_not_use_ullong')
typedef ulong   ullong;
                ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:51: note: previous definition is here
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
                                                  ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:58:17: error: typedef redefinition with different types ('ulong2' (vector of 2 'unsigned long' values) vs 'struct __Reserved_Name__Do_not_use_ullong2')
typedef ulong2  ullong2;
                ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_extended_vector:114:52: note: previous definition is here
typedef struct __Reserved_Name__Do_not_use_ullong2 ullong2;
                                                   ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:59:17: error: typedef redefinition with different types ('ulong4' (vector of 4 'unsigned long' values) vs 'struct __Reserved_Name__Do_not_use_ullong4')
typedef ulong4  ullong4;
                ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_extended_vector:116:52: note: previous definition is here
typedef struct __Reserved_Name__Do_not_use_ullong4 ullong4;
                                                   ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:60:17: error: typedef redefinition with different types ('ulong8' (aka '__Reserved_Name__Do_not_use_ulong8') vs 'struct __Reserved_Name__Do_not_use_ullong8')
typedef ulong8  ullong8;
                ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_extended_vector:117:52: note: previous definition is here
typedef struct __Reserved_Name__Do_not_use_ullong8 ullong8;
                                                   ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:61:17: error: typedef redefinition with different types ('ulong16' (aka '__Reserved_Name__Do_not_use_ulong16') vs 'struct __Reserved_Name__Do_not_use_ullong16')
typedef ulong16 ullong16;
                ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_extended_vector:118:53: note: previous definition is here
typedef struct __Reserved_Name__Do_not_use_ullong16 ullong16;
                                                    ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:894:7: error: field has incomplete type 'u64' (aka '__Reserved_Name__Do_not_use_ullong')
  u64 v32;
      ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:16: note: forward declaration of '__Reserved_Name__Do_not_use_ullong'
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
               ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:916:7: error: field has incomplete type 'u64' (aka '__Reserved_Name__Do_not_use_ullong')
  u64 v64;
      ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:16: note: forward declaration of '__Reserved_Name__Do_not_use_ullong'
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
               ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:1699:7: error: field has incomplete type 'u64' (aka '__Reserved_Name__Do_not_use_ullong')
  u64 pws_pos;              // 35
      ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:16: note: forward declaration of '__Reserved_Name__Do_not_use_ullong'
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
               ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:1700:7: error: field has incomplete type 'u64' (aka '__Reserved_Name__Do_not_use_ullong')
  u64 gid_max;              // 36
      ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:16: note: forward declaration of '__Reserved_Name__Do_not_use_ullong'
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
               ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:1732:7: error: field has incomplete type 'u64' (aka '__Reserved_Name__Do_not_use_ullong')
  u64 val;
      ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:16: note: forward declaration of '__Reserved_Name__Do_not_use_ullong'
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
               ^
In file included from program_source:8:
/Users/wangshang/hashcat/OpenCL/inc_types.h:1779:8: error: field has incomplete type 'u64' (aka '__Reserved_Name__Do_not_use_ullong')
  u64  gidvid;
       ^
/System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.660/include/metal/metal_types:35:16: note: forward declaration of '__Reserved_Name__Do_not_use_ullong'
typedef struct __Reserved_Name__Do_not_use_ullong ullong;
               ^
In file included from program_source:9:
In file included from /Users/wangshang/hashcat/OpenCL/inc_platform.cl:8:
/Users/wangshang/hashcat/OpenCL/inc_platform.h:9:38: error: unknown type name '__global'
DECLSPEC u32 hc_atomic_dec (volatile GLOBAL_AS u32 *p);
                                     ^
/Users/wangshang/hashcat/OpenCL/inc_vendor.h:62:21: note: expanded from macro 'GLOBAL_AS'
#define GLOBAL_AS   __global
                    ^
In file included from program_source:9:
In file included from /Users/wangshang/hashcat/OpenCL/inc_platform.cl:8:
/Users/wangshang/hashcat/OpenCL/inc_platform.h:9:52: error: expected ')'
DECLSPEC u32 hc_atomic_dec (volatile GLOBAL_AS u32 *p);
                                                   ^
/Users/wangshang/hashcat/OpenCL/inc_platform.h:9:28: note: to match this '('
DECLSPEC u32 hc_atomic_dec (volatile GLOBAL_AS u32 *p);
                           ^
/Users/wangshang/hashcat/OpenCL/inc_platform.h:10:38: error: unknown type name '__global'
DECLSPEC u32 hc_atomic_inc (volatile GLOBAL_AS u32 *p);
                                     ^
/Users/wangshang/hashcat/OpenCL/inc_vendor.h:62:21: note: expanded from macro 'GLOBAL_AS'
#define GLOBAL_AS   __global
                    ^
In file included from program_source:9:
In file included from /Users/wangshang/hashcat/OpenCL/inc_platform.cl:8:
/Users/wangshang/hashcat/OpenCL/inc_platform.h:10:52: error: expected ')'
DECLSPEC u32 hc_atomic_inc (volatile GLOBAL_AS u32 *p);
                                                   ^
/Users/wangshang/hashcat/OpenCL/inc_platform.h:10:28: note: to match this '('
DECLSPEC u32 hc_atomic_inc (volatile GLOBAL_AS u32 *p);
                           ^
/Users/wangshang/hashcat/OpenCL/inc_platform.h:11:38: error: unknown type name '__global'
DECLSPEC u32 hc_atomic_or  (volatile GLOBAL_AS u32 *p, volatile const u32 val);
                                     ^
/Users/wangshang/hashcat/OpenCL/inc_vendor.h:62:21: note: expanded from macro 'GLOBAL_AS'
#define GLOBAL_AS   __global
                    ^
In file included from program_source:9:
In file included from /Users/wangshang/hashcat/OpenCL/inc_platform.cl:8:
/Users/wangshang/hashcat/OpenCL/inc_platform.h:11:52: error: expected ')'
DECLSPEC u32 hc_atomic_or  (volatile GLOBAL_AS u32 *p, volatile const u32 val);
                                                   ^
/Users/wangshang/hashcat/OpenCL/inc_platform.h:11:28: note: to match this '(

* Device #1: Kernel /Users/wangshang/hashcat/OpenCL/shared.cl build failed.

hashcat -I

hashcat (v6.2.6) starting in backend information mode

Metal Info:
===========

Metal.Version.: 306.2.4

Backend Device ID #1
  Type...........: GPU
  Vendor.ID......: 2
  Vendor.........: Apple
  Name...........: Apple M1
  Processor(s)...: 7
  Clock..........: N/A
  Memory.Total...: 10922 MB (limited to 4096 MB allocatable in one block)
  Memory.Free....: 5408 MB
  Local.Memory...: 32 KB
  Phys.Location..: built-in
  Feature.Set....: macOS GPU Family 2 v1
  Registry.ID....: 1431
  Max.TX.Rate....: N/A
  GPU.Properties.: headless 0, low-power 0, removable 0

OpenCL Info:
============

OpenCL Platform ID #1
  Vendor..: Apple
  Name....: Apple
  Version.: OpenCL 1.2 (Sep 30 2022 01:38:14)

  Backend Device ID #2
    Type...........: GPU
    Vendor.ID......: 2
    Vendor.........: Apple
    Name...........: Apple M1
    Version........: OpenCL 1.2 
    Processor(s)...: 8
    Clock..........: 1000
    Memory.Total...: 10922 MB (limited to 1024 MB allocatable in one block)
    Memory.Free....: 5408 MB
    Local.Memory...: 32 KB
    OpenCL.Version.: OpenCL C 1.2 
    Driver.Version.: 1.2 1.0
@Chick3nman
Copy link
Contributor

This appears to be the same errors as #3525, possible duplicate. Please retry with the latest code in the repo as some of the MacOS related code has been updated since the 6.2.6 release.

@ws1922667298
Copy link
Author

I tried move hashcat to ~ and sudo make and my hashcat version is 6.2.6 but the problem is still here;
I have a 2 version ,one is brew install hashcat another one is download by github after make;

@matrix
Copy link
Member

matrix commented Dec 8, 2022

Hi, this module does not work with Metal. If you run hashcat without --force it should be clearly shown

@matrix matrix closed this as completed Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants