Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for static and dynamic analyzer tools.
https://codechecker.readthedocs.io
Apache License 2.0
2.28k stars 383 forks source link

Runtime failure on archlinux #1775

Closed iamsergio closed 6 years ago

iamsergio commented 6 years ago

Following the exact instructions, on archlinux I get:

$ CodeChecker check -b make -o ~/result Traceback (most recent call last): File "/home/test1/codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 20, in from shared.ttypes import RequestFailed File "/home/test1/codechecker/build/CodeChecker/lib/python2.7/gencodechecker/shared/ttypes.py", line 9, in from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException ImportError: cannot import name TFrozenDict

$ thrift --version Thrift version 0.11.0

According to the Linux requirements this thrift version should work ?

Xazax-hun commented 6 years ago

The documentation is not great about this detail but which thrift version is installed in your pip environment? It should match the thrift compiler version that is installed in your system. Could you check if you can get it work with matching versions?

iamsergio commented 6 years ago

I don't know much about python, but I randomly edited requirements_py/requirements.txt and the error is gone ;)

It's now slowly running, but clangsa is taking 3 minutes per translation unit. Is there a way to use more cores ?

whisperity commented 6 years ago

@iamsergio CodeChecker check and analyze both take a -j parameter. This works in the same way as for make, specifying the number of concurrent analysis jobs. In most cases -j $(nproc) will work.

iamsergio commented 6 years ago

thanks @whisperity, that worked!