Opened 13 years ago

Closed 13 years ago

#30490 closed defect (fixed)

ffmpeg: yasm required to build for arch=i386

Reported by: bruno.herbelin@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: yasm Cc:
Port: ffmpeg

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Compilation of port ffmpeg fails if macport build_arch is i386 (on a x86_64 machine): It is not a C error, but a gcc asm problem; " ‘asm’ operand has impossible constraints " (i don't remember which file, but it was in libavcodec).

To fix this, I added

--enable-yasm

to the list of configure.args in the Portfile of ffmpeg.

Of course, yasm should also be added as a dependency to ffmpeg. I would recommend to enable yasm for all architecture (no need to make different behavior between 32 and 64 bits).

Thanks for the good work with macports !

PS: this is not the same as Ticket #30137, but related ?

Change History (4)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to devans@…
Priority: LowNormal
Summary: Yasm required to build ffmpeg for arch=i386ffmpeg: yasm required to build for arch=i386

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 13 years ago by jmroot (Joshua Root)

I don't think yasm supports ppc at all, so it should only be used if building for i386 or x86_64.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.