New: lttng-modules v2.11 package fails to build
https://bugs.busybox.net/show_bug.cgi?id=14501
Bug ID: 14501
Summary: lttng-modules v2.11 package fails to build
Product: buildroot
Version: 2021.05
Hardware: All
OS: Linux
Status: NEW
Severity: blocker
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]Target Milestone: ---
Hello,
I am not able to successfully build the lttng-modules package with Buildroot v2021.05. I get the following syntax errors:
output/build/lttng-modules-2.11.0/./probes/../instrumentation/events/lttng-module/timer.h:313:41:
error: invalid use of undefined type ‘const struct itimerval’
313 | ctf_integer(long, interval_usec, value->it_interval.tv_usec)
| ^~
output/build/lttng-modules-2.11.0/./lib/../lib/ringbuffer/frontend.h:82:6:
error: implicit declaration of function ‘smp_read_barrier_depends’ [-Werror=implicit-function-declaration]
82 | smp_read_barrier_depends(); (cpu) < nr_cpu_ids; });)
| ^~~~~~~~~~~~~~~~~~~~~~~~/output/build/lttng-modules-2.11.0/./lib/../wrapper/trace-clock.h:168:3: error:
implicit declaration of function ‘read_barrier_depends’ [-Werror=implicit-function-declaration]
168 | read_barrier_depends(); /* load ltc before content */
| ^~~~~~~~~~~~~~~~~~~~The errors look mostly syntactical and is replicated with a fresh clone of v2021.08, v2021.11, v2020.05, v2020.08 also. The lttng-tools and lttng-babeltrace packages build without issues but the moment lttng-modules is selected and built, it fails. Is this issue known already? Are there any solutions for it?
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
https://bugs.busybox.net/show_bug.cgi?id=14501
--- Comment #1 from Thomas Petazzoni <[email protected]> --- Thanks for the bug report. Could you provide the Buildroot .config that allows to reproduce this issue ?
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14501
Sreedhar Mahadevan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from Sreedhar Mahadevan <[email protected]> --- Created attachment 9196
--> https://bugs.busybox.net/attachment.cgi?id=9196&action=edit
Buildroot .config files
Hi Thomas,
I am attaching two .config files here. The reason is that I suspected the external tool chain option to create the issue, because of which I tried using buildroot's own tool chain. Unfortunately I encountered the same error using both configurations.
Request you to kindly use these configurations and check if you can reproduce the issue at your end.
Thanks and regards,
Sreedhar
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14501
--- Comment #3 from Sreedhar Mahadevan <[email protected]> --- Would like to update one development from my end. I cloned the lttng-modules package directly from its Github repository:
https://github.com/lttng/lttng-modules
From this lttng-modules environment, I tried building lttng-modules v2.13.0 based on the instructions in its README.md file by referencing the custom linux version that I was using (v5.10.x corresponding to Buildroot v2021.05) and it built successfully. When I tried building lttng-modules v2.12.0 and v2.11.0 and I got the exact error which I encountered in the Buildroot environment (reported earlier in this bug report). I see that buildroot v2021.08 and 2021.11 all continue using lttng-modules v2.11.0 and all seem to have the same issue.
Is this possibly the reason for the issue? If yes, how do I solve it? I tried hacking into the buildroot/package/lttng-modules/lttng-modules.mk and lttng-modules.hash files but I still faced issues with the wrong sha256 hashes. Can you please help?
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14501
--- Comment #4 from Fabrice Fontaine <[email protected]> --- From understanding, the issue is raised on kernel >= 5.6 and lttng-modules has fixed this issue with
https://github.com/lttng/lttng-modules/commit/edfdcb685c3f56dde803244449f79ad7bed03798
But there is a lot of other commits needed to be able to build on newer kernels so I think that a bump is indeed the best course of action.
You can find a patch here:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14501
--- Comment #5 from Sreedhar Mahadevan <[email protected]> --- Thanks a lot for the response. I shall try this out and give a feedback.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14501
--- Comment #6 from Fabrice Fontaine <[email protected]> --- FYI, patch was applied on master with
https://git.buildroot.net/buildroot/commit/?id=48b77b25b71fa3c47b8d6fac1da46ea122715350
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14501] lttng-modules v2.11 package fails to build
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14501
Sreedhar Mahadevan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED--- Comment #7 from Sreedhar Mahadevan <[email protected]> --- Thanks a lot for the solutions and sorry for the late reply. I was able to get it built successfully using the v2.11.9 version of lttng-modules by changing the versions in the lttng-modules.mk and lttng-modules.hash files.
Thanks again for the information about the patch on master. Really appreciate it.
The bug report can be closed.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot