From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTPS id EB8905D4 for ; Mon, 10 Sep 2018 09:13:55 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.53,355,1531778400"; d="scan'208";a="345663633" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 10 Sep 2018 11:13:54 +0200 Received: by sympa.inria.fr (Postfix, from userid 20132) id 3BC00824F0; Mon, 10 Sep 2018 11:13:54 +0200 (CEST) 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 2DD7181792 for ; Mon, 10 Sep 2018 11:13:47 +0200 (CEST) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=gabriel.scherer@gmail.com; spf=Pass smtp.mailfrom=gabriel.scherer@gmail.com; spf=None smtp.helo=postmaster@mail-lf1-f44.google.com IronPort-PHdr: =?us-ascii?q?9a23=3AkHXprhOpwNizz5FHTQEl6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0I//5rarrMEGX3/hxlliBBdydt6obzbKO+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1?= =?us-ascii?q?Ov71GonPhMiryuy+4ZLebxlKiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPde?= =?us-ascii?q?RWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbY?= =?us-ascii?q?UwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiC?= =?us-ascii?q?cfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvdxeb7Tfc4BRWpZQMleSzBBDI27?= =?us-ascii?q?b4sKFeUBPOBYpJT5q1YBqRayAA+hD/7txDBVnH/7xaI10+ojHg/G0gIuHM8Avm?= =?us-ascii?q?rIo9juKKceTfq4wLXUwTnfbf5b3yr25ojSchAmpPGBRbN+ftDKxkk1FgPKkFGQ?= =?us-ascii?q?opH4MTyJ1uQCrXKb4PR6VemyjGMnpBt+rSO1xsctlIbJgpgZykvY+iV53ok1P8?= =?us-ascii?q?O3SFRgbN6rFZtfrSCaN49sTsw+RGFovT83x7sbspC1eygKzY4oxx/Za/GfdIiH?= =?us-ascii?q?/gjsVOOVITtig3JlYr2/iw6u8Ue+0e38StO430pToipBitXMt3YN1wbS6sedUP?= =?us-ascii?q?d98F2h1S6A1wDS9uFEIV00mrHBJ5E9xb4wk4IfsETZES/2n0X2i7WaeVkj+uit?= =?us-ascii?q?7ensf7bopoeEOoNqlg3zNr4il8+/DOgiLwQDXmqW9f6z2bDs+0DyXa9Egecskq?= =?us-ascii?q?bDtZDXPcQbqbC9Aw9Syosj7gywDzai0NgBmXkHIk9JdAuJj4XmNFzCOv/4DfC4?= =?us-ascii?q?g1SjlDdk2erKMaHmApXINnTDkbHhcqhh60NE1gY/0dRS64hXB7wBOv7/R078ud?= =?us-ascii?q?7CAhI2PAG42+PnB8981oMaV2KPGKiZMKbKvF+H/O0gOPOMZI4Ltzb5MfQl/OLh?= =?us-ascii?q?jX8nll8HY6apx4AaaH+9Hvt8IkWZZWDgjcsGEWcPpgY+VvDliEWeUT5PYHa/R7?= =?us-ascii?q?4z6Ss+CIKiFIvDQoGtgKed3CqgBZ1XZmVGCkiWHnvydoWEXe0MaCOILcN7nDwE?= =?us-ascii?q?T+vpd4h00xClswvz0Px9J/bV9zcwu5/myN8w/PGVmwth2yZzCpGy2muXTmxw1l?= =?us-ascii?q?gDRzIs0bo39UN0wE2C3Kw+mPdYGMZe/dtGVw47MdjXyOksWIO6YR7IYtrcEAXu?= =?us-ascii?q?ed6hGzxkC49omo5cUwNGA9ynyyv78W+vCr4RmaaMAcVtoK3Z1nn1Yc16ziSfjf?= =?us-ascii?q?VzvxwdWsJKcFaeqOtn7QGKXtzGlkyYk+ChcqFOhHeQplfG9nKHuQRjaCA1UajB?= =?us-ascii?q?WipCNE7frNC84k2bCrHyVfIoNQxOzcPEIaxPOIXk?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ADBwAGNZZbhiynVdFbHAEBAQQBAQoBA?= =?us-ascii?q?YNyAUB/KINyg3eQPoINAoJXhnmMdoFmCyeBUIJxAgICg3YZBwEENBQBAgEBAgE?= =?us-ascii?q?BAQEBEwEBAQgLCwgbDiMMgjUkgmABBSMdARsSCwEDDAYFCwcGAgIJHQICIgERA?= =?us-ascii?q?QUBCgQOGRIJgwYBgWgBAxUPmFI8iwuBEQUBF4J2BYNZChkmAwpXgW8CBhJ5iVq?= =?us-ascii?q?BWD+BEoIUfoMQCwICAoElBQESAYMgglcChmgIgSUJhSeBM4xCTgcCggQEhDGJS?= =?us-ascii?q?ReCCIougjqLOohEDyGBOIEFcTMaI1AxgjsJghAMDgkRgzSBPoNWhUA9MAEBi1u?= =?us-ascii?q?CPAEB?= X-IPAS-Result: =?us-ascii?q?A0ADBwAGNZZbhiynVdFbHAEBAQQBAQoBAYNyAUB/KINyg3e?= =?us-ascii?q?QPoINAoJXhnmMdoFmCyeBUIJxAgICg3YZBwEENBQBAgEBAgEBAQEBEwEBAQgLC?= =?us-ascii?q?wgbDiMMgjUkgmABBSMdARsSCwEDDAYFCwcGAgIJHQICIgERAQUBCgQOGRIJgwY?= =?us-ascii?q?BgWgBAxUPmFI8iwuBEQUBF4J2BYNZChkmAwpXgW8CBhJ5iVqBWD+BEoIUfoMQC?= =?us-ascii?q?wICAoElBQESAYMgglcChmgIgSUJhSeBM4xCTgcCggQEhDGJSReCCIougjqLOoh?= =?us-ascii?q?EDyGBOIEFcTMaI1AxgjsJghAMDgkRgzSBPoNWhUA9MAEBi1uCPAEB?= X-IronPort-AV: E=Sophos;i="5.53,355,1531778400"; d="scan'208";a="345663598" Received: from mail-lf1-f44.google.com ([209.85.167.44]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 10 Sep 2018 11:13:46 +0200 Received: by mail-lf1-f44.google.com with SMTP id x207-v6so16837628lff.3 for ; Mon, 10 Sep 2018 02:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AR92IwR5IbSGwYsH0ZIqpD5AjX462LaEh0Qsab/jAb8=; b=sohYc8QYDAU3dywDm3ZOQM0NCnIaKr8p0GNlJ/VQiCuQ3nnInQLZgpkJCxl5WhjgcC 4N/KBqu9uJ5HmEut4h6PO03prTY+eT2TdfhoCYsSEdLj5FiIsVsD0C/bLMdgL4KFwHtZ 7dTwBwtsCc7FcntE3EnPFxhRdTaVUiDyz0ns76rv1BTfmSejzVQHK5n33/jleWFQJYpo XPEFmgR/TozGQZNlfIDCvYJabcanmw+7jXdDSb1RSZRCYhOIczbslrZLBC66DMBedrum dnDP1U+Zlv08BSfrRn8NHpBywt3hYFRJ12nhoca0XrI5Q7M1uGTTo+317wi7vJlxTywM Vq5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AR92IwR5IbSGwYsH0ZIqpD5AjX462LaEh0Qsab/jAb8=; b=OyEzV2E58lzIy3nV75LoHV8gW5RHAMyctNv4rPzJCDxZUTMaYzwZkKvPACCWQZV7RW 1kp14ivYXHeRwVd1wjxyrkmpJJv0STiSuvLkkkF+sZ+3g4vlzIHRaFvNKl7DhtJZhu5H kYU91BKCBqkKPv2GMbxuoIHCVlQDGvI5sCriVXgBhXozICATYLevIdqPVbinjkahlJGr vdAgbMTBC91AGfiHOmkjFfnVzJMnKJuN3+ngSwObOWMVDP0Ign9sqkV7jDOmx4pmbxBB ENceA3qt/omxiCedkbdFy+HSgVNpl0PLGZ4BFZVV70U5i6nGFzIEcaj6294qRs0PaWEg Y75w== X-Gm-Message-State: APzg51BrotE1Sts8SJZ+ReT3R/Dct+S5K4ZOdHYELN/NBo/PeyCi0gSQ uaxHS2PmKJ7p5/mXI8zltP+N0fEsVTR+ukZpWG0kBSsp X-Google-Smtp-Source: ANB0VdbV5XRLacWJl2LkHdEM02ZwEm7fdVxmhH4GMJ8F0mF056+vTTH6tH7j9sOfoL97OHRCT+jtGVuwshQq2Y7/OtI= X-Received: by 2002:a19:9710:: with SMTP id z16-v6mr12569299lfd.17.1536570825312; Mon, 10 Sep 2018 02:13:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gabriel Scherer Date: Mon, 10 Sep 2018 11:22:20 +0200 Message-ID: To: nicolas.ratier@femto-st.fr Cc: caml users , Liang Wang Content-Type: text/plain; charset="UTF-8" Subject: Re: [Caml-list] Problem with: opam install conf-openblas (openSUSE 13.2, OCaml 4.06.1, opam 1.2.2) Reply-To: Gabriel Scherer X-Loop: caml-list@inria.fr X-Sequence: 17066 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Dear Nicolas, Your question is a bit specialized, and I think it would be a better fit as an opam-repository issue https://github.com/ocaml/opam-repository/issues or an email to the maintainer of the conf-openblas package (let me cc: the maintainer, Liang Wang, here) https://opam.ocaml.org/packages/conf-openblas/ That said, here would be an approach to answer it: you can find in the source of the conf-openblas "opam" file (available from the link above) https://github.com/ocaml/opam-repository/blob/master/packages/conf-openblas/conf-openblas.0.2.0/opam the list of tests that are done on the user's machine to test whether openblas is accessible. Currently the tests are as follows: build: [ ["sh" "-exc" "cc $CFLAGS -I/usr/include/openblas test.c -lopenblas"] {os = "fedora" | os = "centos" | os = "opensuse"} ["sh" "-exc" "cc $CFLAGS -I/usr/local/opt/openblas/include test.c -L/usr/local/opt/openblas/lib -lopenblas"] {os = "darwin"} ["sh" "-exc" "cc $CFLAGS test.c -lopenblas"] {os != "fedora" & os != "centos" & os != "opensuse" & os != "darwin"} ] (for example, maybe relying on pkg-config to find the library in addition to the current test could work?) If you can find a way to enrich those tests so that the test passes on your machine (it detects your installation of openblas), and they keep working for everyone else, you should feel free to submit a pull-request on the OPAM repository. To test changes to an opam fine locally, you should use "opam pin" as documented here: https://opam.ocaml.org/doc/Usage.html#opam-pin Note that one can move the detection logic out of the 'opam' file into an external script, which can be convenient if the logic becomes richer. You just have to store the script in the files/ subdirectory of the package, and call it from the "build" rule. This is done for example in the conf-libev package: https://github.com/ocaml/opam-repository/tree/master/packages/conf-libev/conf-libev.4-11/opam https://github.com/ocaml/opam-repository/blob/master/packages/conf-libev/conf-libev.4-11/files/build.sh https://github.com/ocaml/opam-repository/blob/master/packages/conf-libev/conf-libev.4-11/files/discover.ml Finally: there is an interdependency between the way an external library is detected in its conf-* packages, and the way depending software finds it during its build. If a conf- file uses pkg-config, the user package may also use pkg-config to select the build flag, so merely extending the conf- package with non-pkg-config detection (without hardening the depending packages) is not a satisfying solution. If you extend the detection logic of conf-openblas, it would be nice to check that the depending packages (in this case, I believe only "owl") still build, or consider extending them with the same logic. Best On Mon, Sep 10, 2018 at 10:09 AM Nicolas Ratier wrote: > > Dear OCaml list, > > openblas is installed in my computer, but opam fail to find it. > The opam message is: idon't find the file "cblas.h"(see 2) > > $ ls /usr/include/openblas/ > cblas.h f77blas.h lapacke_config.h lapacke.h lapacke_mangling.h > lapacke_utils.h openblas_config.h > > I have the same problem with plplot (I need both to useowl) > > I work on:(Command: uname -mrs & lsb_release -ds) > Linux 3.16.7-42-desktop x86_64 > "openSUSE 13.2 (Harlequin) (x86_64)" > OCaml 4.06.1 > opam 1.2.2 > > How to solve this ? > I compile OpenBLAS from source (see 1) > Is there a place to re-install OpenBLAS to be seen by Opam ? > > Thank you very much for your help > Nicolas > > ========================================================================== > 1 > ========================================================================== > > OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE) > > OS ... Linux > Architecture ... x86_64 > BINARY ... 64bit > C compiler ... GCC (command line : gcc) > Fortran compiler ... GFORTRAN (command line : gfortran) > Library Name ... libopenblas_haswellp-r0.2.20.a (Multi threaded; > Max num-threads is 12) > > To install the library, you can run "make > PREFIX=/path/to/your/installation install". > > =========================================================================== > 2 > =========================================================================== > $ opam install conf-openblas > > =-=- Processing actions > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > [ERROR] The compilation of conf-openblas failed at "sh -exc cc $CFLAGS > test.c -lopenblas". > > #=== ERROR while installing conf-openblas.0.2.0 > ===============================# > # opam-version 1.2.2 > # os linux > # command sh -exc cc $CFLAGS test.c -lopenblas > # path /home/nicolas/.opam/4.06.1/build/conf-openblas.0.2.0 > # compiler 4.06.1 > # exit-code 1 > # env-file > /home/nicolas/.opam/4.06.1/build/conf-openblas.0.2.0/conf-openblas-14498-dd682e.env > # stdout-file > /home/nicolas/.opam/4.06.1/build/conf-openblas.0.2.0/conf-openblas-14498-dd682e.out > # stderr-file > /home/nicolas/.opam/4.06.1/build/conf-openblas.0.2.0/conf-openblas-14498-dd682e.err > ### stderr ### > # + cc test.c -lopenblas > # test.c:1:19: fatal error: cblas.h: Aucun fichier ou dossier de ce type > # #include > # ^ > # compilation terminated. > > > > -- > 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