New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #33156 (new defect)

Opened 16 months ago

Last modified 15 months ago

x264 @20111023 +universal Build failure - MMX error on i386

Reported by: abarnert@… Owned by: devans@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: x264

Description

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.

Attachments

x264-1.log (17.1 KB) - added by abarnert@… 16 months ago.

Change History

Changed 16 months ago by abarnert@…

comment:1 Changed 15 months ago by macsforever2000@…

  • Owner changed from macports-tickets@… to devans@…
Note: See TracTickets for help on using tickets.