/bin/sh: 1: -pmc: not found

I try to build the source project,but i find the mistake “-pmc:not found”. And the args is used by flex and bison in the “src/adiff/CMakeList”. I don’t know how to solve it. By the way i use python in the system insteading of the anaconda. Hope for your reply. Thanks

[ 15%] Generating mcParser.cc, mcParser.hh
/bin/sh: 1: -pmc: not found
make[2]: *** [src/adiff/CMakeFiles/modelcomp.dir/build.make:79:src/adiff/mcParser.cc] 错误 127
make[1]: *** [CMakeFiles/Makefile2:550:src/adiff/CMakeFiles/modelcomp.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务…

I try to build the devsim in ubuntu18.04 with python3.6.9 and it works,but i try to build in ubuntu22.04 with python3.10.12 which failed with the problem above.

Why don’t you just download the the compiled binaries. The founder have build executable files for different OS’s.
https://doi.org/10.5281/zenodo.1186952

1 Like

The same build script should work on both systems:

bash scripts/build_ubuntu_18.04.sh test

where test is just a name.

this implicitly loads its configuration from:

cmake/ubuntu_18.04.cmake

If you change the DEVSIM_CONFIG, you need to create the matching filename in the cmake directory.

Packages to install are in

scripts/install_ubuntu_depend.sh 

Hi @QsChen,

The releases on Zenodo are quite old. To get the newest package, it can be installed via pip

pip install devsim

or downloading directly from:
https://pypi.org/project/devsim/#files
or:
https://github.com/devsim/devsim/releases/latest

谢谢,pip安装devsim可以正常使用,我只是想尝试编译源码学习一下 :grinning:,现在我可能先不纠结这个错误了,感谢回复

感谢回复,有可能是Ubuntu系统问题,我暂时先不纠结这个问题了! :grinning:

这个问题解决了!!!谢谢,是这个cmake的原因,我为ubuntu22.04创建了一个cmake就可以正确识别到flex和bison的库了 :smiling_face_with_three_hearts:

1 Like