← All tasks
cppbpftrace/bpftrace #1855Not a task: not reproduced

Abort on startup: `CommandLine Error: Option ... registered more than once!`

envgap__bpftrace__bpftrace-1855

01 / FAILURE SIGNATURE

As reported upstream

: CommandLine Error: Option 'openmp-ir-builder-optimistic-attributes' registered more than once!
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
0f6214d7e742e96ccdd0953129c799e19f1d4b5c
Manifest
src/ast/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

bpftrace/bpftrace #1855 · read the original issue
Bcc static links llvm by default, if we then link LLVM again we get `llvm command line` fatal errors during startup.



We should either:



- find out whether we can fix this at link time. Maybe if we specify bcc before llvm it grabs most of the stuff it needs from the bcc archive, preventing issues. Although it seems tricky to get right

- Note in the docs that bcc needs to be built with shared llvm, see:



---

Did you build bcc yourself, if you did make sure you dynamic link against llvm. See debc79ef9ad4784258705a92ae70f9c7689a9c24



_Originally posted by @fbs in https://github.com/iovisor/bpftrace/issues/251#issuecomment-846424774_



---



: CommandLine Error: Option 'openmp-ir-builder-optimistic-attributes' registered more than once!
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]