From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA32625 for caml-redistribution; Wed, 3 Feb 1999 11:49:25 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA25102 for ; Sat, 30 Jan 1999 00:10:41 +0100 (MET) Received: from tower.ti.com (tower.ti.com [192.94.94.5]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id AAA15492 for ; Sat, 30 Jan 1999 00:10:38 +0100 (MET) Received: from dlep4.itg.ti.com ([157.170.188.63]) by tower.ti.com (8.8.8) with ESMTP id RAA28630 for ; Fri, 29 Jan 1999 17:10:38 -0600 (CST) Received: from ti.com (cna0384552.itg.ti.com [156.117.115.144]) by dlep4.itg.ti.com (8.8.8/8.8.8) with ESMTP id RAA22890 for ; Fri, 29 Jan 1999 17:10:37 -0600 (CST) Message-ID: <36B23FEC.340C9D0D@ti.com> Date: Fri, 29 Jan 1999 17:10:37 -0600 From: Norman Davis Reply-To: ndavis@ti.com Organization: Texas Instruments Incorporated X-Sender: "Norman Davis" X-Mailer: Mozilla 4.04 [en]C-TexIns (Win95; I) MIME-Version: 1.0 To: OCAML Subject: Compiling CAMLP4 on Win95/CygwinB20.1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis 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