Bug 16000

Summary: AB-INT: ffmpeg build failing
Product: [QA/Testing] Functional (self) Testing Reporter: Mathieu Dubois-Briand <mathieu.dubois-briand>
Component: oe-selftestAssignee: Yoann Congal <yoann.congal>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alex.kanavin, mingli.yu, randy.macleod, simone.p.weiss, yoann.congal
Version: unspecified   
Target Milestone: 5.3.2   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT, AB-HAVE-PLAN
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
do_compile log none

Description Mathieu Dubois-Briand 2025-10-13 11:49:37 UTC
Happened twice, at one week interval.

2025-10-02 13:53:22,760 - oe-selftest - INFO -       ERROR: ffmpeg-8.0-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/x86-64-v3-poky-linux/ffmpeg/8.0/temp/run.do_compile.2432237' failed with exit code 1
...
ERROR: oe_runmake failed

I grabbed the log of today build, and in there we have:
/bin/sh: fftools/resources/graph.html.gz: No such file or directory

So, maybe a dependency issue?
Comment 1 Mathieu Dubois-Briand 2025-10-13 11:50:35 UTC
Created attachment 5147 [details]
do_compile log
Comment 3 Mathieu Dubois-Briand 2025-10-14 13:33:24 UTC
reproducible fedora41-vk-1 mathieu/master-next completed at 2025-10-13 20:49:54+00:00
https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20251013-bv4iu15f
https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/2707/steps/13/logs/stdio
Comment 4 Randy MacLeod 2025-10-16 14:41:37 UTC
Sounds like a race or a floating dependency in the Makefile.
Comment 6 Simone Weiß 2025-11-26 21:42:33 UTC
This should be the same issue as observed in by gentoo fols here: https://bugs.gentoo.org/965687
Comment 8 Alexander Kanavin 2025-12-04 12:18:41 UTC
Possible fix:
https://lists.openembedded.org/g/openembedded-core/message/227288
Comment 10 Alexander Kanavin 2025-12-11 19:20:08 UTC
Another fix which I have more confidence in:

https://lists.openembedded.org/g/openembedded-core/message/227565
Comment 12 Yoann Congal 2026-01-06 06:17:21 UTC
This hit whinlatter:
* https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/3145/steps/13/logs/stdio
* https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20260105-r3m0ybtx/
* https://valkyrie.yocto.io/pub/repro-fail/oe-reproducible-20260105-r3m0ybtx/bitbake-reproducibleB-extended.log

  | mkdir -p fftools/resources
  | /bin/sh: 4: cannot create fftools/resources/graph.css.min: Directory nonexistent
  | make: *** [/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/x86-64-v3-poky-linux/ffmpeg/8.0/sources/ffmpeg-8.0/ffbuild/common.mak:165: fftools/resources/graph.html.gz] Error 2
  | make: *** Waiting for unfinished jobs....
  | make: *** [/srv/pokybuild/yocto-worker/reproducible/build/build-st/reproducibleB-extended/tmp/work/x86-64-v3-poky-linux/ffmpeg/8.0/sources/ffmpeg-8.0/ffbuild/common.mak:145: fftools/resources/graph.css.min] Error 2
  | ERROR: oe_runmake failed
  | WARNING: exit code 1 from a shell command.
  NOTE: recipe ffmpeg-8.0-r0: task do_compile: Failed
Comment 13 Alexander Kanavin 2026-01-06 11:13:24 UTC
For whinlatter these two should be cherry-picked:

9dbd2141b5 ffmpeg: add a (possible) build race fix
86396b85b4 ffmpeg: fix a build race, hopefully for real this time
Comment 15 Yoann Congal 2026-01-13 22:57:31 UTC
Stable builds hit:
whinlatter a-full fedora40-vk-3 https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/2995
whinlatter reproducible debian12-vk-6 https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/3145
Comment 16 Alexander Kanavin 2026-01-14 06:42:00 UTC
@Yoann this has been fixed in master a while ago, cherry pick the patches from comment 13, and whinlatter will be fixed too.
Comment 17 Yoann Congal 2026-01-14 07:09:45 UTC
(In reply to Alexander Kanavin from comment #16)
> @Yoann this has been fixed in master a while ago, cherry pick the patches
> from comment 13, and whinlatter will be fixed too.

@Alex (Sorry I did not reply earlier)
I saw your comment #13 and noted to backport these.
I will do it for the next whinlatter patch review/merge series (sometime in the next 2 weeks)

I only commented my failed build to be sure to have every AB-INT failed build triaged but, in this case, the solution is known.

Thanks!
Comment 18 Yoann Congal 2026-01-26 13:55:20 UTC
Alex kanavin fixes are now backported to whinlatter:
* ffmpeg: add a (possible) build race fix
  * https://git.openembedded.org/openembedded-core/commit/?h=whinlatter&id=79ba97c76de7efa4e6d10753d7ed7440eed06fbe
* ffmpeg: fix a build race, hopefully for real this time
  * https://git.openembedded.org/openembedded-core/commit/?h=whinlatter&id=c9e9ae90c63d1bb2c5711e981884f842da547b72

Closing