【问题标题】:Strange error message when installing core (Jane st Ocaml library)安装核心时出现奇怪的错误消息(Jane st Ocaml 库)
【发布时间】:2014-02-06 17:25:46
【问题描述】:

我在尝试使用 opam 安装核心时收到以下错误。

==== ERROR [while installing core.109.42.00] ====
# opam-version    1.0.0
# os              linux
# command         make
# path            /home/cesally/.opam/4.01.0/build/core.109.42.00
# exit-code       2
# env-file        /home/cesally/.opam/4.01.0/build/core.109.42.00/core-5f1023.env
# stdout-file     /home/cesally/.opam/4.01.0/build/core.109.42.00/core-5f1023.out
# stderr-file     /home/cesally/.opam/4.01.0/build/core.109.42.00/core-5f1023.err
### stdout ###
...[truncated]
/home/cesally/.opam/4.01.0/bin/ocamlopt.opt unix.cmxa -I /home/cesally/.opam/4.01.0/                                                                                              lib/ocaml/ocamlbuild /home/cesally/.opam/4.01.0/lib/ocaml/ocamlbuild/ocamlbuildlib                                                                                              .cmxa myocamlbuild.ml /home/cesally/.opam/4.01.0/lib/ocaml/ocamlbuild/ocamlbuild.c                                                                                              mx -o myocamlbuild
ocamlfind ocamlc -I lib -package core_kernel -c lib/backtrace_stubs.c
mv backtrace_stubs.o lib/backtrace_stubs.o
ocamlfind ocamlc -I lib -package core_kernel -c lib/bigstring_stubs.c
+ ocamlfind ocamlc -I lib -package core_kernel -c lib/bigstring_stubs.c
lib/bigstring_stubs.c: In function ‘bigstring_recvmmsg_assume_fd_is_nonblocking_                                                                                              stub’:
lib/bigstring_stubs.c:592:18: error: array type has incomplete element type
lib/bigstring_stubs.c:639:7: warning: implicit declaration of function ‘recvmmsg                                                                                              ’ [-Wimplicit-function-declaration]
lib/bigstring_stubs.c:592:18: warning: unused variable ‘hdrs’ [-Wunused-variable                                                                                              ]
Command exited with code 2.
### stderr ###
/tmp/cc5m08R9.o: In function `main':
test_recvmmsg.c:(.text+0x24): warning: recvmmsg is not implemented and will alwa                                                                                              ys fail
E: Failure("Command ''/home/cesally/.opam/4.01.0/bin/ocamlbuild' lib/libcore_stubs                                                                                              .a lib/dllcore_stubs.so lib/core.cma lib/core.cmxa lib/core.a lib/core.cmxs top/                                                                                              core_top.cma top/core_top.cmxa top/core_top.a top/core_top.cmxs -tag debug' term                                                                                              inated with error code 10")
make: *** [build] Error 1

'opam install core' failed.

我不太明白这个错误信息,任何 ocaml 黑客可以解释一下吗?

我在 ubuntu 上,没有管理员权限。谢谢

编辑:g++ 版本是 4.6.3

【问题讨论】:

  • 请用 -v 选项重新运行它并显示日志的尾部。我们还需要g++ --version的输出。
  • @Kakadu 尾巴和我发的一样。不知道你在找什么,所以我把它放在了一个 pastebin 里。 pastebin.com/CfCiMhFK

标签: ocaml opam


【解决方案1】:

看起来核心配置脚本和 C 编译器在 recvmmsg 是否在您的系统上可用方面存在分歧。我想这是核心中的错误。首先,尝试最新版本(撰写本文时为 110.something),如果尚未修复,请向核心作者报告。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-27
    • 2021-05-30
    • 2020-06-30
    相关资源
    最近更新 更多