bcc icon indicating copy to clipboard operation
bcc copied to clipboard

BCC c++ example HelloWorld is failing with linker error.

Open Kullu14 opened this issue 4 years ago • 1 comments

I am facing below issues while building BCC on Ubuntu 20

kernel version is 5.4 and I am using clang and llvm version as 10

[ 37%] Linking CXX executable HelloWorld /usr/bin/ld: /usr/lib/llvm-10/bin/../lib/libclangCodeGen.a(BackendUtil.cpp.o): in function (anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >)': (.text._ZN12_GLOBAL__N_118EmitAssemblyHelper30EmitAssemblyWithNewPassManagerEN5clang13BackendActionESt10unique_ptrIN4llvm17raw_pwrite_streamESt14default_deleteIS5_EE+0x1f15): undefined reference to getPollyPluginInfo()' clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [examples/cpp/CMakeFiles/HelloWorld.dir/build.make:158: examples/cpp/HelloWorld] Error 1 make[1]: *** [CMakeFiles/Makefile2:1096: examples/cpp/CMakeFiles/HelloWorld.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Kullu14 avatar Jul 29 '20 16:07 Kullu14

+1

hongweipeng avatar Sep 16 '22 15:09 hongweipeng

issue llike thishttps://github.com/iovisor/bcc/issues/3130

10212 avatar Apr 07 '23 07:04 10212