Bug#868960: FTBFS with ocaml 4.05.0

Stéphane Glondu glondu at debian.org
Wed Jul 19 22:32:46 UTC 2017


On 19/07/2017 23:21, Stéphane Glondu wrote:
> scilab FTBFS with ocaml 4.05.0. Relevant log:
>> [...]
>> ocamlopt -o XML2Modelica -I ./src/modelica_compiler -I ./src/xml2modelica  nums.cmxa ./src/xml2modelica/xMLTree.cmx ./src/xml2modelica/linenum.cmx ./src/xml2modelica/stringParser.cmx ./src/xml2modelica/stringLexer.cmx ./src/xml2modelica/xMLParser.cmx ./src/xml2modelica/xMLLexer.cmx ./src/xml2modelica/modelicaCodeGenerator.cmx ./src/xml2modelica/xML2Modelica.cmx
>> File "_none_", line 1:
>> Error: Files ./src/xml2modelica/xMLParser.cmx
>>        and ./src/xml2modelica/linenum.cmx
>>        make inconsistent assumptions over implementation Linenum
>> Makefile:3387: recipe for target 'XML2Modelica' failed
>> make[3]: *** [XML2Modelica] Error 2
>> make[3]: Leaving directory '/tmp/scilab-5.5.2/modules/scicos'
>> Makefile:808: recipe for target 'all-recursive' failed
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory '/tmp/scilab-5.5.2/modules'
>> Makefile:1554: recipe for target 'all-recursive' failed
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory '/tmp/scilab-5.5.2'
>> /usr/share/cdbs/1/class/makefile.mk:77: recipe for target 'debian/stamp-makefile-build' failed
>> make: *** [debian/stamp-makefile-build] Error 2
>> dpkg-buildpackage: error: debian/rules build gave error exit status 2

An explanation: files in ./src/xml2modelica are compiled with "-I
./src/modelica_compiler -I ./src/xml2modelica". The file linenum.cmx
exists in both directory, and compiling xMLParser.cmx picks up the wrong
linenum.cmx with the new version of ocaml.

A possible fix is to compile files in ./src/xml2modelica without the "-I
./src/modelica_compiler" option.


Cheers,

-- 
Stéphane



More information about the debian-science-maintainers mailing list