Opened 3 years ago

Closed 2 years ago

#64469 closed defect (fixed)

ffmpeg @5.x: buildbot failures for 10.9 through 10.11

Reported by: mascguy (Christopher Nielsen) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: mohd-akram (Mohamed Akram)
Port: ffmpeg-upstream

Description (last modified by mascguy (Christopher Nielsen))

For this new release of FFMpeg, buildbot builds are failing with two different compilation errors.

https://ports.macports.org/port/ffmpeg-devel/builds/

For 10.11, the failure relates to __builtin_available:

libavutil/hwcontext_videotoolbox.c:420:13: error: use of unknown builtin '__builtin_available' [-Wimplicit-function-declaration]
        if (__builtin_available(macOS 10.11, iOS 9, *))
            ^

However, for 10.9 and 10.10, we're seeing the following:

libavcodec/videotoolbox.c:907:13: error: implicit declaration of function 'VTRegisterProfessionalVideoWorkflowVideoDecoders' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            VTRegisterProfessionalVideoWorkflowVideoDecoders();
            ^

Upstream included the following patch in the 5.0 release, and initially that appeared - at least superficially - like it should fix these issues. But unfortunately that's not the case. (Might be a simple matter of tweaking the preprocessor logic, though.)

https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg128213.html

Change History (7)

comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)

Description: modified (diff)
Keywords: patch-pending removed

comment:2 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mohd-akram added
Port: ffmpeg added

comment:3 Changed 3 years ago by mascguy (Christopher Nielsen)

FYI for anyone interested: This issue is a blocker, preventing us from updating the non-Devel port to 5.0.

comment:4 Changed 3 years ago by Christopher Nielsen <mascguy@…>

In 0f6d11daecb8e8c6bd6673703a3417cd1f660a1d/macports-ports (master):

ffmpeg-devel: patch for builtin_available failures
See: #64469

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

Latest patch gets us further along, but failures still seen for 10.9 through 10.11. More digging needed...

comment:6 Changed 2 years ago by mascguy (Christopher Nielsen)

Port: ffmpeg-upstream added; ffmpeg-devel ffmpeg removed
Summary: ffmpeg-devel @5.0: buildbot failures for 10.9 through 10.11ffmpeg @5.x: buildbot failures for 10.9 through 10.11

comment:7 Changed 2 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 4d5e70321a481dc3a712e04f12a9e1d46157071f/macports-ports (master):

ffmpeg-upstream: fix builds for 10.9 thru 10.11
Fixes: #64469

Note: See TracTickets for help on using tickets.