Ticket #33156 (new defect)
x264 @20111023 +universal Build failure - MMX error on i386
|Reported by:||abarnert@…||Owned by:||devans@…|
On Lion 10.7.2 with Xcode 4.2, "port upgrade x264 +universal" failed. I tried uninstall and clean reinstall, and got the same error.
Apparently configure ends up with a set of arguments for the i386 build that has MMX disabled, but mmintrin.h included. See the attached log.
I wasn't sure what made it decide to use mmintrin.h, but it was easy to check that adding -mmmx made it build. So, after that test, I edited the portfile to add "configure.cflags-append -mmmx" and did a clean port install. The resulting binary seems to work in both architectures. It might be slower in 32-bit than it would be (since it's presumably using MMX instead of SSE2 somewhere or other, or there wouldn't have been a build failure in the first place, right?). That doesn't bother me too much, but you probably want a more general/better solution.