-
Notifications
You must be signed in to change notification settings - Fork 104
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
[Question] How to Build in CentOS7? #381
Comments
Hi @andywu106, |
@andywu106 I have the same problem. Would you like to solve your problem below? |
Hi All, I manage to install the Polycube from source code and no error pops out when compiling. However, I cannot start the service. sudo find / -name libpistache.so.0 I tried to export the path to the LD_LIBRARY_PATH but it did not work. echo $LD_LIBRARY_PATH My environmentOS details: CentOS Linux release 7.6 This is how I install.#Dependencies yum groupinstall -y "Development Tools" #Install llvm+clang yum install -y centos-release-scl yum-utils #Update CMake git clone https://github.com/Kitware/CMake.git #Install libyang-dev wget https://github.com/CESNET/libyang/archive/refs/tags/v0.16-r3.tar.gz #Install pistache git clone https://github.com/oktal/pistache.git #Install libtins git clone --branch v3.5 https://github.com/mfontanini/libtins.git #LuaJIT wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz #Install Prometheus-cpp git clone https://github.com/jupp0r/prometheus-cpp.git cd ~ #Polycube git clone https://github.com/polycube-network/polycube |
Hi All, I figure it out. I edit the /etc/ld.so.conf file and put the following directory into it. echo /usr/local/lib64 Now, I got this error when starting Polycubed. Dec 14 04:25:00 localhost.localdomain polycubed[3866]: [2022-12-14 04:25:00.969] [polycubed] [info] loading configuration from /etc/polycube/polycubed.conf Don't know how to google this. |
Describe the bug
I try to build polycube In CentOS7,but get following error:
Scanning dependencies of target b_frontend
[ 21%] Building CXX object src/libs/bcc/src/cc/frontends/b/CMakeFiles/b_frontend.dir/loader.cc.o
[ 21%] Building CXX object src/libs/bcc/src/cc/frontends/b/CMakeFiles/b_frontend.dir/codegen_llvm.cc.o
/cache1/code_hub/polycube/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc: In member function ‘ebpf::StatusTuple ebpf::cc::CodegenLLVM::emit_atomic_add(ebpf::cc::MethodCallExprNode*)’:
/cache1/code_hub/polycube/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc:722:45: error: no matching function for call to ‘llvm::IRBuilder<>::CreateAtomicRMW(llvm::AtomicRMWInst::BinOp, llvm::Value*&, llvm::Value*&, llvm::Align, llvm::AtomicOrdering)’
AtomicOrdering::SequentiallyConsistent);
^
In file included from /cache1/code_hub/polycube/src/libs/bcc/src/cc/frontends/b/codegen_llvm.cc:31:
/usr/local/include/llvm/IR/IRBuilder.h:1716:18: note: candidate: ‘llvm::AtomicRMWInst* llvm::IRBuilderBase::CreateAtomicRMW(llvm::AtomicRMWInst::BinOp, llvm::Value*, llvm::Value*, llvm::AtomicOrdering, llvm::SyncScope::ID)’
AtomicRMWInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val,
^~~~~~~~~~~~~~~
/usr/local/include/llvm/IR/IRBuilder.h:1716:18: note: no known conversion for argument 4 from ‘llvm::Align’ to ‘llvm::AtomicOrdering’
make[2]: *** [src/libs/bcc/src/cc/frontends/b/CMakeFiles/b_frontend.dir/build.make:107: src/libs/bcc/src/cc/frontends/b/CMakeFiles/b_frontend.dir/codegen_llvm.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2365: src/libs/bcc/src/cc/frontends/b/CMakeFiles/b_frontend.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 23%] Building CXX object src/libs/bcc/src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o
[ 23%] Building CXX object src/libs/bcc/src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o
/cache1/code_hub/polycube/src/libs/bcc/src/cc/frontends/clang/kbuild_helper.cc:80:3: warning: multi-line comment [-Wcomment]
// USERINCLUDE :=
^
/cache1/code_hub/polycube/src/libs/bcc/src/cc/frontends/clang/kbuild_helper.cc:89:3: warning: multi-line comment [-Wcomment]
// LINUXINCLUDE :=
^
[ 23%] Building CXX object src/libs/bcc/src/cc/frontends/clang/CMakeFiles/clang_frontend.dir///common.cc.o
[ 23%] Linking CXX static library libclang_frontend.a
[ 23%] Built target clang_frontend
make: *** [Makefile:150: all] Error 2
Please tell us about your environment:
Additional context
Is possible to build and run in CentOS7?
The text was updated successfully, but these errors were encountered: