caml-list - the Caml user's mailing list
 help / color / 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

* Re: [Caml-list] cannot create new opam switches
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Zimmerman @ 2020-03-19 20:25 UTC (permalink / raw)
  To: caml-list

On 2020-03-19 12:44, Ian Zimmerman [i.e. myself] wrote:

> # [...]
> # 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)

Ok, I got it.  Being on the paranoid side, I have an AWKPATH in my
environment that doesn't include ".".  I must be really unusual in that
respect. :-P

That script or makefile should probably say "awk -f
./expand_module_aliases.awk".  Or it should set its own AWKPATH
locally.  Is a bug report desired?

-- 
Ian

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

* Re: [Caml-list] cannot create new opam switches
  2020-03-19 20:25 ` Ian Zimmerman
@ 2020-03-20 16:05   ` Florian Angeletti
  2020-03-20 19:01     ` Ian Zimmerman
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Angeletti @ 2020-03-20 16:05 UTC (permalink / raw)
  To: caml-list

Hello Ian,

David Allsopp has just fixed this AWKPATH issue in the development 
version of OCaml

Thus the issue should be definitively fixed in the next releases of OCaml.

However, I am wondering how badly is the issue affecting you? Is it just 
a matter of setting AWKPATH to an "unsafe" "." value temporarily, or you 
just cannot install recent version of OCaml until the issue is fixed?

Happy hacking, octachron.


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

* Re: [Caml-list] cannot create new opam switches
  2020-03-20 16:05   ` Florian Angeletti
@ 2020-03-20 19:01     ` Ian Zimmerman
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Zimmerman @ 2020-03-20 19:01 UTC (permalink / raw)
  To: caml-list

On 2020-03-20 17:05, Florian Angeletti wrote:

> However, I am wondering how badly is the issue affecting you? Is it
> just a matter of setting AWKPATH to an "unsafe" "." value temporarily,
> or you just cannot install recent version of OCaml until the issue is
> fixed?

Thanks for asking, yes I just run opam with a local AWKPATH, installed
4.09 already.  No problem.  Good to know that it's being addressed.

-- 
Ian

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

end of thread, back to index

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

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