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
Abort on startup: CommandLine Error: Option ... registered more than once!
#1855
Comments
CommandLine Error: Option ... registered more than once!
This is only known to be an issue with LLVM 12. The current suggested workaround is to build bcc with: |
As a distro, we want this anyway, but static linking also broke, e.g. bpftrace: bpftrace/bpftrace#1855
As a distro, we want this anyway, but static linking also broke, e.g. bpftrace: bpftrace/bpftrace#1855 void-linux/void-packages@85c4ba0
As a distro, we want this anyway, but static linking also broke, e.g. bpftrace: bpftrace/bpftrace#1855
|
The bcc with |
2 similar comments
The bcc with |
The bcc with |
as explained in the following post: bpftrace/bpftrace#1855 It's almost a year ago...
Thanks very much! It saved me. |
Are you |
No, I use apt on Ubuntu 20 |
I also encountered this problem when compiling bpftrace after reinstalling bcc. My solution is to delete the build directory of bpftrace and recompile (cmake, make, make install) |
The bcc with -DENABLE_LLVM_SHARED=1 doesn't solve my problem : CommandLine Error: Option 'filter' registered more than once! |
The bcc with -DENABLE_LLVM_SHARED=1 doesn't solve my problem : CommandLine Error: Option 'help-list' registered more than once! |
Using Arch with LLVM version:
Recompiling |
llvm 17, -DENABLE_LLVM_SHARED=1 not working |
Ubuntu 22.04: $ llvm-config --version
14.0.0 Recompiling with |
To be clear, For development builds, we now suggest folks use nix: https://github.com/bpftrace/bpftrace/blob/master/docs/nix.md . Obviously you don't have to, but keep in mind our bandwidth for debugging build issues outside of nix is pretty limited. |
Ubuntu2204, llvm 14.0.0 I built bcc master branch with bpftrace is installed by : CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options |
For me, the error was caused by the bcc installed from source. I fixed it with:
|
Bcc static links llvm by default, if we then link LLVM again we get
llvm command line
fatal errors during startup.We should either:
Did you build bcc yourself, if you did make sure you dynamic link against llvm. See debc79e
Originally posted by @fbs in #251 (comment)
: CommandLine Error: Option 'openmp-ir-builder-optimistic-attributes' registered more than once!
The text was updated successfully, but these errors were encountered: