Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Norman Davis <ndavis@ti.com>
To: OCAML <caml-list@inria.fr>
Subject: Compiling CAMLP4 on Win95/CygwinB20.1
Date: Fri, 29 Jan 1999 17:10:37 -0600	[thread overview]
Message-ID: <36B23FEC.340C9D0D@ti.com> (raw)

For those of you who might find this helpful, here are the steps I had
to perform to compile CAMLP4 on my Win95 system with Cygwin Beta 20.1.

While compiling on my system, many workarounds were required due
to Cygwin Beta 20.1. Hopefully by documenting this I will make
life easier for someone else.

The first two steps are from the windows-specific instructions from 
camlp4's INSTALL.TXT. Steps 3 and 4 are some of the additional
workarounds 
specific to using Cygwin Beta version 20.1.

1) Edit the file "config/Makefile.tpl" so EXE=.exe
2) Modify "tools/compile.ml" as described in INSTALL.TXT
3) in each Makefile in subdirectories "camlp4", "ocaml_src/camlp4", 
   and "ocpp", in the line
      INTERFACES=-I ($OLIBDIR) Arg Array Callback
   make the substitution for "($OLIBDIR)" yourself. In my case:
      INTERFACES=-I c:/ocaml/lib Arg Array Callback
   where c:/ocaml/lib was my ocaml library directory on my system.
4) create an empty ".depend" file in every subdirectory that doesn't 
    already have a ".depend" file.

Step 3 was neccessary because otherwise a strange character would be
inserted by make that kept some commands from completing.
Step 4 reduced the number of messages Make displayed, but maybe wasn't
necessary.

5)Then in Cygwin BASH shell I did:
    ./configure    (For the three questions, I answered /ocaml/bin,
/ocaml/lib, and /ocaml.)
                   (If I used c:/ocaml/bin, c:/ocaml/lib, and
c:/ocaml, corruption occured.)
    make clean_cold 
    make library_cold
    make compile_cold
    make promote_cold
    make clean_cold 
    make clean_hot 
    make compile_tool 
    make library 
    make all
    [repeat "make all" until it responds with 9 lines of "Nothing to
be done for 'all'"]
    make install
    

Sometimes make would display that it couldn't find a certain file, 
but the next time I typed "make all", it would find it. That's the 
reason for repeating "make all" several times. This problem seemed
to occur randomly.

By doing each make seperately, instead of letting "make world" 
do the job for me, the process seemed to finish with fewer
"make all"s overall.

When I try to test the system as suggested by INSTALL.TXT
        camlp4o pr_o.cmo foo.ml
On one of my Win95 systems, it works fine. But on the other, i get 
"file not found: pr_o.cmo". To fix it I had to use the full path 
for pr_o.cmo (e.g, /ocaml/lib/pr_o.cmo). I haven't figured out the
reason for this yet.

-- 

ndavis@ti.com
U.S.: (972) 917-1670




                 reply	other threads:[~1999-02-03 10:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=36B23FEC.340C9D0D@ti.com \
    --to=ndavis@ti.com \
    --cc=caml-list@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