Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

In the 13.1 ocaml package, the ocamlopt (native code) tool is broken. It can't find the assembler.

$
0
0
The interactive ocaml tool works fine:
Code:

duke@ee:~/Documents> ocaml
        OCaml version 4.01.0

# let () =
  print_endline "Hello, world!";;
Hello, world!
# exit(0);;
duke@ee:~/Documents>

However, the (native code) example dies:
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 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.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>