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

[BUG]LLVM error “option … registered more than once” while start the polycubed #335

Open
l30006821 opened this issue Sep 21, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@l30006821
Copy link

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 success

Expected behavior

polycubed active

Please tell us about your environment:

  1. OS details: other linux distributions(openeuler)
  2. Kernel details: 4.19
  3. Polycube Version: 0.9.0
  4. Polycube Log: Attach the log from /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.txt

@l30006821 l30006821 added the bug Something isn't working label Sep 21, 2020
@frisso
Copy link
Contributor

frisso commented Sep 24, 2020

@sebymiano Did you experienced anything about this?
@l30006821 Would it possible to propose a patch? Thanks!

@l30006821
Copy link
Author

OK, I will

@sebymiano
Copy link
Collaborator

@frisso Honestly, I have never had this kind of problem, but I haven't tested the latest versions of Polycube.
I don't know if there have been some changes recently in Polycube/BCC that could cause this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants