New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21331 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

x264: gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

Reported by: ryandesign@… Owned by: devans@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: snow-leopard Cc:
Port: x264

Description

On Mac OS X 10.6 trying to install x264 @20090810_2 I see:

gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags

I am building x264 universal for x86_64/i386. x264 @20090810_1 installed in this way with no problems.

Attachments

x264.txt (49.0 KB) - added by ryandesign@… 5 years ago.
patch-x264-sl-universal.diff (558 bytes) - added by devans@… 5 years ago.
Proposed patch for Portfile

Change History

Changed 5 years ago by ryandesign@…

comment:1 Changed 5 years ago by devans@…

  • Status changed from new to assigned

Attached is a patch that may help at the expense of no asm optimizations when building +universal.

The problem is that asm optimizations build OK for x86_i386 but not for i386 when using gcc-4.2. Although it is reported that i386 should work if gcc-4.0 is used on snow leopard.

Let me know if this allows you to build and any further suggestions on how to deal with this situation in a universal setting.

Changed 5 years ago by devans@…

Proposed patch for Portfile

comment:2 Changed 5 years ago by ryandesign@…

Thanks, universal now builds.

Maybe there's a way to use the muniversal portgroup that you're already using to enable asm only for x86_64?

comment:3 follow-up: ↓ 4 Changed 5 years ago by devans@…

  • Status changed from assigned to closed
  • Keywords snow-leopard added
  • Resolution set to fixed

OK, patch committed in r57653. Thanks for the suggestion, will look into it.

comment:4 in reply to: ↑ 3 Changed 5 years ago by bgrupe@…

Replying to devans@…:

OK, patch committed in r57653. Thanks for the suggestion, will look into it.

I am trying to build x264 on SL with +universal and I am still seeing this issue even though x264s configure says asm: no.

What could be the problem here?

Note: See TracTickets for help on using tickets.