iovisor / iovisor/bcc

undefined reference to `getPollyPluginInfo() with ubuntu 20.04

Open
#4,422 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

I have linking problem if I want to build the tree after installing the described dependencies.
I have ubuntu 20.04 installed and some dependencies failed ;-(
E: Unable to locate package libllvm14
E: Unable to locate package llvm-14-dev
E: Unable to locate package libclang-14-dev
...
E: Unable to locate package libllvm3.7
E: Couldn't find any package by glob 'libllvm3.7'
E: Couldn't find any package by regex 'libllvm3.7'
E: Unable to locate package llvm-3.7-dev
E: Couldn't find any package by glob 'llvm-3.7-dev'
E: Couldn't find any package by regex 'llvm-3.7-dev'
E: Unable to locate package libclang-3.7-dev
E: Couldn't find any package by glob 'libclang-3.7-dev'
E: Couldn't find any package by regex 'libclang-3.7-dev'

When I try to build the tools I get the following error:
[ 36%] Built target bcc_py_python3
[ 36%] Built target bcc-lua
[ 36%] Built target bps
[ 36%] Linking CXX executable CGroupTest
/usr/bin/ld: /usr/lib/llvm-10/lib/libclangCodeGen.a(BackendUtil.cpp.o): in function `(anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr >)':
(.text._ZN12_GLOBAL__N_118EmitAssemblyHelper30EmitAssemblyWithNewPassManagerEN5clang13BackendActionESt10unique_ptrIN4llvm17raw_pwrite_streamESt14default_deleteIS5_EE+0x1f15): undefined reference to `getPollyPluginInfo()'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/cpp/CMakeFiles/CGroupTest.dir/build.make:158: examples/cpp/CGroupTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:1087: examples/cpp/CMakeFiles/CGroupTest.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Any Idea how I can fix that?
I saw that those packages are not available for ubuntu 20.04.

Thanks in advance.
BR,
Erwin

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.