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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id E84767EE49 for ; Thu, 21 Feb 2013 15:49:35 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of erebolini@gmail.com) identity=pra; client-ip=209.85.215.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="erebolini@gmail.com"; x-sender="erebolini@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of erebolini@gmail.com designates 209.85.215.171 as permitted sender) identity=mailfrom; client-ip=209.85.215.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="erebolini@gmail.com"; x-sender="erebolini@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ea0-f171.google.com) identity=helo; client-ip=209.85.215.171; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="erebolini@gmail.com"; x-sender="postmaster@mail-ea0-f171.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqkBABkzJlHRVderkWdsb2JhbABFrwSReIEGFg4BAQEBBw0LBxQEI4IfAQEFJwsBDQEbEgoBAQMMBgULDQkEEg8JAwIBAgEPAhEBBQEKEgYNAQUCAQEOh20BAw8MoQyMMoJ7hDgKGScDClmIewEFDIwrglcHg0ADlFqBXIEdhFeFVYMzP4Qr X-IPAS-Result: AqkBABkzJlHRVderkWdsb2JhbABFrwSReIEGFg4BAQEBBw0LBxQEI4IfAQEFJwsBDQEbEgoBAQMMBgULDQkEEg8JAwIBAgEPAhEBBQEKEgYNAQUCAQEOh20BAw8MoQyMMoJ7hDgKGScDClmIewEFDIwrglcHg0ADlFqBXIEdhFeFVYMzP4Qr X-IronPort-AV: E=Sophos;i="4.84,709,1355094000"; d="scan'208";a="3912635" Received: from mail-ea0-f171.google.com ([209.85.215.171]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 21 Feb 2013 15:49:35 +0100 Received: by mail-ea0-f171.google.com with SMTP id c13so3802398eaa.30 for ; Thu, 21 Feb 2013 06:49:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=jN2FhtPpcpGg528i9qIC2MlQCFO4TO2NgPGqJaiUiJQ=; b=d2KHbOt4ZTg/IeMcckwhcGcy2xP4hFxZWBZ09d9+j+oj8wnWhYKZyTF7lRODmR5IHs 2eGItuBkZvhGdXK/SPXmoxcNAeNaOQpxkMN12oL8M+jxI7E5HCwgAzzJXlUC2u8+lAso MUGoCsjosuVnquFmBUAxXRilxyRozBPSuPmFg7Wg0esctgYLDGUkY8TLBWW7W31aqpEr tz++/mIQQgN1AqFk6Bg2A5j8CoNNUdL70iG2b5TdsGdQHWDvpoNEu8cu35F8xtePUQOL aVQGNDJB6K/T29qBLSmNogwZ7elmEwNwzWafKaK2k6dz3O2TaYTx/YJ2yy+mI2dvMUTI QI3w== X-Received: by 10.14.219.7 with SMTP id l7mr57760049eep.12.1361458174618; Thu, 21 Feb 2013 06:49:34 -0800 (PST) Received: from [134.157.90.51] (thaumaste.lct.jussieu.fr. [134.157.90.51]) by mx.google.com with ESMTPS id q5sm115412592eep.11.2013.02.21.06.49.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Feb 2013 06:49:33 -0800 (PST) Message-ID: <512633FB.9030500@gmail.com> Date: Thu, 21 Feb 2013 15:49:31 +0100 From: Elisa Rebolini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Gabriel Scherer CC: caml-list@inria.fr References: <51261C28.3030108@gmail.com> <5126203A.9040205@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Ocamlbuild doc with lacaml module It works perfectly. Thanks a lot ! And a special thanks to Markus for the lacaml package which prevents me from coding in Fortran 90 ! -- Elisa Le 21/02/2013 15:32, Gabriel Scherer a écrit : > Two remarks: > > 1. You should use "ocamlfind" to provide you with machine-portable path > information on OCaml libraries (this only works with libraries that have > ocamlfind support, but that's essentially all libraries worth using, and > otherwise it's a packaging bug that you should report to the library author > or distributor). So instead of the machine-dependent LIB variable, you > could just set: > LIB=-I,$(shell ocamlfind query lacaml) > > 2. You don't actually need this include-handling logic as ocamlfind can > deal with that for you. To use it from ocamlbuild, the magic option is > "-use-ocamlfind", and then using "-pkg(s)" instead of "-lib(s)" option. I > was able to reproduce your problem on a test file, and fixed it with the > following Makefile: > > all: > ocamlbuild -use-ocamlfind -pkgs bigarray,lacaml,str,unix -verbose 2 > molexc.native > > clean: > ocamlbuild -clean > > doc: > ocamlbuild -use-ocamlfind -pkgs bigarray,lacaml,str,unix > molexc.docdir/index.html > > (To see a list of available ocamlfind package, use "ocamlfind list"; see > _build/_log for the actual compilation lines that ocamlbuild uses, if you > want to reproduce them by hand.) > > On Thu, Feb 21, 2013 at 2:25 PM, 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 := $(shell uname -n) >> >> # Default >> LIB=-I,+site-lib/lacaml >> >> ifeq ($(hostname),clastos) >> LIB=-I,+site-lib/lacaml >> endif >> >> ifeq ($(hostname),bulle) >> LIB=-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 écrit : >>> 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 ocamldep >>> mid rule ocaml: ml -> cmo & cmi (%=parser_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 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 >>>> >>> >> >