Reputation: 31
I am a llvm beginner. I run the command:
../llvm-6.0.0.src/build/bin/opt -load=./test.so -Hello < main.bc
according to the tutorial but got the error:
opt: CommandLine Error: Option 'use-dbg-addr' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options
I googled again and again, and got nothing about this error.
Upvotes: 3
Views: 1503
Reputation: 2329
You need a LLVM build with shared libraries enabled, which corresponds to cmake
options BUILD_SHARED_LIBS=On
. You can check what type of LLVM you have installed by either checking its lib
directory or executing:
llvm-config --shared-mode
This should report shared
; anything else will require you to recompile.
Upvotes: 4