bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Error: unknown argument: '-fcf-protection'

Open Morpheus039 opened this issue 1 year ago • 2 comments

I installed bcc on my Ubuntu 18.04 server, and I tried to test if bcc has been successfully installed with bcc tools, I run './tcptop.py' but get ModuleNotFoundError: No module named bcc then I changed to 'python3 ./tcptop.py' and got 2 lines error: error:unknown argument: '-fcf-protection' LLVM ERROR: What's wrong with this?

Morpheus039 avatar Jan 18 '24 03:01 Morpheus039

The same issue was encountered while running official_hello_fields.py or any other progs that run smoothly on other machines. It may be due to the kernel version being too old.

Sys info for my machines that encountered issues:

OS: Ubuntu 18.04.6 LTS x86 
Kernel: 4.15.0-213-generic 

On this machine most progs run successfully:

OS: Ubuntu 20.04 LTS x86 

I hope it might help u.

LouisLiuNova avatar Jan 19 '24 11:01 LouisLiuNova

The failure in ubuntu 18.04 is due to old compiler. The flag "-fcf-protection" likely unsupported by the compiler on 18.04. Ubuntu 18.04 has been depreciated, please use a newer ubuntu version.

yonghong-song avatar Jan 28 '24 17:01 yonghong-song