其他分享
首页 > 其他分享> > 编译coccinelle-1.0.0-rc24时的错误"Error: Unbound module Parmap"以及解决方法

编译coccinelle-1.0.0-rc24时的错误"Error: Unbound module Parmap"以及解决方法

作者:互联网

今天在编译一个老版的openwrt时,发现有如下的错误。

File "./main.ml", line 777, characters 22-49:
Warning 52: Code should not depend on the actual values of
this constructor's arguments. They are only for information
and may change in future versions. (See manual section 8.5)
File "./main.ml", line 956, characters 35-60:
Error: Unbound module Parmap
Makefile:656: recipe for target 'main.cmo' failed

后发现是ocaml的版本太新了,我的openwrt太古老了。将ocaml降到4.02.3,就可以解决了。

opam switch 4.02.3
eval $(opam config env)
opam install ocamlfind 

opam install camlp4

断了线的程序猿 发布了1 篇原创文章 · 获赞 0 · 访问量 3116 私信 关注

标签:4.02,coccinelle,1.0,opam,module,rc24,Unbound,main,openwrt
来源: https://blog.csdn.net/tianlu1001/article/details/104130758