This is the latest error I get:

Error: wireshark dependency qt was built with the following
C++ standard library: libstdc++ (from clang)

This is incompatible with the standard library being used
to build wireshark: libc++ (from clang)

Please reinstall qt using a compatible compiler.
hint: Check https://github.com/mxcl/homebrew/wiki/C++-Standard-Libraries
-- 
Mitch Greenfield
Sent with Airmail

On October 31, 2013 at 7:34:22 AM, James Booth (notifications@github.com) wrote:

In Library/Formula/qt.rb:

> @@ -44,7 +65,12 @@ def install
>      # locations and with Xcode-only.
>      if superenv?
>        args << '-no-3dnow'
> -      args << '-no-ssse3' if MacOS.version <= :snow_leopard
> +
> +      # Newer Haswell based machines (2013) seem to have issues compiling when SSSE3 optimizations are enabled
> +      problematic_cpu = Hardware::CPU.family == :haswell && Hardware::CPU.extmodel >= 4
Agreed!

The way I see it there are two separate issues here:

Going forwards in general how should the qt formula best handle the --without-ssse3 flag
In light of the current Haswell bug, how should the formula be adapted to get it working on Haswell Macs
I think the answer to 1 is as you said before, something along the lines of

 if build.without?('ssse3') || ! Hardware::CPU.ssse3

(hope ! is not in Ruby! :P)

As for 2, in the short term we adopt the formula to include the haswell check.

If the Qt guys aren't already aware of this, they should be notified of the ssse3 haswell issue, as it seems to be independent (or a complication of) the broader issues of getting qt4 compiled on 10.9. Once it's fixed on their end the formula can drop the :haswell check, just as the formula won't forever include your manual patching of the qt source.

If we separate out these two concerns here and leave the haswell bug flagged (I don't know how homebrew deals with such scenarios, an open issue perhaps?) and clearly documented that seems the best way forwards to me.

—
Reply to this email directly or view it on GitHub.