From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id E743B7EE49 for ; Thu, 21 Feb 2013 15:38:22 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of gabriel.scherer@gmail.com) identity=pra; client-ip=209.85.214.50; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gabriel.scherer@gmail.com designates 209.85.214.50 as permitted sender) identity=mailfrom; client-ip=209.85.214.50; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="gabriel.scherer@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-bk0-f50.google.com) identity=helo; client-ip=209.85.214.50; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gabriel.scherer@gmail.com"; x-sender="postmaster@mail-bk0-f50.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AroBACAxJlHRVdYykGdsb2JhbABFrwSJV4ghfggWDgEBAQEHCw0HFAQjgh8BAQQBJxkBFAcSCwEDAQsGBQsNDSEhAQERAQUBChIGExKHbQEDCQYMoROMMoJ7hDYKGScDClmIewEFDIwrglMEB4NAA5RagVyBHYosgzMWKYQr X-IPAS-Result: AroBACAxJlHRVdYykGdsb2JhbABFrwSJV4ghfggWDgEBAQEHCw0HFAQjgh8BAQQBJxkBFAcSCwEDAQsGBQsNDSEhAQERAQUBChIGExKHbQEDCQYMoROMMoJ7hDYKGScDClmIewEFDIwrglMEB4NAA5RagVyBHYosgzMWKYQr X-IronPort-AV: E=Sophos;i="4.84,709,1355094000"; d="scan'208";a="3005151" Received: from mail-bk0-f50.google.com ([209.85.214.50]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 21 Feb 2013 15:38:21 +0100 Received: by mail-bk0-f50.google.com with SMTP id jg9so4093664bkc.23 for ; Thu, 21 Feb 2013 06:38:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=eBXUuMvOXNEdmYIi4Zi1lgLW0egxqM3mXIh+56snRbs=; b=j1oAhlTX/OXyHQQKDgV4FjrKkFmhwH71ii2fAkEQPhE1g2VH2IlSaRUgod5T5aVIZz qo9aMU7+NevMHEDvNcuYYhxZreeAbC43lR/8ds/IUQLLsXeGx+4uK+bVh6W9MmQB78uq wrVphPEgLNMnwKBdg5CJEI+EcyWPlyDPKWP/fdqI2rFHPGn6QVtkn1WJoAmcRqvUkJGt /B5SlwSQ2VmmHMUZZ/ZcvTewwlJUH8j4GRY34Posg5dtWGt93KtdzQuWkgZIqQAPXo9W FMyDL5UTUl9TMeAF4vxXGwuPd8mtN7r6e6/F4RnbfD/J3kFDHtxy9hmdxwTr7eKwEgQL lNpA== X-Received: by 10.204.129.16 with SMTP id m16mr10652042bks.103.1361457501155; Thu, 21 Feb 2013 06:38:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.205.83.144 with HTTP; Thu, 21 Feb 2013 06:37:40 -0800 (PST) In-Reply-To: References: <51261C28.3030108@gmail.com> <5126203A.9040205@gmail.com> From: Gabriel Scherer Date: Thu, 21 Feb 2013 15:37:40 +0100 Message-ID: To: Markus Mottl Cc: Elisa Rebolini , caml-list@inria.fr Content-Type: multipart/alternative; boundary=0015173feca6bbb45e04d63d0676 Subject: Re: [Caml-list] Ocamlbuild doc with lacaml module --0015173feca6bbb45e04d63d0676 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable A word of comment: Markus uses a slightly more advanced feature of ocamlbuild, which is the ability to set compilation tags not in the ocamlbuild invocation command, as you've been using, but in a dedicated "_tags" file in the repository: https://bitbucket.org/mmottl/ocaml-playground/src/65d3ec500ac36683e18d0b84d= bf98115f82ea8af/lacaml_test/_tags You can see the line "true: package(lacaml)", which means that all compilation commands needed to compile whatever target is required (test.native, test.docdir/index.html...) will use the lacaml ocamlfind package (this only works if ocamlbuild is invoked with -use-ocamlfind, which is the case in his Makefile). On Thu, Feb 21, 2013 at 3:34 PM, Markus Mottl wrote: > Hi, > > I've just set up a small, self-contained example "lacaml_test" in my > OCaml playground repository on Bitbucket: > > https://bitbucket.org/mmottl/ocaml-playground > > Just clone the repository to your computer: > > hg clone ssh://hg@bitbucket.org/mmottl/ocaml-playground > > Then follow the instructions in the README files. > > Regards, > Markus > > On Thu, Feb 21, 2013 at 8:25 AM, Elisa Rebolini > wrote: > > I've installed lacaml 7.0.3 by following the installation procedure > > 'ocaml setup.ml -configure' > > 'ocaml setup.ml -build' > > 'ocaml setup.ml -install' > > The path to the lacaml package is /usr/local/lib/ocaml/site-lib/lacaml > > and my Makefile is > > > > hostname :=3D $(shell uname -n) > > > > # Default > > LIB=3D-I,+site-lib/lacaml > > > > ifeq ($(hostname),clastos) > > LIB=3D-I,+site-lib/lacaml > > endif > > > > ifeq ($(hostname),bulle) > > LIB=3D-I,/usr/local/lib/ocaml/3.12.1/lacaml > > endif > > > > all: > > ocamlbuild -libs bigarray,lacaml,str,unix -verbose 2 -cflags > $(LIB) > > -lflags $(LIB) molexc.native > > > > clean: > > ocamlbuild -clean > > > > doc: > > ocamlbuild -libs bigarray,lacaml,str,unix -verbose 2 -cflags > $(LIB) > > -lflags $(LIB) molexc.docdir/index.html > > > > thanks > > -- > > Elisa > > > > Le 21/02/2013 14:11, Gabriel Scherer a =E9crit : > >> It would help to have more precise information about your setup. Could > you > >> detail how you installed lacaml on your system, and provide a directory > >> tarball for a simple project allowing to reproduce your problem (with > the > >> _tags file etc.)? > >> > >> On Thu, Feb 21, 2013 at 2:07 PM, Elisa Rebolini > wrote: > >> > >> Hello list, > >> I'm developping a quantum chemistry software with ocaml and use lacaml > >> as a binding to the LAPACK and BLAS libraries. > >> I have a warning at the compilation with ocamlbuild > >> Warning: Failed to build the module Lacaml requested by ocamld= ep > >> mid rule ocaml: ml -> cmo & cmi (%=3Dparser_epsilon ): cache h= it > >> but the compilation is still successful and the program works as > >> expected but when I try to compile the documentation I have an error > >> Error: Unbound module Lacaml > >> I'm not very skilled (yet?) with caml so any help would be very much > >> appreciated. > >> Thanks a lot > >>> > >>> -- > >>> Caml-list mailing list. Subscription management and archives: > >>> https://sympa.inria.fr/sympa/arc/caml-list > >>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > >>> Bug reports: http://caml.inria.fr/bin/caml-bugs > >>> > >> > > > > -- > > Caml-list mailing list. Subscription management and archives: > > https://sympa.inria.fr/sympa/arc/caml-list > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > > -- > Markus Mottl http://www.ocaml.info markus.mottl@gmail.com > --0015173feca6bbb45e04d63d0676 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable A word of comment: Markus uses a slightly more advanced feature of ocamlbui= ld, which is the ability to set compilation tags not in the ocamlbuild invo= cation command, as you've been using, but in a dedicated "_tags&qu= ot; file in the repository:
=A0 https://bitbucket.org/mmo= ttl/ocaml-playground/src/65d3ec500ac36683e18d0b84dbf98115f82ea8af/lacaml_te= st/_tags

You can see the line "true: package(lacaml)", which means tha= t all compilation commands needed to compile whatever target is required (t= est.native, test.docdir/index.html...) will use the lacaml ocamlfind packag= e (this only works if ocamlbuild is invoked with -use-ocamlfind, which is t= he case in his Makefile).

On Thu, Feb 21, 2013 at 3:34 PM, Markus Mott= l <markus.mottl@gmail.com> wrote:
Hi,

I've just set up a small, self-contained example "lacaml_test"= ; in my
OCaml playground repository on Bitbucket:

=A0 https://bitbucket.org/mmottl/ocaml-playground

Just clone the repository to your computer:

=A0 hg clone ssh://hg@bitbucket.org/mmottl/ocaml-playground

Then follow the instructions in the README files.

Regards,
Markus

On Thu, Feb 21, 2013 at 8:25 AM, Elisa Rebolini <erebolini@gmail.com> wrote:
> I've installed lacaml 7.0.3 by following the installation procedur= e
> =A0 =A0 =A0 =A0 'ocaml setup.ml -configure'
> =A0 =A0 =A0 =A0 'ocaml setup.ml -build'
> =A0 =A0 =A0 =A0 'ocaml setup.ml -install'
> The path to the lacaml package is /usr/local/lib/ocaml/site-lib/lacaml=
> and my Makefile is
>
> hostname :=3D $(shell uname -n)
>
> # Default
> LIB=3D-I,+site-lib/lacaml
>
> ifeq ($(hostname),clastos)
> LIB=3D-I,+site-lib/lacaml
> endif
>
> ifeq ($(hostname),bulle)
> LIB=3D-I,/usr/local/lib/ocaml/3.12.1/lacaml
> endif
>
> all:
> =A0 =A0 =A0 =A0 ocamlbuild -libs bigarray,lacaml,str,unix -verbose 2 -= cflags $(LIB)
> -lflags $(LIB) molexc.native
>
> clean:
> =A0 =A0 =A0 =A0 ocamlbuild -clean
>
> doc:
> =A0 =A0 =A0 =A0 ocamlbuild -libs bigarray,lacaml,str,unix -verbose 2 -= cflags $(LIB)
> -lflags $(LIB) molexc.docdir/index.html
>
> thanks
> --
> Elisa
>
> Le 21/02/2013 14:11, Gabriel Scherer a =E9crit :
>> It would help to have more precise information about your setup. C= ould you
>> detail how you installed lacaml on your system, and provide a dire= ctory
>> tarball for a simple project allowing to reproduce your problem (w= ith the
>> _tags file etc.)?
>>
>> On Thu, Feb 21, 2013 at 2:07 PM, Elisa Rebolini <erebolini@gmail.com> wrote:
>>
>> Hello list,
>> I'm developping a quantum chemistry software with ocaml and us= e lacaml
>> as a binding to the LAPACK and BLAS libraries.
>> I have a warning at the compilation with ocamlbuild
>> =A0 =A0 =A0 =A0 Warning: Failed to build the module Lacaml request= ed by ocamldep
>> =A0 =A0 =A0 =A0 mid rule ocaml: ml -> cmo & cmi (%=3Dparser= _epsilon ): cache hit
>> but the compilation is still successful and the program works as >> expected but when I try to compile the documentation I have an err= or
>> =A0 =A0 =A0 =A0 Error: Unbound module Lacaml
>> I'm not very skilled (yet?) with caml so any help would be ver= y much
>> appreciated.
>> Thanks a lot
>>>
>>> --
>>> Caml-list mailing list. =A0Subscription management and archive= s:
>>> https://sympa.inria.fr/sympa/arc/caml-list
>>> Beginner's list: http://groups.yahoo.com/group/ocaml_begi= nners
>>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>>>
>>
>
> --
> Caml-list mailing list. =A0Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports:
http://caml.inria.fr/bin/caml-bugs



--
Markus Mottl =A0 =A0 =A0 =A0http://www.ocaml.info =A0 =A0 =A0 =A0markus.mottl@gmail.com

--0015173feca6bbb45e04d63d0676--