[GH-ISSUE #707] OpenCL error on OSX after successfull compilation with GCC-4.9 #354

Closed
opened 2026-10-14 03:02:36 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @donovan0 on GitHub (Aug 3, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/707

Hi,
Sorry to double post, i didn't no if that tech' errors issues depend to the John-Users M.List or here on Github list.

So here the facts ;

From this post = http://comments.gmane.org/gmane.comp.security.openwall.john.user/7450

( look my last post )

I finaly upgrade as well my system : Openssl last version & GCC-4.9 as well, i got a successfull compilation, but opencl don't work anymore ...

Here the details

Same machine & OS version : 1.8.5

Homebrew updates :

Openssl = OpenSSL 1.0.1h 5 Jun 2014

GCC = gcc (Homebrew gcc49 4.9.0) 4.9.0

Symlinks added as well + paths env ok ;

cat .bash_profile
export PATH=/usr/local/bin:$PATH
export ARCHFLAGS=-arch x86_64
export CC=/usr/local/bin/gcc-4.9

  1. From John's "src" directory:
    cp -avi osx_as_wrapper.sh /usr/local/bin/as

./configure CC=/usr/local/bin/gcc-4.9

........
...

Configured for building John the Ripper 1.8.0.2-bleeding-jumbo:

Target CPU .................................. x86_64 AVX, 64-bit LE
AES-NI support .............................. depends on OpenSSL
Target OS ................................... darwin12.5.0
Cross compiling ............................. no
Legacy arch header .......................... x86-64.h
OpenMPI support (default disabled) .......... no
Fork support ................................ yes
OpenMP support .............................. yes
OpenCL support .............................. yes
CUDA support ................................ no
Generic crypt(3) format ..................... yes

Optional libraries found:
Rexgen (extra cracking mode) ................ no
GMP (performance) ........................... no
NSS/NSPR (Mozilla format) ................... no
Kerberos5 (krb5-18/23 formats) .............. yes (Heimdal w/ MKShim)
PCAP (vncpcap2john and SIPdump) ............. yes
BZ2 (gpg2john extra decompression logic) .... yes

Install missing libraries to get any needed features that were omitted.

Configure finished. Do 'make -s' to compile.

MacBookPro:src xxx$ make -s
DES_std.c: In function 'DES_std_set_key':
DES_std.c:637:17: warning: array subscript is above array bounds
[-Warray-bounds]
while (DES_key[i++]) k += 2;
^
ar: creating archive aes.a

Make process completed.


Tests & bench on TOP on CPU but OPENCL DON'T work anymore !

./john --format=descrypt --test
Will run 8 OpenMP threads
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]...
(8xOMP) DONE
Many salts: 15269K c/s real, 2579K c/s virtual
Only one salt: 13271K c/s real, 2391K c/s virtual

./john --format=raw-md5 --test
Will run 8 OpenMP threads
Benchmarking: Raw-MD5 [MD5 128/128 AVX 12x]... (8xOMP) DONE
Raw: 54755K c/s real, 18624K c/s virtual


Here the Opencl errors ;

./john --format=raw-md5-opencl --test
Benchmarking: Raw-MD5-opencl [MD5 OpenCL (inefficient, development use
only)]... Device 1: ATI Radeon HD 6750M
Build log: :18:10: fatal error: 'opencl_device_info.h' file
not found

include "opencl_device_info.h"

     ^

Error -11 building kernel. DEVICE_INFO=1090
OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line
(763) - (clBuildProgram failed.)

./john --format=descrypt-opencl --test
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Device
1: ATI Radeon HD 6750M
Build log: :60:10: fatal error: 'opencl_DES_WGS.h' file not
found

include "opencl_DES_WGS.h"

     ^

Error -11 building kernel. DEVICE_INFO=1090
OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line
(763) - (clBuildProgram failed.)


Any help are welcome,

Thank you !

Don.

Originally created by @donovan0 on GitHub (Aug 3, 2014). Original GitHub issue: https://github.com/openwall/john/issues/707 Hi, Sorry to double post, i didn't no if that tech' errors issues depend to the John-Users M.List or here on Github list. So here the facts ; From this post = http://comments.gmane.org/gmane.comp.security.openwall.john.user/7450 ( look my last post ) I finaly upgrade as well my system : Openssl last version & GCC-4.9 as well, i got a successfull compilation, but opencl don't work anymore ... Here the details Same machine & OS version : 1.8.5 Homebrew updates : Openssl = OpenSSL 1.0.1h 5 Jun 2014 GCC = gcc (Homebrew gcc49 4.9.0) 4.9.0 Symlinks added as well + paths env ok ; cat .bash_profile export PATH=/usr/local/bin:$PATH export ARCHFLAGS=-arch x86_64 export CC=/usr/local/bin/gcc-4.9 + 1. From John's "src" directory: cp -avi osx_as_wrapper.sh /usr/local/bin/as --- ./configure CC=/usr/local/bin/gcc-4.9 ........ ... # Configured for building John the Ripper 1.8.0.2-bleeding-jumbo: Target CPU .................................. x86_64 AVX, 64-bit LE AES-NI support .............................. depends on OpenSSL Target OS ................................... darwin12.5.0 Cross compiling ............................. no Legacy arch header .......................... x86-64.h OpenMPI support (default disabled) .......... no Fork support ................................ yes OpenMP support .............................. yes OpenCL support .............................. yes CUDA support ................................ no Generic crypt(3) format ..................... yes Optional libraries found: Rexgen (extra cracking mode) ................ no GMP (performance) ........................... no NSS/NSPR (Mozilla format) ................... no Kerberos5 (krb5-18/23 formats) .............. yes (Heimdal w/ MKShim) PCAP (vncpcap2john and SIPdump) ............. yes BZ2 (gpg2john extra decompression logic) .... yes Install missing libraries to get any needed features that were omitted. Configure finished. Do 'make -s' to compile. # MacBookPro:src xxx$ make -s DES_std.c: In function 'DES_std_set_key': DES_std.c:637:17: warning: array subscript is above array bounds [-Warray-bounds] while (DES_key[i++]) k += 2; ^ ar: creating archive aes.a Make process completed. --- Tests & bench on TOP on CPU _but OPENCL DON'T work anymore !_ ./john --format=descrypt --test Will run 8 OpenMP threads Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]... (8xOMP) DONE Many salts: _15269K_ c/s real, 2579K c/s virtual Only one salt: 13271K c/s real, 2391K c/s virtual ./john --format=raw-md5 --test Will run 8 OpenMP threads Benchmarking: Raw-MD5 [MD5 128/128 AVX 12x]... (8xOMP) DONE Raw: 54755K c/s real, 18624K c/s virtual --- Here the Opencl errors ; ./john --format=raw-md5-opencl --test Benchmarking: Raw-MD5-opencl [MD5 OpenCL (inefficient, development use only)]... Device 1: ATI Radeon HD 6750M Build log: <program source>:18:10: fatal error: 'opencl_device_info.h' file not found # include "opencl_device_info.h" ``` ^ ``` Error -11 building kernel. DEVICE_INFO=1090 OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (763) - (clBuildProgram failed.) ./john --format=descrypt-opencl --test Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL]... Device 1: ATI Radeon HD 6750M Build log: <program source>:60:10: fatal error: 'opencl_DES_WGS.h' file not found # include "opencl_DES_WGS.h" ``` ^ ``` Error -11 building kernel. DEVICE_INFO=1090 OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (763) - (clBuildProgram failed.) --- Any help are welcome, Thank you ! Don.
Author
Owner

@magnumripper commented on GitHub (Aug 3, 2014):

This is a bug in OS X 10.8, it was fixed in 10.9/Mavericks and a workaround for you is listed in doc/BUGS.

<!-- gh-comment-id:50996275 --> @magnumripper commented on GitHub (Aug 3, 2014): This is a bug in OS X 10.8, it was fixed in 10.9/Mavericks and a workaround for you is listed in doc/BUGS.
Author
Owner

@donovan0 commented on GitHub (Aug 3, 2014):

Hi Magnum,

Thanks for reply, ok understand...., so i'm good for Mavericks update !

2014-08-03 19:13 GMT+02:00 magnum notifications@github.com:

This is a bug in OS X 10.8, it was fixed in 10.9/Mavericks and a
workaround for you is listed in doc/BUGS.

—
Reply to this email directly or view it on GitHub
https://github.com/magnumripper/JohnTheRipper/issues/707#issuecomment-50996275
.

<!-- gh-comment-id:51006386 --> @donovan0 commented on GitHub (Aug 3, 2014): Hi Magnum, Thanks for reply, ok understand...., so i'm good for Mavericks update ! 2014-08-03 19:13 GMT+02:00 magnum notifications@github.com: > This is a bug in OS X 10.8, it was fixed in 10.9/Mavericks and a > workaround for you is listed in doc/BUGS. > > — > Reply to this email directly or view it on GitHub > https://github.com/magnumripper/JohnTheRipper/issues/707#issuecomment-50996275 > .
Author
Owner

@magnumripper commented on GitHub (Aug 4, 2014):

Yeah it's free so I see no reason not to upgrade!

<!-- gh-comment-id:51007793 --> @magnumripper commented on GitHub (Aug 4, 2014): Yeah it's free so I see no reason not to upgrade!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#354
No description provided.