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

Fail to compile bcc on debian stretch #1735

Closed
yuzibo opened this issue May 7, 2018 · 4 comments
Closed

Fail to compile bcc on debian stretch #1735

yuzibo opened this issue May 7, 2018 · 4 comments

Comments

@yuzibo
Copy link

yuzibo commented May 7, 2018

Hello,
i have followed the instructions
https://github.com/iovisor/bcc/blob/master/INSTALL.md#debian---source
Please note: i don't install linux-image-xx,because i installed my custom kernel : 4.17-rc2.
Then, i installed BCC building dependencies,
Last, i got the error:
69% tests passed, 11 tests failed out of 35

Total Test time (real) = 186.24 sec

The following tests FAILED:
7 - py_test_xlate1_c (Failed)
8 - py_test_call1 (Failed)
10 - py_test_trace2 (Failed)
11 - py_test_trace3_c (Failed)
15 - py_test_brb (Failed)
16 - py_test_brb2 (Failed)
17 - py_test_clang (Failed)
18 - py_test_histogram (Failed)
27 - py_test_tools_smoke (Failed)
29 - py_test_usdt (Failed)
32 - lua_test_clang (Failed)
Errors while running CTest
Makefile:86: recipe for target 'test' failed
make[2]: *** [test] Error 8
make[2]: Leaving directory '/home/yubo/git/bcc/obj-x86_64-linux-gnu'
dh_auto_test: make -j1 test ARGS+=-j1 returned exit code 2
debian/rules:16: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/home/yubo/git/bcc'
debian/rules:12: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc -b failed

How i can pass the python_test_*?
Thank you!

@pchaigno
Copy link
Contributor

pchaigno commented May 7, 2018

Could you add the error messages for these tests to your original post?

@yuzibo
Copy link
Author

yuzibo commented May 7, 2018

@pchaigno
 Thank you very much for your fast reply!
bcc install log is Here
Thanks again

@yonghong-song
Copy link
Collaborator

cc @AndrewAday @arssher
Maybe you can refer to the issue #1434 for more information about pass effort on debian. For some networking related tests, probably you lack certain python modules.

@yuzibo
Copy link
Author

yuzibo commented May 11, 2018

Thanks all.
I have install bcc refer to here
Just try:

cmake .
sudo make
sudo make install 

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

No branches or pull requests

3 participants