2014-02-06 67 views
1

嘗試使用opam安裝內核時收到以下錯誤。安裝內核時出現奇怪的錯誤信息(Jane st Ocaml庫)

==== 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

+0

用* -v *選項重新運行它,並顯示日誌的尾部。我們還需要'g ++ --version'的輸出。 – Kakadu

+0

@Kakadu尾巴和我發佈的一樣。不知道你在找什麼,所以我把它放在一個pastebin中。 http://pastebin.com/CfCiMhFK –

回答

0

貌似核心配置腳本和C編譯器是在recvmmsg是否可用您的系統上的分歧。我想這是一個核心錯誤。首先,嘗試最新版本(本文寫作時,它是110.something),如果尚未修復,請將其報告給核心作者。