首页 > 技术文章 > klocwork报错:Error occurred during build: C/C+ defects detection stage failed. Program exited with 139

liurizhou 2018-12-26 17:29 原文

 

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

 

推荐阅读