klocwork报错:Error occurred during build: C/C+ defects detection stage failed. Program exited with 139

docker已经安装klocwork server,在jenkins中将编译在klocwork 环境中运行后报错

4> 6 error(s) and 0 warning(s)
December 26, 2018 5:17:51 AM UTC: Compilation stage completed
December 26, 2018 5:17:51 AM UTC: Running C/C++ defects detection stage...
Error occurred during build: C/C++ defects detection stage failed. Program exited with 139

原因是缺少c/c++相关的库
解决方法:docker中安装下面依赖库

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install lsb-core 
sudo apt-get install libc6:i386 libgcc1:i386
sudo apt-get install lib32tinfo5

官网资料:https://support.roguewave.com/documentation/klocwork/en/2017/supportedplatforms/

猜你喜欢

转载自blog.csdn.net/liurizhou/article/details/86669609