Dear all,

consider a simple test program:

  let _ = Printf.printf "Hello world!\n"

I can generate the relevant assembly just fine, e.g.:

ocamlopt -dstartup -S test.ml
gcc -c a.out.startup.s -c

But I cannot link it:

gcc a.out.startup.o -L$(ocamlc -where) -lasmrun_shared
....
a.out.startup.o(.data+0x6e8): error: undefined reference to 'camlStd_exit__frametable'
collect2: Fehler: ld gab 1 als Ende-Status zurück
distcc[9960] ERROR: compile (null) on localhost failed

It seems that the whole Pervasives is missing (which is kind of expected).

How do I link it, manually? Where are the relevant object files?

thanks,

Christoph