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

Fix some redundant spaces in the INSTALL.md #3977

Closed
wants to merge 4 commits into from
Closed

Fix some redundant spaces in the INSTALL.md #3977

wants to merge 4 commits into from

Conversation

JadeFlute0127
Copy link
Contributor

@JadeFlute0127 JadeFlute0127 commented May 4, 2022

Fix some redundant spaces in the INSTALL.md
some command line like : "curl -LO http://releases.llvm.org/7.0.1/llvm-7.0.1.src.tar.xz" should be "curl -LO http://releases.llvm.org/7.0.1/llvm-7.0.1.src.tar.xz".

And other:
When "make install bcc" in CentOS(7.X) system, we need the versions of llvm and clang to be greater than or equal to 10.0.0. Otherwise, an error will be reported as follows:

/tmp/bcc/src/cc/bpf_module.cc: In member function ‘virtual void ebpf::MyMemoryManager::notifyObjectLoaded(llvm::ExecutionEngine*, const llvm::object::ObjectFile&)’:
/tmp/bcc/src/cc/bpf_module.cc:108:46: error: no matching function for call to ‘llvm::object::SectionRef::getName() const’
       auto sec_name = section.get()->getName();

When "make install bcc" in CentOS system, we need the versions of llvm and clang to be greater than or equal to 10.0.0. Otherwise, an error will be reported as follows:
```
/tmp/bcc/src/cc/bpf_module.cc: In member function ‘virtual void ebpf::MyMemoryManager::notifyObjectLoaded(llvm::ExecutionEngine*, const llvm::object::ObjectFile&)’:
/tmp/bcc/src/cc/bpf_module.cc:108:46: error: no matching function for call to ‘llvm::object::SectionRef::getName() const’
       auto sec_name = section.get()->getName();
```
                                              ^
@chenhengqi
Copy link
Collaborator

And other: When "make install bcc" in CentOS system, we need the versions of llvm and clang to be greater than or equal to 10.0.0. Otherwise, an error will be reported as follows:

/tmp/bcc/src/cc/bpf_module.cc: In member function ‘virtual void ebpf::MyMemoryManager::notifyObjectLoaded(llvm::ExecutionEngine*, const llvm::object::ObjectFile&)’:
/tmp/bcc/src/cc/bpf_module.cc:108:46: error: no matching function for call to ‘llvm::object::SectionRef::getName() const’
       auto sec_name = section.get()->getName();

Before #3808 is landed, I think this compilation error should be addressed.

@yonghong-song
Copy link
Collaborator

Since we intend to use more recent llvm compilers, changing to llvm10 from llvm7 looks good to me.

1 similar comment
@yonghong-song
Copy link
Collaborator

Since we intend to use more recent llvm compilers, changing to llvm10 from llvm7 looks good to me.

@yonghong-song
Copy link
Collaborator

Could you squash 4 commits into one with proper commit message?

1 similar comment
@yonghong-song
Copy link
Collaborator

Could you squash 4 commits into one with proper commit message?

@JadeFlute0127
Copy link
Contributor Author

OK, I will close this PR and resubmit a new proper one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants