From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Building a custom compiler environment
Date: Sun, 13 Nov 2005 12:09:09 +0100 [thread overview]
Message-ID: <1131880149.31023.25.camel@gate.lan.gerd-stolpmann.de> (raw)
In-Reply-To: <ad8cfe7e0511122005k40ea0e70le33104c88208c496@mail.gmail.com>
On Sun, 2005-11-13 at 17:05 +1300, Jonathan Roewen wrote:
> Well, I upgraded tools to 3.09.0, so that's one problem out of the way
> (though slightly annoying .. ah well).
>
> Here's my latest error :-)
>
> make[1]: Entering directory `/home/jonathan/dst/kernel'
> ../ocaml/bin/ocamlc -output-obj -o bytekernel.o asm.mli keyboard.ml
> VFS.ml PCI.ml busManager.ml bytekernel.ml
> Error while linking /home/jonathan/dst/ocaml/lib/ocaml/stdlib.cma(Pervasives):
> Reference to undefined global `End_of_file'
> make[1]: *** [bytekernel.o] Error 2
>
> Obviously, I've removed some code that defines this somewhere (hope I
> don't have to make too many changes to my custom environment). Any
> hints?
No, End_of_file is a predefined exception. Actually, you must not define
it, the compiler does it for you.
Look into typing/predef.ml to see all the predefined types and values.
(In byterun/fail.h there is a second, independent source of predefined
exceptions.)
Just a hypothesis: You do not have a reference to End_of_file at all,
and it is expunged from the global table because of this. Later the
compiler tries to add the code for the predefined exceptions, and cannot
find End_of_file any longer. - This may be total nonsense, however.
Gerd
--
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de
Telefon: 06151/153855 Telefax: 06151/997714
------------------------------------------------------------
next prev parent reply other threads:[~2005-11-13 11:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-13 3:01 Jonathan Roewen
2005-11-13 4:05 ` Jonathan Roewen
2005-11-13 11:09 ` Gerd Stolpmann [this message]
2005-11-14 6:38 ` Jonathan Roewen
2005-11-14 22:36 ` Jonathan Roewen
2005-11-15 4:10 ` skaller
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=1131880149.31023.25.camel@gate.lan.gerd-stolpmann.de \
--to=info@gerd-stolpmann.de \
--cc=caml-list@yquem.inria.fr \
--cc=jonathan.roewen@gmail.com \
/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