Error during compilation: Unbound module Num in symbolicExpression.ml
Reported by Atri Bhattacharya
file_16429.txt (165.63 KB, text/plain)
Log from last failed build
BUG DESCRIPTION:
----------------
When building scilab on openSUSE Tumbleweed (gcc 9.3.1, ocaml 4.10.0, ocaml-num 1.3), the following error shows up causing builds to fail:
> [ 203s] /usr/bin/time ocamlopt -o modelicac -I ./src/modelica_compiler -I ./src/xml2modelica -I /usr/lib64/ocaml/num num.cmxa ./src/modelica_compiler/parseTree.ml ./src/modelica_compiler/linenum.ml ./src/modelica_compiler/parser.ml ./src/modelica_compiler/lexer.ml ./src/modelica_compiler/precompilation.ml ./src/modelica_compiler/compilation.ml ./src/modelica_compiler/instantiation.ml ./src/modelica_compiler/graphNodeSet.ml ./src/modelica_compiler/symbolicExpression.ml ./src/modelica_compiler/squareSparseMatrix.ml ./src/modelica_compiler/bipartiteGraph.ml ./src/modelica_compiler/hungarianMethod.ml ./src/modelica_compiler/causalityGraph.ml ./src/modelica_compiler/optimization.ml ./src/modelica_compiler/xMLCodeGeneration.ml ./src/modelica_compiler/optimizingCompiler.ml ./src/modelica_compiler/scicosCodeGeneration.ml ./src/modelica_compiler/scicosOptimizingCompiler.ml
> [ 204s] File "./src/modelica_compiler/symbolicExpression.ml", line 23, characters 5-8:
> [ 204s] 23 | open Num
> [ 204s] ^^^
> [ 204s] Error: Unbound module Num
> [ 204s] Command exited with non-zero status 2
Full spec file and patches here: <https://build.opensuse.org/package/show/science/scilab>.
ERROR LOG:
----------
Full log attached
HOW TO REPRODUCE THE BUG:
-------------------------
Build against ocaml 4.10.0 and ocaml-num 1.3.
OTHER INFORMATION:
------------------
May be related to the deprecation of Num module; see also bug 16170