Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Building a custom compiler environment
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-13 (11:09)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] Building a custom compiler environment
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
> 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/ to see all the predefined types and values.
(In byterun/fail.h there is a second, independent source of predefined

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 Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany
Telefon: 06151/153855                  Telefax: 06151/997714