FS#71163 - [bcc] Linking error with bpftrace

Attached to Project: Community Packages
Opened by Daniel Xu (dxu) - Monday, 07 June 2021, 18:43 GMT
Last edited by Anatol Pomozov (anatolik) - Tuesday, 08 June 2021, 17:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

bpftrace aborts on startup with:
```
$ sudo bpftrace --info
: CommandLine Error: Option 'openmp-ir-builder-optimistic-attributes' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
[1] 322760 abort sudo bpftrace --info
```

This is due to linking errors with LLVM 12. See https://github.com/iovisor/bpftrace/issues/1855 .

Additional info:
* package version(s)
Version : 0.20.0-2

* config and/or log files etc.
See above

* link to upstream bug report, if any
See above

Steps to reproduce:

See above
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Tuesday, 08 June 2021, 17:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.20.0-3
Comment by Daniel Xu (dxu) - Monday, 07 June 2021, 18:44 GMT
The suggested fix is to compile bcc with `-DENABLE_LLVM_SHARED=1` cmake flag. Is this an acceptable fix?

Not sure if it's intentional that bcc is statically linked with LLVM.

Loading...