-
Notifications
You must be signed in to change notification settings - Fork 102
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
[BUG]LLVM error “option … registered more than once” while start the polycubed #335
Labels
bug
Something isn't working
Comments
@sebymiano Did you experienced anything about this? |
OK, I will |
@frisso Honestly, I have never had this kind of problem, but I haven't tested the latest versions of Polycube. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
the polycubed can not active and report LLVM error “option … registered more than once” when i run the polycubed
To Reproduce
Steps to reproduce the behavior:
build with cmake :
cmake .. -DENABLE_PCN_IPTABLES=ON
-DENABLE_SERVICE_BRIDGE=OFF
-DENABLE_SERVICE_DDOSMITIGATOR=OFF
-DENABLE_SERVICE_FIREWALL=OFF
-DENABLE_SERVICE_HELLOWORLD=OFF
-DENABLE_SERVICE_IPTABLES=ON
-DENABLE_SERVICE_K8SFILTER=OFF
-DENABLE_SERVICE_K8SWITCH=OFF
-DENABLE_SERVICE_LBDSR=OFF
-DENABLE_SERVICE_LBRP=OFF
-DENABLE_SERVICE_NAT=OFF
-DENABLE_SERVICE_PBFORWARDER=OFF
-DENABLE_SERVICE_ROUTER=OFF
-DENABLE_SERVICE_SIMPLEBRIDGE=OFF
-DENABLE_SERVICE_SIMPLEFORWARDER=OFF
-DENABLE_SERVICE_TRANSPARENTHELLOWORLD=OFF
-DENABLE_SERVICE_SYNFLOOD=OFF
-DENABLE_SERVICE_PACKETCAPTURE=OFF
i run
systemctl start polycubed
where the build successExpected behavior
polycubed active
Please tell us about your environment:
/var/log/polycube/polycubed.log
Additional context
Add any other context about the problem here.
Bcc-static default USES ENABLE_LLVM_SHARED=OFF, which causes Polycubed to compile LLVM_liBS in the BCC into the executable at compile time.But Polycubed dynamically links clang, which links to LLVM's dynamic libraries, causing the problem.I recommend that add the option
ENABLE_LLVM_SHARED
to src/CMakelists.txtThe text was updated successfully, but these errors were encountered: