bcc install failing on archlinux
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
Hi,
As suggested in the install instructions, I am using yaourt to install the bcc related packages on my arch linux system. I started with the command - yaourt -S bcc but it fails with the following errors. Could you please suggest the next steps to rectify this.
```
usr/include/llvm/IR/Instructions.h:70:12: note: no known conversion for argument 2 from ‘std::__cxx11::string {aka std::__cxx11::basic_string}’ to ‘unsigned int’
/tmp/yaourt-tmp-pankaj/aur-bcc/src/bcc-0.3.0/src/cc/frontends/b/codegen_llvm.cc: In member function ‘virtual ebpf::StatusTuple ebpf::cc::CodegenLLVM::visit_func_decl_stmt_node(ebpf::cc::FuncDeclStmtNode*)’:
/tmp/yaourt-tmp-pankaj/aur-bcc/src/bcc-0.3.0/src/cc/frontends/b/codegen_llvm.cc:1175:67: error: invalid conversion from ‘const char*’ to ‘unsigned int’ [-fpermissive]
retval_ = new AllocaInst(fn->getReturnType(), "ret", label_entry);
^
In file included from /tmp/yaourt-tmp-pankaj/aur-bcc/src/bcc-0.3.0/src/cc/frontends/b/codegen_llvm.cc:29:0:
/usr/include/llvm/IR/Instructions.h:70:12: note: initializing argument 2 of ‘llvm::AllocaInst::AllocaInst(llvm::Type*, unsigned int, llvm::Value*, const llvm::Twine&, llvm::Instruction*)’
explicit AllocaInst(Type *Ty, unsigned AddrSpace,
^~~~~~~~~~
/tmp/yaourt-tmp-pankaj/aur-bcc/src/bcc-0.3.0/src/cc/frontends/b/codegen_llvm.cc:1177:62: error: invalid conversion from ‘const char*’ to ‘unsigned int’ [-fpermissive]
errval_ = new AllocaInst(B.getInt64Ty(), "err", label_entry);
/tmp/yaourt-tmp-pankaj/aur-bcc/src/bcc-0.3.0/src/cc/frontends/clang/loader.cc: In member function ‘int ebpf::ClangLoader::parse(std::unique_ptr*, std::unique_ptr >*, const string&, bool, const char**, int)’:
/tmp/yaourt-tmp-pankaj/aur-bcc/src/bcc-0.3.0/src/cc/frontends/clang/loader.cc:231:38: error: ‘IK_C’ was not declared in this scope
FrontendInputFile(main_path, IK_C));
^~~~
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the yaourt bcc 0.3.0 build on Arch Linux, then inspect the reported failures in src/cc/frontends/b/codegen_llvm.cc and src/cc/frontends/clang/loader.cc. Check the installed LLVM and Clang APIs first; done means the package builds and installs successfully with the supported versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arch-linux, c
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100