I have a problem compiling with ocamlopt and floats
I’m under Ubuntu 10.04 and Ocaml 3.11
for this line :
let a = 10.0;;
no worries with top level
no worries with ocamlc (code in a test.ml file) :
ocamlc -o exec test.ml
error with ocamlopt :
ocamlopt -o exec test.ml
message :
File “test.ml”, line 1, characters 0-1:
Error: Assembler error, input left in file /tmp/camlasm5c3d4d.s
Where is this coming from ?
EDIT : Problem solved, the 3.12 fixes the bug
Thank you guys 🙂
It looks like a known issue, and the bug only appears with a specific combination of binutils and ocaml that should not appear with official packages from Ubuntu 10.04. Are you using only official packages? If so, could you provide your exact versions of binutils and ocaml?
There is a patch for ocaml in aforementioned bugreport, but the easier fix is to upgrade if you can. If you are using only official packages, a bugreport should be submitted to Ubuntu so that the package is fixed.