|
Message-ID: <CABeUhwtQ3ra7CpTxzq4LA5BWEhJkr2oR7vOwv+RUR-jv=y0aqw@mail.gmail.com> Date: Sat, 2 Aug 2014 22:39:50 +0200 From: newangels newangels <contact.newangels@...il.com> To: john-users@...ts.openwall.com Subject: Re: OMP & Compilation issues on OSX Hi, I follow your advices as well ( i think ) 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 addes 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 + 3. 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. 2014-07-23 9:51 GMT+02:00 magnum <john.magnum@...hmail.com>: > On 2014-07-22 22:02, newangels newangels wrote: > >> I just take a look on the how to, in the /DOC/INSTALL about "Optimal Build >> on OSX", on the last part i read ; >> >> 4. Link whatever gcc version you got from Homebrew to just "gcc" in the >> /usr/local/bin directory. This example is for gcc-4.7: >> ln -s gcc-4.7 /usr/local/bin/gcc >> 5. Make sure /usr/local/bin preceeds /usr/bin in your $PATH >> >> >> For N° 4 , it hink i am ok with & understand, about link ggc to >> /usr/local/bin >> >> For N° 5 i think i have a problem, >> >> I check my PATH in terminal & got : >> >> pc2:~ xxx$ echo "$PATH" >> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin >> >> If follow & understand your advices, you say /usr/Local/bin have to >> "Preceeds", in my case is not ! >> >> May this fact can cause me some troubles or any issues about ? >> > > You probably have that path set in ~/.bash_profile or the like - just > change it and close/restart the terminal. Eg. if the original line is > > export PATH=$PATH:/usr/local/bin > > change it to > > export PATH=/usr/local/bin:$PATH > > > Alternatively you can run configure like this: > > ./configure CC=/usr/local/bin/gcc > > You can even omit step 4 this way, eg.: > > ./configure CC=/usr/local/bin/gcc-4.8 > > > magnum > >
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.