|
Bugzilla – Full Text Bug Listing |
| Summary: | BCC tools fail with LLVM ERROR | ||
|---|---|---|---|
| Product: | [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP6 | Reporter: | Andrea Cervesato <andrea.cervesato> |
| Component: | Basesystem | Assignee: | Shung-Hsi Yu <shung-hsi.yu> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | Normal | ||
| Priority: | P2 - High | CC: | eugenio.paolantonio, matz, pcervinka, petr.vorel, rtsvetkov, shung-hsi.yu, swayammitra.tripathy |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | https://openqa.suse.de/tests/13647181/modules/bcc/steps/8 | ||
| Whiteboard: | |||
| Found By: | openQA | Services Priority: | |
| Business Priority: | Blocker: | Yes | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Andrea Cervesato
2024-03-01 10:00:46 UTC
susetest:~ # /usr/share/bcc/tools/btrfsdist 5 2 LLVM ERROR: susetest:~ # echo $? 1 susetest:~ # /usr/share/bcc/tools/btrfsslower -d 10 LLVM ERROR: susetest:~ # echo $? 1 susetest:~ # /usr/share/bcc/tools/filetop -a 5 10 LLVM ERROR: susetest:~ # echo $? 1 Perhaps it is solved with https://build.suse.de/request/show/320592/changes ? (In reply to Radoslav Tzvetkov from comment #2) > Perhaps it is solved with https://build.suse.de/request/show/320592/changes ? Thanks for pointing on that SR. It can't be solved by that as this change is responsible error. When digging in the history last working bcc version was 0.28 and first failing is 0.29. Mentioned SR upgraded bcc to 0.29. Thanks for implementing the bcc test! Looks like bcc ended up building against the (too old) LLVM 7 since SR320592 > $ zypper install bcc-tools > ... > The following 5 NEW packages are going to be installed: > bcc-tools libbcc0 libclang7 libLLVM7 python3-bcc Likely due to my choice of using %product_libs_llvm_ver[1] that is present in openSUSE but not in SLES, so we ended up building against the default LLVM which was LLVM 7 > # Use the latest default LLVM version available, unless it is not yet > # supported by bcc. > %if 0%{?product_libs_llvm_ver} > 17 > %define llvm_major_version 17 > %else > %define llvm_major_version %{nil} > %define llvm_major_version %{nil} > %endif I'll update the LLVM verion-chosing logic so it works on SLES 1: https://build.opensuse.org/request/show/1134405 I ended up doing the following for a version-choosing logic that works both on OBS and IBS. For openSUSE just use the default unless it is too new to work (by looking at the %product_libs_llvm_ver macro that exists on OBS), for SLE15+ the default LLVM version is always 7 and doesn't work, so I just hard code the newest LLVM that's available.
> # Use default LLVM on openSUSE unless it is not yet supported
> %if 0%{?suse_version} >= 1600 || 0%{?is_opensuse}
> %if 0%{?product_libs_llvm_ver} > 17
> %define llvm_major_version 17
> %else
> %define llvm_major_version %{nil}
> %endif
> %else
> # Hard-code latest LLVM for SLES, the default version is too old
> %if 0%{?sle_version} == 150600
> %define llvm_major_version 17
> %else
> %if 0%{?sle_version} == 150500
> %define llvm_major_version 15
> %else
> %if 0%{?sle_version} == 150400
> %define llvm_major_version 11
> %endif
> %endif
> %endif
> %endif
I've check that with the above change bcc indeed build against LLVM 17, so with with SR323752 problem should be fixed. But I'll rather wait for confirmation rather then closing this right away.
Hello Shung , Could you please update the bug status to fix if the issue is already fixed. https://build.suse.de/request/show/323752 is is still in review and fix didn't get to 15-SP6 yet. Thanks(In reply to Petr Cervinka from comment #9) > https://build.suse.de/request/show/323752 is is still in review and fix > didn't get to 15-SP6 yet. Re-opening this issue. @Eugenio do you think SR323752 could be accepted? As far as I can tell bcc seems to build fine in SUSE:SLE-15-SP6:GA:Staging:S. Hi Shung-Hsi, apologies, I thought I pinged you but I didn't: bpftrace needs a matching update as it now becomes unresolvable due to conflict for providers of llvm17-devel needed by bcc-devel, (provider llvm17-devel is in conflict with llvm15-devel) could you please submit bpftrace as well? Thanks in advance (and sorry for the delay!) (In reply to Eugenio Paolantonio from comment #11) > apologies, I thought I pinged you but I didn't: bpftrace needs a matching > update as it now becomes unresolvable due to > > conflict for providers of llvm17-devel needed by bcc-devel, (provider > llvm17-devel is in conflict with llvm15-devel) > > could you please submit bpftrace as well? Thanks in advance (and sorry for > the delay!) Understood and no worries, will work on it right now. Submitted bcc (with an additional fix in spec file) with SR#324892 and bpftrace with SR#324893 Staged will come after the RC1 A submit request mentioning this bug was successfully integrated into build 77.1. Please set it as resolved and eventually verify. Please indicate the current expectation for fixing the bug using the Target Milestone field. What do we believe is possible? In the cases where we do not plan to deliver or cannot guess (!?) please do not enter anything, but you can comment if you wish to provide more details. (In reply to Radoslav Tzvetkov from comment #16) > A submit request mentioning this bug was successfully integrated into build > 77.1. > > Please set it as resolved and eventually verify. Build 77.1 is finally fine: https://openqa.suse.de/tests/13914887 Setting to verified per previous comment. |