Page MenuHome

macOS/ ffmpeg: Fix linker warning
ClosedPublic

Authored by Ankit Meel (ankitm) on Jul 3 2021, 10:40 PM.

Details

Summary

ld: warning: could not create compact unwind for _ff_rl_init_vlc: stack subq instruction is too different from dwarf stack size

Similar to rB2de5de57c58521862e0fecc95fc474ea347b7468


Alternative is adding -Wl,-no_compact_unwind linker flag but I don't know the side effects of that.
https://gankra.github.io/blah/compact-unwinding/
Though It will allow reverting rB2de5de57c58521862e0fecc95fc474ea347b7468 and not adding any new
code to ffmpeg.diff.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D11796 (branched from master)
Build Status
Buildable 15599
Build 15599: arc lint + arc unit

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Jul 3 2021, 10:40 PM
Ankit Meel (ankitm) created this revision.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)

Just a mindless duplication of rB2de5de57c58521862e0fecc95fc474ea347b7468 ..
Solves the warning though

Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Jul 5 2021, 8:20 AM
Brecht Van Lommel (brecht) requested changes to this revision.Jul 5 2021, 10:27 AM

Use a single allocation, and avoid the macros:

VLC_TYPE (*table)[2] = av_calloc(sizeof(VLC_TYPE), 1500 * 2);
This revision now requires changes to proceed.Jul 5 2021, 10:27 AM
This revision is now accepted and ready to land.Jul 5 2021, 11:02 AM

It bothers me a little that upstream is seemingly somehow not requiring any of these patches, but beyond that it looks good to me