Bug 16116 - AB-INT: edk2: too many arguments to function ‘p->process’
Summary: AB-INT: edk2: too many arguments to function ‘p->process’
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-arm (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.0
Assignee: Jon Mason
QA Contact: Ross Burton
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2025-12-30 10:23 UTC by Mathieu Dubois-Briand
Modified: 2026-03-13 20:02 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Dubois-Briand 2025-12-30 10:23:42 UTC
Got this on my branch. I believe I had another one a few days ago but I initially thought it was related to some other patch.

Confirmed it is intermittent, it works well on rebuild, including on the same (ubuntu 25.10) worker.

ERROR: edk2-firmware-202408-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/meta-arm/build/build/tmp/work/sbsa_ref-poky-linux/edk2-firmware/202408/temp/run.do_compile.3785306' failed with exit code 1
...
| gcc   -c  -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -isystem/srv/pokybuild/yocto-worker/meta-arm/build/build/tmp/work/sbsa_ref-poky-linux/edk2-firmware/202408/recipe-sysroot-native/usr/include -O2 -pipe  -I . -I ../../../../MdePkg/Include/X64/ -I ../../../../MdePkg/Include -MD -fshort-wchar -fno-strict-aliasing -fwrapv -fno-delet
e-null-pointer-checks -Wall -Werror -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict -Wno-unused-result -nostdlib -g -O2  MyAlloc.c -o MyAlloc.o
| main.c: In function ‘ProcessArgs’:
| main.c:163:42: error: too many arguments to function ‘p->process’; expected 0, have 2
|   163 |                                         (*p->process)( *argv, *(argv+1) );
|       |                                         ~^~~~~~~~~~~~  ~~~~~
| main.c:120:34: note: declared here
|   120 |                         WildFunc process;
|       |                                  ^~~~~~~
| main.c:168:42: error: too many arguments to function ‘p->process’; expected 0, have 1
|   168 |                                         (*p->process)( *argv );
|       |                                         ~^~~~~~~~~~~~  ~~~~~
| main.c:120:34: note: declared here
|   120 |                         WildFunc process;
|       |                                  ^~~~~~~
Comment 1 Mathieu Dubois-Briand 2025-12-30 10:24:12 UTC
meta-arm ubuntu2510-vk-1 mathieu/master-next completed at 2025-12-28 08:08:01+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/2816/steps/17/logs/stdio
Comment 2 Randy MacLeod 2026-01-08 15:49:46 UTC
edk2-firmware upgrade in the works according to Ross Burton.
Comment 3 Ross Burton 2026-01-08 15:50:20 UTC
"edk2-firmware: update to edk2-stable202511" will be pushed soon and hopefully fixes this...
Comment 4 Mathieu Dubois-Briand 2026-02-16 11:54:59 UTC
meta-arm fedora42-vk-1 mathieu/master-next completed at 2026-02-15 19:51:45+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/3068/steps/17/logs/stdio
Comment 5 Mathieu Dubois-Briand 2026-02-26 12:46:19 UTC
meta-arm ubuntu2510-vk-1 mathieu/master-next&mathieu/master-next-tests completed at 2026-02-24 17:03:31+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/3120/steps/17/logs/stdio
Comment 6 Mathieu Dubois-Briand 2026-03-09 09:55:24 UTC
meta-arm fedora43-vk-2 mathieu/master-next completed at 2026-03-09 08:43:56+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/3206/steps/17/logs/stdio
Comment 7 Mathieu Dubois-Briand 2026-03-13 09:59:26 UTC
meta-arm fedora42-vk-1 master&mathieu/master-next completed at 2026-03-12 21:51:48+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/3232/steps/17/logs/stdio
Comment 8 Ross Burton 2026-03-13 14:34:37 UTC
So sbsa-ref hasn't upgraded to new edk as it causes kernel warnings: https://github.com/tianocore/edk2-platforms/issues/752
Comment 9 Ross Burton 2026-03-13 20:02:02 UTC
Fixed in meta-arm master:

commit 966ee26dd33e215a1d4dc4d4021da2a0fcb15201 (HEAD -> edk, gitlab/rosbur01/edk)
Author: Ross Burton <ross.burton@arm.com>
Date:   Fri Mar 13 17:32:13 2026 +0000

    arm-bsp/edk2-firmware: fix build on newer hosts