caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Using OCaml in a kernel
Date: Wed, 29 Dec 2004 11:35:54 +1300	[thread overview]
Message-ID: <ad8cfe7e04122814354aefd279@mail.gmail.com> (raw)
In-Reply-To: <20041211.080036.25909489.garrigue@math.nagoya-u.ac.jp>

> > 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


  parent reply	other threads:[~2004-12-28 22:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06  0:48 Jonathan Roewen
2004-12-06  1:03 ` [Caml-list] " Sachin Shah
2004-12-06  8:09 ` Ville-Pertti Keinonen
2004-12-10 21:26   ` Jonathan Roewen
2004-12-10 23:00     ` Jacques Garrigue
2004-12-14  1:43       ` Jonathan Roewen
2004-12-14  9:09         ` Ville-Pertti Keinonen
2004-12-14 18:10           ` Jonathan Roewen
2004-12-15  2:03             ` skaller
2004-12-28 22:35       ` Jonathan Roewen [this message]
2004-12-06  9:08 ` Vincenzo Ciancia
2004-12-06 10:00 ` Frédéric Gava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad8cfe7e04122814354aefd279@mail.gmail.com \
    --to=jonathan.roewen@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).