Error: : CommandLine Error: Option 'verify-dom-info' registered more than once!
ergawy opened this issue · 2 comments
This is not an issue with AnyDSL specifically but rather (I guess) a problem with linking against llvm libs (because of my system setup). I am asking for help in case somebody faced the same problem before.
Today, I had to install some new packages (bumblebee and cuda toolkit) to work on AnyDSL on Linux rather Windows like I used to. During the process, I guess some packages needed to install llvm libs. Running: dnf list installed | grep llvm
, produces the following output:
llvm-libs.i686 3.9.1-2.fc25 @updates
llvm-libs.x86_64 3.9.1-2.fc25 @updates
Now (using the standard AnyDSL installation), when I try to build something using impala (e.g. stincilla), I get the following error:
[ 2%] Generating gaussian.ll
: CommandLine Error: Option 'verify-dom-info' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
CMakeFiles/gaussian.dir/build.make:79: recipe for target 'gaussian.ll' failed
According to this (http://lists.llvm.org/pipermail/lldb-dev/2015-March/006852.html), this might be an issue of linking some llvm libs twice.
Does anyone have any pointers on how to resolve this issue?
That's caused by transient dependencies due to linking LLVM twice into our binary. This is only a problem if you have static LLVM libraries (this is the default in our scripts). To fix this, you can
- use shared LLVM libraries
- revert the problematic commit cdl-saarland/rv@9096ff7
Reverting the commit will work on Linux (by coincidence), but fail to link libRV on macOS and Windows.
Fixed in cdl-saarland/rv@41620d3.