#9399(avcodec:new): ld: warning: could not create compact unwind
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Type: defect Schürmann | Status: new | Priority: normal Component: avcodec | Version: Keywords: dwarf stack | unspecified size compact unwind | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- When trying to link ffmpeg statically with Mixxx on macOS, the Apple linker is complaining: {{{ 2021-08-18T22:06:41.3473950Z ld: warning: could not create compact unwind for _ff_cfhd_init_vlcs: stack subq instruction is too different from dwarf stack size 2021-08-18T22:06:41.3475230Z ld: warning: could not create compact unwind for _ff_rl_init_vlc: stack subq instruction is too different from dwarf stack size }}} This happens with gcc and clang 12.0.0.12000032 The issue was original reported here: https://github.com/microsoft/vcpkg/issues/19699 Only these two functions are reported. When I disable cfhd encoder and decoder, one warning disappears. I can also specify {{{ LDFLAGS="-Wl,-no_compact_unwind" }}} to make remove this warning, but that will affect all functions. Both functions locate big arrays on the stack, my guess it that these arrays are too big for compact unwind. What is the best option to lower the used stack? Do you know what is the limit for unwinding, the dwarf stack size? Thank you. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Owner: (none) Schürmann | Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: cfhd | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Carl Eugen Hoyos): * keywords: dwarf stack size compact unwind => cfhd * version: unspecified => git-master Comment: While this has little similarities with a valid ticket, I believe ff_cfhd_init_vlcs() and ff_rl_init_vlc() might have issues on some mobile platforms. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Owner: (none) Schürmann | Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: cfhd | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): This can fix it https://patchwork.ffmpeg.org/project/ffmpeg/patch/AS8P250MB0744D466DE062DB6D... -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Owner: (none) Schürmann | Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: cfhd | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Carl Eugen Hoyos): Replying to [comment:2 Balling]:
This can fix it https://patchwork.ffmpeg.org/project/ffmpeg/patch/AS8P250MB0744D466DE062DB6D... No. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Owner: (none) Schürmann | Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: cfhd | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): Is your patch better? -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Owner: (none) Schürmann | Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: cfhd | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Elon Musk): Carl patch is too trivial, and not gonna be applied. -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#9399: ld: warning: could not create compact unwind -------------------------------------+------------------------------------- Reporter: Daniel | Owner: (none) Schürmann | Type: defect | Status: new Priority: normal | Component: avcodec Version: git-master | Resolution: Keywords: cfhd | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Balling): So does this fix it on MacOS? e6d89d0efd9194198d9964e47bf428be222594ea I will ping on github... -- Ticket URL: <https://trac.ffmpeg.org/ticket/9399#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg