On Tue, Mar 13, 2018 at 8:56 AM, Suse Shi via iovisor-dev
<iovisor-dev@lists.iovisor.org> wrote:
> env.         EL7
> kernel      4.14.23-1.el7uek.x86_64
> http://yum.oracle.com/repo/OracleLinux/OL7/developer_UEKR5/x86_64/index.html
>
> with llvm
> llvm-toolset-7-libomp-4.0.1-1.el7.x86_64
> llvm-toolset-7-llvm-libs-4.0.1-3.el7.x86_64
> llvm-toolset-7-clang-libs-4.0.1-1.el7.x86_64
> llvm-toolset-7-llvm-4.0.1-3.el7.x86_64
> llvm-toolset-7-llvm-devel-4.0.1-3.el7.x86_64
> llvm-toolset-7-clang-4.0.1-1.el7.x86_64
> llvm-toolset-7-compiler-rt-4.0.1-1.el7.x86_64
> llvm-toolset-7-llvm-static-4.0.1-3.el7.x86_64
> llvm-toolset-7-clang-devel-4.0.1-1.el7.x86_64
> llvm-toolset-7-runtime-4.0.1-2.el7.x86_64
>
>
> err msg:
> $make
> [  3%] Built target bpf-shared
> [  9%] Built target clang_frontend
> [ 11%] Built target bpf-static
> [ 14%] Built target api-static
> [ 17%] Built target usdt-static
> [ 27%] Built target b_frontend
> [ 41%] Built target bcc-shared
> [ 48%] Built target bcc-loader-static
> [ 61%] Built target bcc-lua-static
> [ 70%] Built target bcc-static
> [ 71%] Built target bcc_py
> [ 74%] Built target bcc-lua
> [ 76%] Built target bps
> [ 78%] Built target FollyRequestContextSwitch
> [ 79%] Built target CPUDistribution
> [ 81%] Built target LLCStat
> [ 83%] Built target HelloWorld
> [ 85%] Built target RecordMySQLQuery
> [ 86%] Built target TCPSendStack
> [ 88%] Built target RandomRead
> [ 89%] Linking CXX executable test_libbcc
> CMakeFiles/test_libbcc.dir/test_usdt_probes.cc.o: In function
> `____C_A_T_C_H____T_E_S_T____37()':
> test_usdt_probes.cc:(.text+0x7ffc): undefined reference to
> `__dtrace_libbcc_test___sample_probe_1(unsigned long, unsigned long)'
> collect2: error: ld returned 1 exit status
> make[2]: *** [tests/cc/CMakeFiles/test_libbcc.dir/build.make:394:
> tests/cc/test_libbcc] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1398:
> tests/cc/CMakeFiles/test_libbcc.dir/all] Error 2
> make: *** [Makefile:139: all] Error 2

This should be related to your /usr/include/sys/sdt.h
That file probably introduced this additional symbol
__dtrace_libbcc_test___sample_probe_1.
Maybe you can check whether additional macro definition needed to avoid this.


>
> ====================
> any help is welcome, thanks.
>
> --
> Regards,
> -suse
>
> _______________________________________________
> iovisor-dev mailing list
> iovisor-dev@lists.iovisor.org
> https://lists.iovisor.org/mailman/listinfo/iovisor-dev
>
_______________________________________________
iovisor-dev mailing list
iovisor-dev@lists.iovisor.org
https://lists.iovisor.org/mailman/listinfo/iovisor-dev

Reply via email to