Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <d68f5b38dab35688a65862a24ed1031e@smtp.hushmail.com>
Date: Tue, 03 Jul 2012 23:18:22 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
CC: 
 reply+i-5416652-37812214903daff14fdfbe39acc77a8c475a66b1-1268598@...ly.github.com
Subject: OSX problems with Jumbo-6 OpenCL (was: Fwd: [magnum-jumbo] Successful
 compile doesn't work macosx-x86-64-opencl (#50))

I am forwarding this to the john-dev mailing list. To me it seems you
need to fix your OpenCL paths in Makefile.

magnum


-------- Original Message --------
Subject: [magnum-jumbo] Successful compile doesn't work
macosx-x86-64-opencl (#50)
Date: Tue, 3 Jul 2012 14:05:06 -0700
From: Rob Fuller
<reply+i-5416652-37812214903daff14fdfbe39acc77a8c475a66b1-1268598@...ly.github.com>
To: magnum <john.magnum@...hmail.com>

Downloaded from the OpenWall site and making the unsigned int / uint
changes I was able to compile with the following errors:

```
md5u_fmt_plug.o salted_sha1_fmt_plug.o sapB_fmt_plug.o sapG_fmt_plug.o
sha1_gen_fmt_plug.o sip_fmt_plug.o vnc_fmt_plug.o wbb3_fmt_plug.o
rawSHA1_ng_fmt.o plugin.o dummy.o batch.o bench.o charset.o common.o
compiler.o config.o cracker.o crc32.o external.o formats.o getopt.o
idle.o inc.o john.o list.o loader.o logger.o math.o memory.o misc.o
options.o params.o path.o recovery.o rpp.o rules.o signals.o single.o
status.o tty.o wordlist.o mkv.o mkvlib.o fake_salts.o win32_memmap.o
unicode.o unshadow.o unafs.o undrop.o unique.o common-opencl.o
common_opencl_pbkdf2.o opencl_mysqlsha1_fmt.o opencl_cryptmd5_fmt.o
opencl_phpass_fmt.o opencl_rawsha1_fmt.o opencl_nt_fmt.o
opencl_rawmd5_fmt.o opencl_nsldaps_fmt.o opencl_cryptsha512_fmt.o
opencl_mscash2_fmt.o opencl_wpapsk_fmt.o opencl_xsha512_fmt.o
opencl_rawsha512_fmt.o opencl_bf_std.o opencl_bf_fmt.o
opencl_pwsafe_fmt.o x86-64.o sse-intrinsics.o -s -L/usr/local/lib
-L/usr/local/ssl/lib -lssl -lcrypto -lm -lz    -m64 -L/usr/local/cuda/li
 b/x86_64 -L/lib64 -framework OpenCL -o ../run/john
ld: warning: directory not found for option '-L/usr/local/ssl/lib'
ld: warning: directory not found for option '-L/usr/local/cuda/lib/x86_64'
ld: warning: directory not found for option '-L/lib64'
ld: warning: option -s is obsolete and being ignored
rm -f ../run/unshadow
ln -s john ../run/unshadow
rm -f ../run/unafs
ln -s john ../run/unafs
rm -f ../run/unique
ln -s john ../run/unique
rm -f ../run/undrop
ln -s john ../run/undrop
rm -f ../run/ssh2john
ln -s john ../run/ssh2john
rm -f ../run/pdf2john
ln -s john ../run/pdf2john
rm -f ../run/rar2john
ln -s john ../run/rar2john
rm -f ../run/zip2john
ln -s john ../run/zip2john
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -m64
-I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0
-Wno-deprecated-declarations -funroll-loops genmkvpwd.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -m64
-I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0
-Wno-deprecated-declarations -funroll-loops -D_JOHN_MISC_NO_LOG misc.c
-o miscnl.o
gcc genmkvpwd.o mkvlib.o memory.o miscnl.o -s -L/usr/local/lib
-L/usr/local/ssl/lib -lssl -lcrypto -lm -lz    -m64
-L/usr/local/cuda/lib/x86_64 -L/lib64 -framework OpenCL -o ../run/genmkvpwd
ld: warning: directory not found for option '-L/usr/local/ssl/lib'
ld: warning: directory not found for option '-L/usr/local/cuda/lib/x86_64'
ld: warning: directory not found for option '-L/lib64'
ld: warning: option -s is obsolete and being ignored
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -m64
-I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0
-Wno-deprecated-declarations -funroll-loops mkvcalcproba.c
gcc mkvcalcproba.o -s -L/usr/local/lib -L/usr/local/ssl/lib -lssl
-lcrypto -lm -lz    -m64 -L/usr/local/cuda/lib/x86_64 -L/lib64
-framework OpenCL -o ../run/mkvcalcproba
ld: warning: directory not found for option '-L/usr/local/ssl/lib'
ld: warning: directory not found for option '-L/usr/local/cuda/lib/x86_64'
ld: warning: directory not found for option '-L/lib64'
ld: warning: option -s is obsolete and being ignored
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -m64
-I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0
-Wno-deprecated-declarations -funroll-loops calc_stat.c
gcc calc_stat.o -s -L/usr/local/lib -L/usr/local/ssl/lib -lssl -lcrypto
-lm -lz    -m64 -L/usr/local/cuda/lib/x86_64 -L/lib64 -framework OpenCL
-o ../run/calc_stat
ld: warning: directory not found for option '-L/usr/local/ssl/lib'
ld: warning: directory not found for option '-L/usr/local/cuda/lib/x86_64'
ld: warning: directory not found for option '-L/lib64'
ld: warning: option -s is obsolete and being ignored
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -m64
-I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0
-Wno-deprecated-declarations -funroll-loops tgtsnarf.c
gcc tgtsnarf.o -s -L/usr/local/lib -L/usr/local/ssl/lib -lssl -lcrypto
-lm -lz    -m64 -L/usr/local/cuda/lib/x86_64 -L/lib64 -framework OpenCL
-o ../run/tgtsnarf
ld: warning: directory not found for option '-L/usr/local/ssl/lib'
ld: warning: directory not found for option '-L/usr/local/cuda/lib/x86_64'
ld: warning: directory not found for option '-L/lib64'
ld: warning: option -s is obsolete and being ignored
rm -f ../run/racf2john
ln -s john ../run/racf2john
make[1]: Nothing to be done for `../run/mozilla2john'.
rm -f ../run/hccap2john
ln -s john ../run/hccap2john
rm -f ../run/pwsafe2john
ln -s john ../run/pwsafe2john
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include     -m64
-I/usr/local/cuda/include -DBSD -DCL_VERSION_1_0
-Wno-deprecated-declarations -funroll-loops raw2dyna.c
gcc raw2dyna.o -s -L/usr/local/lib -L/usr/local/ssl/lib -lssl -lcrypto
-lm -lz    -m64 -L/usr/local/cuda/lib/x86_64 -L/lib64 -framework OpenCL
-o ../run/raw2dyna
ld: warning: directory not found for option '-L/usr/local/ssl/lib'
ld: warning: directory not found for option '-L/usr/local/cuda/lib/x86_64'
ld: warning: directory not found for option '-L/lib64'
ld: warning: option -s is obsolete and being ignored
rm -f ../run/keepass2john
ln -s john ../run/keepass2john
[ -f ../run/john.local.conf ] || touch ../run/john.local.conf
cp opencl/*.cl ../run/
cp opencl_*.h ../run/
```

which resuts in:
```
/opt/john-1.7.9-jumbo-6/run $ ./john md5test.txt --format=raw-md5-opencl
OpenCL platform 0: Apple, 2 device(s).
Using device 0: Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
Max local work size 1024 Error -54
Error -54
Error -54
Error -54
Error -54
Error -54
Error -54
Error -54
Error -54
Error -54
Optimal local work size 1
(to avoid this test on next run do export LWS=1)
Local work size (LWS) 1, Global work size (GWS) 2097152
Loaded 1 password hash (Raw MD5 [OpenCL])
guesses: 0  time: 0:00:00:05 99.90% (1) (ETA: Tue Jul  3 16:34:44 2012)
 c/s: 0.00
guesses: 0  time: 0:00:00:10 98.24% (2) (ETA: Tue Jul  3 16:34:49 2012)
 c/s: 76.88  trying: 123456 - Sssing
Session aborted
/opt/john-1.7.9-jumbo-6/run $ ./john md5test.txt --format=raw-md5-opencl
--device=1
OpenCL platform 0: Apple, 2 device(s).
Using device 1: GeForce GT 330M
Compilation log: Error getting function data from server
OpenCL error (CL_INVALID_PROGRAM_EXECUTABLE) in file
(opencl_rawmd5_fmt.c) at line (218) - (Error creating kernel.
Double-check kernel name?)
```
And if this helps here is the device list:
```
/opt/john-1.7.9-jumbo-6/run$ ./john --list=opencl-devices
Platform #0 name: Apple
Platform version: OpenCL 1.1 (Apr  9 2012 19:41:45)
	Device #0 name:		Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
	Device vendor:		Intel
	Device type:		CPU (LE)
	Device version:		OpenCL 1.1
	Driver version:		1.1
	Global Memory:		8192 MB
	Global Memory Cache:	64 bytes
	Local Memory:		32 KB (Global)
	Max clock (MHz) :	2660
	Max Work Group Size:	1024
	Parallel compute cores:	4

	Device #1 name:		GeForce GT 330M
	Device vendor:		NVIDIA
	Device type:		GPU (LE)
	Device version:		OpenCL 1.0
	Driver version:		CLH 1.0
	Global Memory:		512 MB
	Global Memory Cache:	0 bytes
	Local Memory:		16 KB (Local)
	Max clock (MHz) :	1100
	Max Work Group Size:	512
	Parallel compute cores:	6
	Stream processors:	48  (6 x 8)
```

---
Reply to this email directly or view it on GitHub:
https://github.com/magnumripper/magnum-jumbo/issues/50




Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.