dl9pf / meta-codechecker Goto Github PK
View Code? Open in Web Editor NEWLayer to support CodeChecker as a frontent to clang static analysis
License: MIT License
Layer to support CodeChecker as a frontent to clang static analysis
License: MIT License
I tried a yocto build of R-Car Gen3 using meta-codechecker.
Build succeeded. However, many errors were counted in the Analyzer Statistics of Codechecker.
From the do_codecheckeranalyse log, it appears that clang does not support the "-mtune=cortex-a57.cortex-a53" flag and that analyzing has failed. An example is shown below.
... [INFO 2021-09-08 09:36] - Starting static analysis ... [ERROR 2021-09-08 09:36] - Analyzing inffast.c with clang-tidy failed! [ERROR 2021-09-08 09:36] - error: the clang compiler does not support '-mtune=cortex-a57.cortex-a53' [clang-diagnostic-error] [ERROR 2021-09-08 09:36] - 1 error generated. Error while processing /data/bsp/build/tmp/work/aarch64-poky-linux/zlib/1.2.11-r0/zlib-1.2.11/inffast.c. Found compiler error(s). [ERROR 2021-09-08 09:36] - Analyzing adler32.c with clang-tidy failed! [ERROR 2021-09-08 09:36] - error: the clang compiler does not support '-mtune=cortex-a57.cortex-a53' [clang-diagnostic-error] [ERROR 2021-09-08 09:36] - 1 error generated. Error while processing /data/bsp/build/tmp/work/aarch64-poky-linux/zlib/1.2.11-r0/zlib-1.2.11/adler32.c. Found compiler error(s). ...
Do you have any good ideas for a successful analysis?
#11 restored compatibility with dunfell on current master branch.
However dunfell branch still points to old commit from over a year ago.
The branch should be moved to latest master (and keep being moved as master is being updated) or maybe removed to avoid the moving overhead.
Currently we are use manually pip to install codechecker:
meta-codechecker/recipes-devtools/codechecker/codechecker_6.17.0.bb
Lines 33 to 36 in 2231a85
Next version of Yocto kirkstone
now use pip instead of setup.py, as Python deprecated setup.py upstream.
The old behaviour is now in setuptools3_legacy.bbclass
. The new setuptools3.bbclass
use pip under the hood and should work with codechecker. This would allow us to drop our custom do_install step.
See this thread for more info: https://lore.kernel.org/all/CAAnfSTvjPeyJHjd-FiYoXmxPMaXM0AH9KMXm6n5ooJNfQp80Sw@mail.gmail.com/
This will also remove this warning on kirkstone
:
WARNING: distutils-common-base.bbclass is deprecated, please use setuptools3-base.bbclass instead
CodeChecker v6.19.1 is the most current version. Version v6.20.0-rc1 is also available.
Update the recipes in this layer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.