caml-list - the Caml user's mailing list
 help / color / Atom feed
From: Ian Zimmerman <itz@very.loosely.org>
To: Caml Mailinglist <caml-list@inria.fr>
Subject: [Caml-list] cannot create new opam switches
Date: Thu, 19 Mar 2020 12:44:06 -0700
Message-ID: <20200319194406.fd234fbnnqowt34b@matica> (raw)

I am currently on ocaml 4.07.1.  When I try to create an opam switch for
anything (and I mean anything) newer, I get the following:

 matica!21 ~$ opam switch create 4.10.0

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-base-compiler.4.10.0] downloaded from cache at https://opam.ocaml.org/cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bigarray.base
-> installed base-threads.base
-> installed base-unix.base
[ERROR] The compilation of ocaml-base-compiler failed at "/home/itz/.local/packages/opam/opam-init/hooks/sandbox.sh build make -j2 world".

#=== ERROR while compiling ocaml-base-compiler.4.10.0 =========================#
# context     2.0.4 | linux/x86_64 |  | https://opam.ocaml.org#fbb7edf2
# path        ~/.local/packages/opam/4.10.0/.opam-switch/build/ocaml-base-compiler.4.10.0
# command     ~/.local/packages/opam/opam-init/hooks/sandbox.sh build make -j2 world
# exit-code   2
# env-file    ~/.local/packages/opam/log/ocaml-base-compiler-30659-e4db2f.env
# output-file ~/.local/packages/opam/log/ocaml-base-compiler-30659-e4db2f.out
### output ###
# [...]
# echo '#!/home/itz/.local/packages/opam/4.10.0/bin/ocamlruni' > target_camlheaderi
# ../boot/ocamlrun ../boot/ocamlc -use-prims ../runtime/primitives -strict-sequence -absname -w +a-4-9-41-42-44-45-48 -g -warn-error A -bin-annot -nostdlib -safe-string -strict-formats  -nopervasives -c camlinternalFormatBasics.ml
# ../boot/ocamlrun ../boot/ocamlc -use-prims ../runtime/primitives -strict-sequence -absname -w +a-4-9-41-42-44-45-48 -g -warn-error A -bin-annot -nostdlib -safe-string -strict-formats  -nopervasives -no-alias-deps -w -49  -pp "$AWK -f expand_module_aliases.awk" -c stdlib.mli
# gawk: fatal: can't open source file `expand_module_aliases.awk' for reading (No such file or directory)
# File "/home/itz/.local/packages/opam/4.10.0/.opam-switch/build/ocaml-base-compiler.4.10.0/stdlib/stdlib.mli", line 1:
# Error: Error while running external preprocessor
# Command line: gawk -f expand_module_aliases.awk 'stdlib.mli' > /tmp/ocamlpp2f8545
# 
# make[1]: *** [Makefile:217: stdlib.cmi] Error 2
# make[1]: *** Waiting for unfinished jobs....
# make[1]: Leaving directory '/home/itz/.local/packages/opam/4.10.0/.opam-switch/build/ocaml-base-compiler.4.10.0/stdlib'
# make: *** [Makefile:349: coldstart] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ocaml-base-compiler 4.10.0
+- 
+- The following changes have been performed (the rest was aborted)
| - install base-bigarray base
| - install base-threads  base
| - install base-unix     base
+- 

<><> ocaml-base-compiler.4.10.0 troubleshooting <><><><><><><><><><><><><><><><>
=> A failure in the middle of the build may be caused by build parallelism
      (enabled by default).
      Please file a bug report at https://github.com/ocaml/ocaml/issues

 matica!23 ~$ opam --version
2.0.4

A paste of the .out file is here:
https://pastebin.com/F5p1AkNS

-- 
Ian

             reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-19 19:44 Ian Zimmerman [this message]
2020-03-19 20:25 ` Ian Zimmerman
2020-03-20 16:05   ` Florian Angeletti
2020-03-20 19:01     ` Ian Zimmerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200319194406.fd234fbnnqowt34b@matica \
    --to=itz@very.loosely.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

caml-list - the Caml user's mailing list

Archives are clonable:
	git clone --mirror http://inbox.vuxu.org/caml-list
	git clone --mirror https://inbox.ocaml.org/caml-list

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.caml-list


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git