Issue with installation "Unbound value"

Asked by Lara Mason

Hi experts,

A probably very naive question- I am trying to set up Whizard on Mac OSX in the standard way (configure, make, make install) but I consistently get this error no matter what I try

119 | let a = Array2.map_file fd float64 fortran_layout true dim1 dim2 in
                    ^^^^^^^^^^^^^^^
Error: Unbound value Array2.map_file
make[2]: *** [events.cmx] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Do you have any suggestions as to how to get around this?

Thanks in advance,

Lara

Question information

Language:
English Edit question
Status:
Solved
For:
WHIZARD Edit question
Assignee:
Thorsten Ohl Edit question
Solved by:
Lara Mason
Solved:
Last query:
Last reply:
Revision history for this message
Juergen Reuter (j.r.reuter) said :
#1

Hi Lara,
the error message comes from the OCaml code of the CIRCE2 beamstrahlung generator inside WHIZARD. Unfortunately, OCaml has a very active code development, cf. https://ocaml.org/releases/4.08.0.html Item #2263, and https://github.com/ocaml/ocaml/pull/2263
So, this is broken with OCaml 4.08.x and 4.09.x. We will try to fix this a.s.a.p. (Thorsten already took action), in the meantime please use Macports, or Fink etc. to downgrade your OCaml version to 4.07. This is probably the easiest option right now. Sorry for the inconvenience.
Cheers,
   JRR (Juergen)

Revision history for this message
Thorsten Ohl (thomega) said :
#2

Dear Lara,

thanks for reporting this.

We appear to have stumbled over an incompatible change in
version 4.08.0 of ocaml.

Until we release a workaround, can you install an older version
of ocaml? Everthing between 4.0.2.0 and 4.07.1 should be fine.

Cheers,
-Thorsten

Quoting Lara Mason <email address hidden>:

> New question #684133 on WHIZARD:
> https://answers.launchpad.net/whizard/+question/684133
>
> Hi experts,
>
> A probably very naive question- I am trying to set up Whizard on Mac
> OSX in the standard way (configure, make, make install) but I
> consistently get this error no matter what I try
>
> 119 | let a = Array2.map_file fd float64 fortran_layout true
> dim1 dim2 in
> ^^^^^^^^^^^^^^^
> Error: Unbound value Array2.map_file
> make[2]: *** [events.cmx] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> Do you have any suggestions as to how to get around this?
>
> Thanks in advance,
>
> Lara
>
> --
> You received this question notification because your team WHIZARDs is an
> answer contact for WHIZARD.

--
Thorsten Ohl, Wuerzburg Univ., Physics -- http://physik.uni-wuerzburg.de/ohl

Revision history for this message
Lara Mason (laram) said :
#3

Dear Juergen, Thorsten,

Thanks very much for your quick responses, and solutions offered - the fix of downgrading ocaml seems to be working fine.

Thanks again,
Lara