-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure.ac: add --disable-tests #162
Conversation
Allow the user to explicitly disable tests Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
What is the rationale for this change? |
A faster compilation time and avoiding build failures on downstream projects (such as buildroot). For example, we have the following build failure on riscv32 glibc toolchains because
Full build log is available here: http://autobuild.buildroot.org/results/dd3/dd39188a7191efa512a51f18f4c34d9ee711a6a7/build-end.log |
Do you have additional comments? An other option would be to disable lttng-tools on riscv32 if you don't want to support this architecture. |
Hi, While we do not officially support riscv32 (on our CI at least), considering only this tests compilation seems to be having problem we might want to look into "porting" them, instead of disabling them, and see if lttng break down anywhere else at runtime. AFAIU risv32 uses __NR_ppoll_time64 and __NR_pselect6_time64. Would you be able to spin up a patch since you seems to have a bit more context and might have a risv32 system laying somewhere? That would be really helpful. Cheers |
Unfortunately, I have no riscv32 system. I'm just sending this patch to fix the failures raised by buildroot autobuilders. |
To be frank, disabling compilation of tests is not really fixing anything here neither for buildroot or lttng in regards to architecture support. You are simply pushing the "problem" under the rug. Does buildroot run the test suite normally for projects? If not, then feel free to use this patch at buildroot level for now. Still the patch does make sense in the context that we already disable tests if we are doing a partial build. Exposing |
In buildroot we don't run tests and also don't build them if it can be avoided. Tests often use features that are not available on niche architectures (even something simple as fork()) so disabling them is a quick-win to make it possible to use a package on such an architecture. I have no idea why lttng uses syscall instead of simply libc's ppoll and pselect. If you use a direct syscall that uses time_t (or struct timespec), you should always check if the 64-bit version of that syscall is available and use it if it is. This makes sure that you have Y2038 support on all 32-bit architectures. But doing something like that is way too complicated for a drive-by contributor. |
Sure, I understand. Then, feel free to use this patch at buildroot level for now. Keep in mind that we do not offer any semblance of "support" for the riscv32 platform as of today. We will get to it at some point. |
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf (From OE-Core rev: a6c4e605562a38c2ae915e4dcf8bfadcc93d2dcd) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf (From OE-Core rev: 68b07bb) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 68b07bb) Signed-off-by: Steve Sakoman <steve@sakoman.com>
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf (From OE-Core rev: 035fddfa35ccf17d3f1636f6410e626240fe527d) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 68b07bb7f0f01925f9da1cb966239ee49d5c84e3) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Source: poky MR: 121051 Type: Integration Disposition: Merged from poky ChangeID: 6366d8b Description: lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf (From OE-Core rev: 035fddfa35ccf17d3f1636f6410e626240fe527d) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 68b07bb7f0f01925f9da1cb966239ee49d5c84e3) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
lttng-tools requires SYS_ppoll and SYS_pselect6 which are not supported on riscv32. This has been confirmed by lttng-tools upstream. lttng/lttng-tools#162 It's also turned off for riscv32 in meta-riscv. https://github.com/riscv/meta-riscv/blob/master/conf/layer.conf (From OE-Core rev: 68b07bb7f0f01925f9da1cb966239ee49d5c84e3) Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Allow the user to explicitly disable tests
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com