I am trying to install ocamlgraph as a requirement for frama-c. When I am installing ocamlgraph and run make, I am getting the following compilation errors:
ocamlopt.opt -c -I src -I lib -for-pack Graph src/delaunay.ml
/tmp/camlasmc2c286.s: Assembler messages:
/tmp/camlasmc2c286.s: Error: .size expression for camlGraph__Delaunay__ccw_291 does not evaluate to a constant
/tmp/camlasmc2c286.s: Error: .size expression for camlGraph__Delaunay__in_circle_298 does not evaluate to a constant
File "src/delaunay.ml", line 1, characters 0-1:
Error: Assembler error, input left in file /tmp/camlasmc2c286.s
I am running on Ubuntu-10.04 and have tried ocamlgraph-1.6 and ocamlgraph-1.8.2 versions with the same error. The ocaml version on my machine is ocaml-3.11.2.
Thanks
This is a bug that was provoked last year by a change of version of binutils
. You can fix it either by installing an older version of binutils on your system (not recommended), or a more recent version of OCaml (starting from ocaml 3.12.1).