You are trying to compile on a x86_64 system a version of OCaml published eight years before the first AMD64 processor appeared; some compilation trouble is expected. Do you have any particular reason to be trying to compile a version of OCaml as ancient as Caml Special Light - 1.06 ?
i just want to know how ocaml builds code. and i want to go deep into ocaml buinding system. what i want to learn is how to generate ocamlc, how does the ocamllex and ocamlyacc work, how does byterun work, and how the stdlib are constructed. Maybe i should try it on i368 machine.
Why not start with the trunk(i.e. dev) version of OCaml in this case? None of your objectives seem to really require going back to Caml Special Light 1.06. Contrarily, by using the dev version of OCaml, there would be more people able to help you, less compilation trouble and less french comments.
In fact, i am a newbie and i am afraid of reading source code. so i choose to read the first version of ocaml source code which has the least lines of code. LOL! But i think it is time to change. i am gonna to read the trunk version of OCaml code. Thanks for you help! maybe i need to challenge myself.
Then I’d suggest you to start from reading a book which would disambiguate the core concepts underlying the OCaml. [1] [2] and [3] are good enough. You’d also better to learn from some toy ML implementations like these ones [4] instead of a full featured production-grade compiler.
This book is about the language design, more than compilation. It describes the language features layer by layer, very precisely (introducing and using the notations that programming language researchers use to formalize languages), with a series of exercises to implement an interpreter and a type system along the way.