ocaml / opam-repository

Main public package repository for opam, the source package manager of OCaml.
https://opam.ocaml.org
Creative Commons Zero v1.0 Universal
517 stars 1.13k forks source link

OPAM install core failure #1977

Closed 7jpinheiro closed 9 years ago

7jpinheiro commented 10 years ago

When trying to install ocaml core using opam with ocaml 4.01.0 in ubuntu32 (by following this guide: https://github.com/realworldocaml/book/wiki/Installation-Instructions), it fails with this output:

vagrant@precise32:~$ opam install core utop The following actions will be performed:

=-=-= Installing ocamlfind.1.4.0 =-=-= default Downloading https://opam.ocaml.org/archives/ocamlfind.1.4.0+opam.tar.gz Downloading https://opam.ocaml.org/archives/ocamlfind.1.4.0+opam.tar.gz Building ocamlfind.1.4.0: ./configure -bindir /home/vagrant/.opam/system/bin -sitelib /home/vagrant/.opam/system/lib -mandir /home/vagrant/.opam/system/man -config /home/vagrant/.opam/system/lib/findlib.conf -no-topfind make all make opt make install Installing ocamlfind.1.4.0.

=-=-= Installing camomile.0.8.5 =-=-= default Downloading https://opam.ocaml.org/archives/camomile.0.8.5+opam.tar.gz Downloading https://opam.ocaml.org/archives/camomile.0.8.5+opam.tar.gz Building camomile.0.8.5: ./configure --prefix /home/vagrant/.opam/system make make install Installing camomile.0.8.5.

=-=-= Installing herelib.109.35.02 =-=-= default Downloading https://opam.ocaml.org/archives/herelib.109.35.02+opam.tar.gz Downloading https://opam.ocaml.org/archives/herelib.109.35.02+opam.tar.gz Building herelib.109.35.02: make make install Installing herelib.109.35.02.

=-=-= Installing ounit.2.0.0 =-=-= default Downloading https://opam.ocaml.org/archives/ounit.2.0.0+opam.tar.gz Downloading https://opam.ocaml.org/archives/ounit.2.0.0+opam.tar.gz Building ounit.2.0.0: make build make install Installing ounit.2.0.0.

=-=-= Installing pipebang.110.01.00 =-=-= default Downloading https://opam.ocaml.org/archives/pipebang.110.01.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/pipebang.110.01.00+opam.tar.gz Building pipebang.110.01.00: make make install Installing pipebang.110.01.00.

=-=-= Installing react.1.1.0 =-=-= default Downloading https://opam.ocaml.org/archives/react.1.1.0+opam.tar.gz Downloading https://opam.ocaml.org/archives/react.1.1.0+opam.tar.gz Building react.1.1.0: ocaml pkg/git.ml ocaml pkg/build.ml native=true native-dynlink=true Installing react.1.1.0.

=-=-= Installing type_conv.109.60.01 =-=-= default Downloading https://opam.ocaml.org/archives/type_conv.109.60.01+opam.tar.gz Downloading https://opam.ocaml.org/archives/type_conv.109.60.01+opam.tar.gz Building type_conv.109.60.01: make make install Installing type_conv.109.60.01.

=-=-= Installing bin_prot.111.03.00 =-=-= default Downloading https://opam.ocaml.org/archives/bin_prot.111.03.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/bin_prot.111.03.00+opam.tar.gz Building bin_prot.111.03.00: make make install Installing bin_prot.111.03.00.

=-=-= Installing comparelib.109.60.00 =-=-= default Downloading https://opam.ocaml.org/archives/comparelib.109.60.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/comparelib.109.60.00+opam.tar.gz Building comparelib.109.60.00: make make install Installing comparelib.109.60.00.

=-=-= Installing enumerate.111.08.00 =-=-= default Downloading https://opam.ocaml.org/archives/enumerate.111.08.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/enumerate.111.08.00+opam.tar.gz Building enumerate.111.08.00: ocaml setup.ml -configure --prefix /home/vagrant/.opam/system make make install Installing enumerate.111.08.00.

=-=-= Installing fieldslib.109.20.03 =-=-= default Downloading https://opam.ocaml.org/archives/fieldslib.109.20.03+opam.tar.gz Downloading https://opam.ocaml.org/archives/fieldslib.109.20.03+opam.tar.gz Building fieldslib.109.20.03: make make install Installing fieldslib.109.20.03.

=-=-= Installing lwt.2.4.5 =-=-= default Downloading https://opam.ocaml.org/archives/lwt.2.4.5+opam.tar.gz Downloading https://opam.ocaml.org/archives/lwt.2.4.5+opam.tar.gz Building lwt.2.4.5: ./configure --disable-libev --enable-react --disable-ssl --enable-unix --enable-extra --enable-preemptive --disable-glib --disable-text make build make install Installing lwt.2.4.5.

=-=-= Installing pa_ounit.109.53.02 =-=-= default Downloading https://opam.ocaml.org/archives/pa_ounit.109.53.02+opam.tar.gz Downloading https://opam.ocaml.org/archives/pa_ounit.109.53.02+opam.tar.gz Building pa_ounit.109.53.02: make make install Installing pa_ounit.109.53.02.

=-=-= Installing sexplib.111.11.00 =-=-= default Downloading https://opam.ocaml.org/archives/sexplib.111.11.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/sexplib.111.11.00+opam.tar.gz Building sexplib.111.11.00: make make install Installing sexplib.111.11.00.

=-=-= Installing variantslib.109.15.03 =-=-= default Downloading https://opam.ocaml.org/archives/variantslib.109.15.03+opam.tar.gz Downloading https://opam.ocaml.org/archives/variantslib.109.15.03+opam.tar.gz Building variantslib.109.15.03: make make install Installing variantslib.109.15.03.

=-=-= Installing zed.1.3 =-=-= default Downloading https://opam.ocaml.org/archives/zed.1.3+opam.tar.gz Downloading https://opam.ocaml.org/archives/zed.1.3+opam.tar.gz Building zed.1.3: ocaml setup.ml -configure --prefix /home/vagrant/.opam/system ocaml setup.ml -build ocaml setup.ml -install Installing zed.1.3.

=-=-= Installing custom_printf.111.03.00 =-=-= default Downloading https://opam.ocaml.org/archives/custom_printf.111.03.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/custom_printf.111.03.00+opam.tar.gz Building custom_printf.111.03.00: make make install Installing custom_printf.111.03.00.

=-=-= Installing lambda-term.1.6 =-=-= default Downloading https://opam.ocaml.org/archives/lambda-term.1.6+opam.tar.gz Downloading https://opam.ocaml.org/archives/lambda-term.1.6+opam.tar.gz Building lambda-term.1.6: ocaml setup.ml -configure --prefix /home/vagrant/.opam/system ocaml setup.ml -build ocaml setup.ml -install Installing lambda-term.1.6.

=-=-= Installing pa_bench.109.55.02 =-=-= default Downloading https://opam.ocaml.org/archives/pa_bench.109.55.02+opam.tar.gz Downloading https://opam.ocaml.org/archives/pa_bench.109.55.02+opam.tar.gz Building pa_bench.109.55.02: make make install Installing pa_bench.109.55.02.

=-=-= Installing pa_test.111.08.00 =-=-= default Downloading https://opam.ocaml.org/archives/pa_test.111.08.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/pa_test.111.08.00+opam.tar.gz Building pa_test.111.08.00: make make install Installing pa_test.111.08.00.

=-=-= Installing typerep.111.06.00 =-=-= default Downloading https://opam.ocaml.org/archives/typerep.111.06.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/typerep.111.06.00+opam.tar.gz Building typerep.111.06.00: ocaml setup.ml -configure --prefix /home/vagrant/.opam/system make make install Installing typerep.111.06.00.

=-=-= Installing core_kernel.111.11.00 =-=-= default Downloading https://opam.ocaml.org/archives/core_kernel.111.11.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/core_kernel.111.11.00+opam.tar.gz Building core_kernel.111.11.00: make make install Installing core_kernel.111.11.00.

=-=-= Installing utop.1.12 =-=-= default Downloading https://opam.ocaml.org/archives/utop.1.12+opam.tar.gz Downloading https://opam.ocaml.org/archives/utop.1.12+opam.tar.gz Building utop.1.12: ocaml setup.ml -configure --prefix /home/vagrant/.opam/system ocaml setup.ml -build ocaml setup.ml -install Installing utop.1.12.

=-=-= Installing core.111.11.00 =-=-= default Downloading https://opam.ocaml.org/archives/core.111.11.00+opam.tar.gz Downloading https://opam.ocaml.org/archives/core.111.11.00+opam.tar.gz Building core.111.11.00: ocaml setup.ml -configure --prefix /home/vagrant/.opam/system make make install [ERROR] The compilation of core.111.11.00 failed. Removing core.111.11.00. ocamlfind remove core

===== ERROR while installing core.111.11.00 =====

opam-version 1.1.1 os linux command make path /home/vagrant/.opam/system/build/core.111.11.00 compiler system (4.01.0) exit-code 2 env-file /home/vagrant/.opam/system/build/core.111.11.00/core-966-8c0dd3.env stdout-file /home/vagrant/.opam/system/build/core.111.11.00/core-966-8c0dd3.out stderr-file /home/vagrant/.opam/system/build/core.111.11.00/core-966-8c0dd3.err

stdout

...[truncated] /home/vagrant/.opam/system/bin/ocamlfind ocamlc -c -g -syntax camlp4o -thread -package variantslib.syntax -package variantslib -package unix -package threads -package sexplib_unix -package sexplib.syntax -package sexplib -package pa_test.syntax -package pa_test -package pa_pipebang -package pa_ounit.syntax -package pa_ounit -package pa_bench.syntax -package pa_bench -package herelib.syntax -package herelib -package fieldslib.syntax -package fieldslib -package enumerate.syntax -package core_kernel -package comparelib.syntax -package bin_prot.syntax -package bin_prot -package bigarray -ppopt -pa-ounit-lib -ppopt core -I lib -o lib/span.cmi lib/span.mli /home/vagrant/.opam/system/bin/ocamlfind ocamldep -ppopt -Ilib/ -syntax camlp4o -package variantslib.syntax -package variantslib -package unix -package threads -package sexplib_unix -package sexplib.syntax -package sexplib -package pa_test.syntax -package pa_test -package pa_pipebang -package pa_ounit.syntax -package pa_ounit -package pa_bench.syntax -package pa_bench -package herelib.syntax -package herelib -package fieldslib.syntax -package fieldslib -package enumerate.syntax -package core_kernel -package comparelib.syntax -package bin_prot.syntax -package bin_prot -package bigarray -package camlp4.macro -ppopt -pa-ounit-lib -ppopt core -modules lib/time_internal.ml > lib/time_internal.ml.depends

The former state can be restored with opam switch import -f "/home/vagrant/.opam/system/backup/state-20140330170232.export" 'opam install core utop' failed.

abhiranjankumar00 commented 10 years ago

+1

avsm commented 10 years ago

Did you follow the installation instructions exactly? You need to apt-get install ocaml-native-compilers as well, to get ocamlopt.opt.

On 30 Apr 2014, at 18:15, 7jpinheiro notifications@github.com wrote:

/bin/sh: 1: ocamlopt.opt: not found

abhiranjankumar00 commented 10 years ago

Hi @avsm , it's solved by using opam switch 4.02.0. By default 4.01.0 was selected.

Thanks for your reply.