caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] cannot create new opam switches
@ 2020-03-19 19:44 Ian Zimmerman
  2020-03-19 20:25 ` Ian Zimmerman
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Zimmerman @ 2020-03-19 19:44 UTC (permalink / raw)
  To: Caml Mailinglist

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-20 19:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 19:44 [Caml-list] cannot create new opam switches Ian Zimmerman
2020-03-19 20:25 ` Ian Zimmerman
2020-03-20 16:05   ` Florian Angeletti
2020-03-20 19:01     ` Ian Zimmerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).