Re: [Scilab-users] compilation with OCaml 4.06

2018-04-04 Thread Florian Blachère
Hello, Any news about this error ? Thanks by advance, Florian On 26/02/18 09:01, Florian Blachère wrote: > Hello, > > Thanks for this patch, but it seems not enough to build as there is > still some errors with Bytes/Strings: > > File "src/modelica_compiler/optimization.ml", line 168,

Re: [Scilab-users] compilation with OCaml 4.06

2018-02-26 Thread Florian Blachère
Hello, Thanks for this patch, but it seems not enough to build as there is still some errors with Bytes/Strings: File "src/modelica_compiler/optimization.ml", line 168, characters 49-50: Error: This expression has type bytes but an expression was expected of type string Florian On

Re: [Scilab-users] compilation with OCaml 4.06

2018-02-22 Thread Clément David
Hello Florian, Please find attached a patch that fix this issue; it comes from a OCaml 4.0.4 change which distinguish String and Bytes implementations and the unsafe-string flag. Quoting the documentation [1]: > OCaml strings used to be modifiable in place, for instance via the String.set >

Re: [Scilab-users] compilation with OCaml 4.06

2018-02-22 Thread Florian Blachère
Hello Clément, Thanks for the answer, I installed num and changed the compilation line to use ocamlfind but now the compilation fails with : ocamlfind ocamlopt -package num -I ./src/modelica_compiler -I ./src/xml2modelica -c src/modelica_compiler/optimization.ml File

Re: [Scilab-users] compilation with OCaml 4.06

2018-02-21 Thread Clément David
Hello Florian, The easier would be to depend on the external Num library for the 6.0.x family as far as this library remains available; statically build against it is the way to go for OCaml code. Num might also be packaged in your system, use ocamlfind to look for it. Thanks, -- Clément Le

[Scilab-users] compilation with OCaml 4.06

2018-02-20 Thread Florian Blachère
Hello, Scilab 6.0.0 and 6.0.1 (and the master branch) cannot be build using OCaml 4.06 because this release remove the Num library (https://ocaml.org/releases/4.06.html#Changes, https://github.com/ocaml/ocaml/pull/1178), do you have any advice to build Scilab with recent OCaml: integrate Num