Bug 15978

Summary: AB-INT: perf implicit declaration of function 'perf_evsel*'
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mathieu Dubois-Briand <mathieu.dubois-briand>
Component: kernelAssignee: Ross Burton <ross.burton>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: High CC: raj.khem, randy.macleod
Version: 5.99   
Target Milestone: 5.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mathieu Dubois-Briand 2025-09-25 08:02:38 UTC
A new build issue, only seen once so far.

| evlist.c: In function 'perf_evlist__purge':
| evlist.c:159:17: error: implicit declaration of function 'perf_evsel__delete'; did you mean 'perf_evlist__delete'? [-Wimplicit-function-declaration]
|   159 |                 perf_evsel__delete(pos);
|       |                 ^~~~~~~~~~~~~~~~~~
|       |                 perf_evlist__delete
| evlist.c:159:17: error: nested extern declaration of 'perf_evsel__delete' [-Werror=nested-externs]
| evlist.c: In function 'perf_evlist__open':
| evlist.c:218:23: error: implicit declaration of function 'perf_evsel__open'; did you mean 'perf_evsel__init'? [-Wimplicit-function-declaration]
|   218 |                 err = perf_evsel__open(evsel, evsel->cpus, evsel->threads);
|       |                       ^~~~~~~~~~~~~~~~
|       |                       perf_evsel__init
| evlist.c:218:23: error: nested extern declaration of 'perf_evsel__open' [-Werror=nested-externs]
| evlist.c: In function 'perf_evlist__close':
| evlist.c:235:17: error: implicit declaration of function 'perf_evsel__close'; did you mean 'perf_evsel__close_fd'? [-Wimplicit-function-declaration]
|   235 |                 perf_evsel__close(evsel);
|       |                 ^~~~~~~~~~~~~~~~~
|       |                 perf_evsel__close_fd
| evlist.c:235:17: error: nested extern declaration of 'perf_evsel__close' [-Werror=nested-externs]
| evlist.c: In function 'perf_evlist__enable':
| evlist.c:243:17: error: implicit declaration of function 'perf_evsel__enable'; did you mean 'perf_evlist__enable'? [-Wimplicit-function-declaration]
|   243 |                 perf_evsel__enable(evsel);
|       |                 ^~~~~~~~~~~~~~~~~~
|       |                 perf_evlist__enable
| evlist.c:243:17: error: nested extern declaration of 'perf_evsel__enable' [-Werror=nested-externs]
| evlist.c: In function 'perf_evlist__disable':
| evlist.c:251:17: error: implicit declaration of function 'perf_evsel__disable'; did you mean 'perf_evlist__disable'? [-Wimplicit-function-declaration]
|   251 |                 perf_evsel__disable(evsel);
|       |                 ^~~~~~~~~~~~~~~~~~~
|       |                 perf_evlist__disable
| evlist.c:251:17: error: nested extern declaration of 'perf_evsel__disable' [-Werror=nested-externs]
Comment 1 Mathieu Dubois-Briand 2025-09-25 08:03:15 UTC
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
Comment 2 Bruce Ashfield 2025-09-25 12:54:06 UTC
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 ?
Comment 3 Mathieu Dubois-Briand 2025-09-25 13:13:49 UTC
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
Comment 4 Randy MacLeod 2025-09-25 14:41:55 UTC
Apparently due to some patches that Ross submitted but can't reproduce.
Comment 5 Mathieu Dubois-Briand 2025-10-02 11:54:34 UTC
Another failure, but I believe there is no point of opening a separate ticket so
far.

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

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
Comment 7 Randy MacLeod 2025-10-16 15:18:37 UTC
Will this cause the bug to recur?

*** This bug has been marked as a duplicate of bug 15990 ***