Skip to content

Commit

Permalink
vagrant: dynamic link bcc against llvm
Browse files Browse the repository at this point in the history
When static linking LLVM into bcc we run into issues:

```
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted (core dumped)
```

There might be a smart way to fix this in cmake, maybe just specifying
 bcc before llvm on the linker cli, but this is easier atm.
  • Loading branch information
fbs committed May 13, 2021
1 parent 6bc01ca commit debc79e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ mkdir -p bcc/build
cd bcc/build
git checkout v0.19.0
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local \
-DENABLE_EXAMPLES=0 -DENABLE_TESTS=0 -DENABLE_MAN=0
-DENABLE_EXAMPLES=0 -DENABLE_TESTS=0 -DENABLE_MAN=0 \
-DENABLE_LLVM_SHARED=1
make && sudo make install && sudo ldconfig
EOF

Expand Down

0 comments on commit debc79e

Please sign in to comment.