Version française
Home     About     Download     Resources     Contact us    
Browse thread
Using OCaml in a kernel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] Using OCaml in a kernel
> > I've tried manually compiling libasmrun.a, but I'm getting some
> > strange unresolved symbols to caml functions/declarations.

> These symbols are defined at link time by the ocamlopt compiler.
> You can get the assembler code defining them by using the -dstartup
> option of ocamlopt while linking; it will show up in a
> /tmp/camlstartup????.s file.
> Note of course that some of these definitions are specific for each
> program.

As I have just observed ;-) We've got some new ones, and don't know
how to resolve them. They're from the generated assembler code, and is
as follows:

camlstartup.o(.data+0x1d8): In function `caml_globals':
: undefined reference to `camlStd_exit'
camlstartup.o(.data+0x360): In function `caml_data_segments':
: undefined reference to `camlCallback__data_begin'
camlstartup.o(.data+0x364): In function `caml_data_segments':
: undefined reference to `camlCallback__data_end'
camlstartup.o(.data+0x370): In function `caml_data_segments':
: undefined reference to `camlStd_exit__data_begin'
camlstartup.o(.data+0x374): In function `caml_data_segments':
: undefined reference to `camlStd_exit__data_end'
camlstartup.o(.data+0x3c4): In function `caml_code_segments':
: undefined reference to `camlCallback__code_begin'
camlstartup.o(.data+0x3c8): In function `caml_code_segments':
: undefined reference to `camlCallback__code_end'
camlstartup.o(.data+0x3d4): In function `caml_code_segments':
: undefined reference to `camlStd_exit__code_begin'
camlstartup.o(.data+0x3d8): In function `caml_code_segments':
: undefined reference to `camlStd_exit__code_end'
camlstartup.o(.data+0x408): In function `caml_frametable':
: undefined reference to `camlCallback__frametable'
camlstartup.o(.data+0x410): In function `caml_frametable':
: undefined reference to `camlStd_exit__frametable'
make: *** [kernel.bin] Error 1

I'm at a loss on this one, unfortunately. Thought would be resolved by
stdlib.a, but doesn't want to work for me.

Jon