<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16116</bug_id>
          
          <creation_ts>2025-12-30 10:23:42 +0000</creation_ts>
          <short_desc>AB-INT: edk2: too many arguments to function ‘p-&gt;process’</short_desc>
          <delta_ts>2026-03-13 20:02:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-arm</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Jon Mason">jon.mason</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Ross Burton">ross.burton</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103662</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-30 10:23:42 +0000</bug_when>
    <thetext>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 &apos;/srv/pokybuild/yocto-worker/meta-arm/build/build/tmp/work/sbsa_ref-poky-linux/edk2-firmware/202408/temp/run.do_compile.3785306&apos; 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-&gt;process’; expected 0, have 2
|   163 |                                         (*p-&gt;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-&gt;process’; expected 0, have 1
|   168 |                                         (*p-&gt;process)( *argv );
|       |                                         ~^~~~~~~~~~~~  ~~~~~
| main.c:120:34: note: declared here
|   120 |                         WildFunc process;
|       |                                  ^~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103663</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-12-30 10:24:12 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103762</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-08 15:49:46 +0000</bug_when>
    <thetext>edk2-firmware upgrade in the works according to Ross Burton.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103763</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-01-08 15:50:20 +0000</bug_when>
    <thetext>&quot;edk2-firmware: update to edk2-stable202511&quot; will be pushed soon and hopefully fixes this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104320</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-16 11:54:59 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104394</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-26 12:46:19 +0000</bug_when>
    <thetext>meta-arm ubuntu2510-vk-1 mathieu/master-next&amp;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104565</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-09 09:55:24 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104631</commentid>
    <comment_count>7</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-13 09:59:26 +0000</bug_when>
    <thetext>meta-arm fedora42-vk-1 master&amp;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104633</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-03-13 14:34:37 +0000</bug_when>
    <thetext>So sbsa-ref hasn&apos;t upgraded to new edk as it causes kernel warnings: https://github.com/tianocore/edk2-platforms/issues/752</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104639</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-03-13 20:02:02 +0000</bug_when>
    <thetext>Fixed in meta-arm master:

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

    arm-bsp/edk2-firmware: fix build on newer hosts</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>