caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: automake and ocaml
Date: Tue, 22 Sep 2009 08:52:55 +0000 (UTC)	[thread overview]
Message-ID: <slrnhbh3v5.cs6.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <1253582721.12100.21.camel@ByeLimpus>

Hello,

On 22-09-2009, Daniel Molina <lalluviamola@gmail.com> wrote:
> Thanks for the reply!
>
> I have been trying to compile the ocaml-autobuild but it seem that it do
> not works.
>
> I have done make/(make test) after/before apply the patch and I obtain
> the following error:
>         
> $ make test
> ocamlbuild -classic-display ocaml-autobuild.otarget
> /usr/bin/ocamlopt -I /usr/lib/ocaml/3.10.0/ocamlbuild
> unix.cmxa /usr/lib/ocaml/3.10.0/ocamlbuild/ocamlbuildlib.cmxa
> myocamlbuild.ml /usr/lib/ocaml/3.10.0/ocamlbuild/ocamlbuild.cmx -o
> myocamlbuild
> ocamlfind ocamldep -modules src/tools/ocamlmod.ml >
> src/tools/ocamlmod.ml.depends
> ocamlfind ocamlc -c -I src/tools -I src -I src/ocamlbuild -I
> src/ocamlmakefile -I src/omake -I src/oasis -I src/base -o
> src/tools/ocamlmod.cmo src/tools/ocamlmod.ml
> ocamlfind ocamlc -linkpkg src/tools/ocamlmod.cmo -o
> src/tools/ocamlmod.byte
> src/tools/ocamlmod.byte src/base/BaseSys.mod
> ocamlfind ocamldep -package findlib -pp '-package findlib' -modules
> src/base/BaseSys.ml > src/base/BaseSys.ml.depends
> + ocamlfind ocamldep -package findlib -pp '-package findlib' -modules
> src/base/BaseSys.ml > src/base/BaseSys.ml.depends
> sh: Illegal option -p
> Preprocessing error on file src/base/BaseSys.ml
> Command exited with code 2.
> make: *** [all] Error 10
>
> Can some one help me?
>
> I downloaded the tree with 'wget -r' which did not did this very smooth.
> I have uploaded a tar version  of it (without to apply the patch).
>
> https://doppelgaenger.ath.cx/~daniel/ocaml-autobuild.tar
>

I download and build it (from your website) and I have no problem to
compile: 

gildor@yotta(lenny/amd64):~/tmp/ocaml-autobuild$ make
ocamlbuild -classic-display ocaml-autobuild.otarget
/usr/bin/ocamlopt.opt -I /usr/lib/ocaml/3.10.2/ocamlbuild unix.cmxa
/usr/lib/ocaml/3.10.2/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml
/usr/lib/ocaml/3.10.2/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
[...]
 src/tools/ocamlmod.byte src/base/BaseSys.mod
 ocamlfind ocamldep -package fileutils -package findlib -modules
 src/base/BaseSys.ml > src/base/BaseSys.ml.depends
 src/tools/ocamlmod.byte src/ocamlbuild/OCamlbuildSys.mod
 ocamlfind ocamldep -package fileutils -modules
 src/ocamlbuild/OCamlbuildSys.ml >
 src/ocamlbuild/OCamlbuildSys.ml.depends
 ocamlfind ocamldep -package fileutils -package findlib -modules
 src/base/BaseEnvironment.ml > src/base/BaseEnvironment.ml.depends
 ocamlfind ocamldep -package fileutils -package findlib -modules
 src/base/BaseMessage.ml > src/base/BaseMessage.ml.depends
 ocamlfind ocamlc -c -package fileutils -package findlib -I src/base -I
 src -I src/omake -I src/ocamlbuild -I src/oasis -I src/ocamlmakefile -o
  src/base/BaseMessage.cmo src/base/BaseMessage.ml
  ocamlfind ocamldep -package fileutils -package findlib -modules
  src/base/BaseExec.ml > src/base/BaseExec.ml.depends
[...]
(test not ok because it try to install things in /usr/lib/ocaml...)

Can you check you have build and install ocamlify 
http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=ocamlify;a=summary
(I will try to get rid of this small dependency in the final release)

Also OCaml 3.10.0 is a quite old version that is maybe still containing
some bugs with ocamlbuild (it was the first version of ocamlbuild). Can
you try with a more recent version (3.10.2 or 3.11.1).

You can get the tree with 
darcs get http://darcs.ocamlcore.org/repos/ocamlify
darcs get http://darcs.ocamlcore.org/repos/ocaml-autobuild

Regards,
Sylvain Le Gall


  reply	other threads:[~2009-09-22  8:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-22  1:25 Daniel Molina
2009-09-22  8:52 ` Sylvain Le Gall [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-21  3:41 Daniel Molina
2009-09-21  7:53 ` [Caml-list] " Vincent Aravantinos
2009-09-21  7:59   ` Stéphane Glondu
2009-09-21  8:10     ` Vincent Aravantinos
2009-09-21  8:18       ` Sylvain Le Gall
2009-09-21  8:23 ` Sylvain Le Gall

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=slrnhbh3v5.cs6.sylvain@gallu.homelinux.org \
    --to=sylvain@le-gall.net \
    --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;
as well as URLs for NNTP newsgroup(s).