<?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>15978</bug_id>
          
          <creation_ts>2025-09-25 08:02:38 +0000</creation_ts>
          <short_desc>AB-INT: perf implicit declaration of function &apos;perf_evsel*&apos;</short_desc>
          <delta_ts>2025-10-16 15:18:37 +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>OE-Core</product>
          <component>kernel</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>15990</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
          
          
          <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>102808</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-09-25 08:02:38 +0000</bug_when>
    <thetext>A new build issue, only seen once so far.

| evlist.c: In function &apos;perf_evlist__purge&apos;:
| evlist.c:159:17: error: implicit declaration of function &apos;perf_evsel__delete&apos;; did you mean &apos;perf_evlist__delete&apos;? [-Wimplicit-function-declaration]
|   159 |                 perf_evsel__delete(pos);
|       |                 ^~~~~~~~~~~~~~~~~~
|       |                 perf_evlist__delete
| evlist.c:159:17: error: nested extern declaration of &apos;perf_evsel__delete&apos; [-Werror=nested-externs]
| evlist.c: In function &apos;perf_evlist__open&apos;:
| evlist.c:218:23: error: implicit declaration of function &apos;perf_evsel__open&apos;; did you mean &apos;perf_evsel__init&apos;? [-Wimplicit-function-declaration]
|   218 |                 err = perf_evsel__open(evsel, evsel-&gt;cpus, evsel-&gt;threads);
|       |                       ^~~~~~~~~~~~~~~~
|       |                       perf_evsel__init
| evlist.c:218:23: error: nested extern declaration of &apos;perf_evsel__open&apos; [-Werror=nested-externs]
| evlist.c: In function &apos;perf_evlist__close&apos;:
| evlist.c:235:17: error: implicit declaration of function &apos;perf_evsel__close&apos;; did you mean &apos;perf_evsel__close_fd&apos;? [-Wimplicit-function-declaration]
|   235 |                 perf_evsel__close(evsel);
|       |                 ^~~~~~~~~~~~~~~~~
|       |                 perf_evsel__close_fd
| evlist.c:235:17: error: nested extern declaration of &apos;perf_evsel__close&apos; [-Werror=nested-externs]
| evlist.c: In function &apos;perf_evlist__enable&apos;:
| evlist.c:243:17: error: implicit declaration of function &apos;perf_evsel__enable&apos;; did you mean &apos;perf_evlist__enable&apos;? [-Wimplicit-function-declaration]
|   243 |                 perf_evsel__enable(evsel);
|       |                 ^~~~~~~~~~~~~~~~~~
|       |                 perf_evlist__enable
| evlist.c:243:17: error: nested extern declaration of &apos;perf_evsel__enable&apos; [-Werror=nested-externs]
| evlist.c: In function &apos;perf_evlist__disable&apos;:
| evlist.c:251:17: error: implicit declaration of function &apos;perf_evsel__disable&apos;; did you mean &apos;perf_evlist__disable&apos;? [-Wimplicit-function-declaration]
|   251 |                 perf_evsel__disable(evsel);
|       |                 ^~~~~~~~~~~~~~~~~~~
|       |                 perf_evlist__disable
| evlist.c:251:17: error: nested extern declaration of &apos;perf_evsel__disable&apos; [-Werror=nested-externs]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102809</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-09-25 08:03:15 +0000</bug_when>
    <thetext>beaglebone rocky8-vk-1 mathieu/master-next completed at 2025-09-24 20:24:29+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/2459/steps/12/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102817</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2025-09-25 12:54:06 +0000</bug_when>
    <thetext>Ross mentioned something about this in IRC as well, but with clang configured (but not used for the build)

Is this using a similar configuration ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102818</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-09-25 13:13:49 +0000</bug_when>
    <thetext>It was on my branch, with the last clang patches from Ross. So yes, maybe this related.

We can discuss this with Ross in the bug triage meeting, later today.

Commit log of my branch: https://git.yoctoproject.org/poky-ci-archive/log/?h=autobuilder.yoctoproject.org/valkyrie/a-full-2437</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102820</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-09-25 14:41:55 +0000</bug_when>
    <thetext>Apparently due to some patches that Ross submitted but can&apos;t reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102862</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-10-02 11:54:34 +0000</bug_when>
    <thetext>Another failure, but I believe there is no point of opening a separate ticket so
far.

| core.c:36:9: error: &apos;page_size&apos; undeclared (first use in this function); did you mean &apos;getpagesize&apos;?

genericarm64-alt debian12-vk-7 mathieu/master-next completed at 2025-10-01 08:17:22+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/22/builds/2509/steps/12/logs/stdio

genericx86 opensuse155-vk-1 mathieu/master-next completed at 2025-10-02 10:16:54+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/2492/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102891</commentid>
    <comment_count>6</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2025-10-08 01:36:13 +0000</bug_when>
    <thetext>This might be addressed with
 
https://lore.kernel.org/openembedded-core/20251008002729.1850430-1-raj.khem@gmail.com/T/#u</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102972</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-10-16 15:18:37 +0000</bug_when>
    <thetext>Will this cause the bug to recur?

*** This bug has been marked as a duplicate of bug 15990 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>