Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 21 Oct 2014 06:27:53 -0400
From: Erik Winkler <ewinkler@...ls.com>
To: john-dev@...ts.openwall.com
Subject: Re: Error with gcc-4.9.1 on MacOS 10.9.5

The configure command you provided compiles for me and I am able to run the binary.

../run/john -test -format:lm
Benchmarking: LM [DES 128/128 AVX-16]... DONE
Raw:	70235K c/s real, 70235K c/s virtual

new-host-6:src ewinkler$ ../run/john -test -format:descrypt
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]... DONE
Many salts:	5043K c/s real, 4993K c/s virtual
Only one salt:	4779K c/s real, 4827K c/s virtual

new-host-6:src ewinkler$ ../run/john -test
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]... DONE
Many salts:	5008K c/s real, 5008K c/s virtual
Only one salt:	4833K c/s real, 4833K c/s virtual

Benchmarking: bsdicrypt, BSDI crypt(3) ("_J9..", 725 iterations) [DES 128/128 AVX-16]... DONE
Many salts:	164499 c/s real, 166144 c/s virtual
Only one salt:	162816 c/s real, 162816 c/s virtual

Benchmarking: md5crypt, crypt(3) $1$ [MD5 128/128 AVX 20x]... DONE
Raw:	38480 c/s real, 38480 c/s virtual

Benchmarking: bcrypt ("$2a$05", 32 iterations) [Blowfish 32/64 X3]... DONE
Raw:	1101 c/s real, 1101 c/s virtual

Benchmarking: scrypt (16384, 8, 1) [Salsa20/8 128/128 AVX]... DONE
Raw:	41.1 c/s real, 40.7 c/s virtual

Benchmarking: LM [DES 128/128 AVX-16]... DONE
Raw:	70428K c/s real, 70428K c/s virtual

Benchmarking: AFS, Kerberos AFS [DES 48/64 4K]... DONE
Short:	506368 c/s real, 506368 c/s virtual
Long:	1540K c/s real, 1540K c/s virtual

Benchmarking: tripcode [DES 128/128 AVX-16]... DONE
Raw:	4379K c/s real, 4423K c/s virtual


In order for me to get this to work with gcc-4.9.1 (i.e. CC=/usr/local/bin/gcc, I had to replace /usr/bin/as with the wrapper script.  Otherwise I would get the following error:  "configure: error: 'as' can't assemble AVX instructions. See last section of doc/INSTALL"

./run/john -test
Will run 4 OpenMP threads
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]... (4xOMP) DONE
Many salts:	9125K c/s real, 2599K c/s virtual
Only one salt:	8256K c/s real, 2581K c/s virtual

Benchmarking: bsdicrypt, BSDI crypt(3) ("_J9..", 725 iterations) [DES 128/128 AVX-16]... (4xOMP) DONE
Many salts:	303144 c/s real, 85524 c/s virtual
Only one salt:	288768 c/s real, 86978 c/s virtual

Benchmarking: md5crypt, crypt(3) $1$ [MD5 128/128 AVX 12x]... (4xOMP) DONE
Raw:	76416 c/s real, 20765 c/s virtual

Benchmarking: bcrypt ("$2a$05", 32 iterations) [Blowfish 32/64 X3]... (4xOMP) DONE
Raw:	2340 c/s real, 642 c/s virtual

Benchmarking: scrypt (16384, 8, 1) [Salsa20/8 128/128 AVX]... (4xOMP) DONE
Raw:	101 c/s real, 28.1 c/s virtual

Benchmarking: LM [DES 128/128 AVX-16]... (4xOMP) DONE
Raw:	41615K c/s real, 24194K c/s virtual

Benchmarking: AFS, Kerberos AFS [DES 48/64 4K]... DONE
Short:	503296 c/s real, 498312 c/s virtual
Long:	1591K c/s real, 1591K c/s virtual

Benchmarking: tripcode [DES 128/128 AVX-16]... (4xOMP) DONE
Raw:	7176K c/s real, 2424K c/s virtual

> 
> No, in OSX 10.9.5, the native 'as' can't even do AVX while clang can do AVX, AVX2 and BMI. The above message should show (and now also revert the build to -msse4.1 which as supports), and copying that wrapper script to /usr/local/bin/as and have it preceed /usr/bin in PATH should fix the problem and enable all features.
> 
> I just tried building (using that wrapper script) with
> ./configure CFLAGS="-mavx2 -mbmi -O2" --disable-native-tests
> with no problems (although I can't run the resulting binary on this machine).
> 
> magnum
> 


Content of type "text/html" skipped

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.