[openssl-dev] [openssl.org #4397] BUG: 1.0.2g fails to build on Mac OS X 10.6.8 due to 0b assembly literals

Clemens Lang via RT rt at openssl.org
Tue Mar 8 02:41:19 UTC 2016

Some older versions of OS X (10.6.8 "Snow Leopard" and possibly below)
ship with a toolchain that is based on an old version of the GNU
assembler, which does not support binary literals. Assembling an
expression that contains a 0b00011011 literal will cause a warning and
treat the immediate as 0.

This makes the build fail:

sha1-x86_64.s:1243:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1243:suffix or operands invalid for `pshufd'
sha1-x86_64.s:1245:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1245:suffix or operands invalid for `pshufd'
sha1-x86_64.s:1395:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1395:suffix or operands invalid for `pshufd'
sha1-x86_64.s:1396:missing or invalid immediate expression `0b00011011' taken as 0
sha1-x86_64.s:1396:suffix or operands invalid for `pshufd'
make[2]: *** [sha1-x86_64.o] Error 1

An easy workaround is using hexadecimal literals, which are supported by
the toolchain. Joshua Root has prepared a patch that I have sent as a
pull request at

Please pull to avoid breaking openssl for users on Mac OS X 10.6.8.

The problem was originally reported in the MacPorts bug tracker at

Clemens Lang
MacPorts Developer

Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4397
Please log in as guest with password guest if prompted

More information about the openssl-dev mailing list