The interactive ocaml tool works fine:
However, the (native code) example dies:
This example is taken verbatim from A hello world kernel.
This probably should be submitted as a bug. If so, please remind
me where and how to do that.
Code:
duke@ee:~/Documents> ocaml
OCaml version 4.01.0
# let () =
print_endline "Hello, world!";;
Hello, world!
# exit(0);;
duke@ee:~/Documents>
Code:
In the file hw.ml:
let () =
print_endline "Hello, world!"
duke@ee:~/Documents> ocamlopt hw.ml -o hw
sh: as: command not found
File "hw.ml", line 1:
Error: Assembler error, input left in file /tmp/camlasmd7b8ce.s
duke@ee:~/Documents>
This probably should be submitted as a bug. If so, please remind
me where and how to do that.