Skip to content
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

:CommandLine Error: Option 'debug' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options #1006

Closed
pzzpl opened this issue Jul 12, 2022 · 1 comment

Comments

@pzzpl
Copy link

pzzpl commented Jul 12, 2022

environment

LLVM 12.0.1 is source code compilation and installation. The following is the compilation command.

cmake -S llvm -B build -G  "Unix Makefiles"   -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi"   -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON   -DCMAKE_BUILD_TYPE="Release"

OS
Linux c678e0d6027e 3.10.0-862.14.1.1.h224.eulerosv2r7.x86_64 #1 SMP Tue Feb 12 00:00:00 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

gcc (GCC) 7.3.0

Situation

Then I downloaded the MULL source code and compiled it. mull-ir-frontend-12 can run as a clang plug-in with no problems. But mull-runner-12 reported the following error.

-fexperimental-new-pass-manager  -fpass-plugin=/home/mull-main/build/tools/mull-ir-frontend/mull-ir-frontend-12 -g   -grecord-command-line

error:

[root@c678e0d6027e mull-runner]# ./mull-runner-12  --version
: CommandLine Error: Option 'debug' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted
@pzzpl
Copy link
Author

pzzpl commented Jul 13, 2022

This seems to be a bug in llvm12(bpftrace/bpftrace#1855). I've had this problem since I compiled and used LLVM13.

@pzzpl pzzpl closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant