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 1CFD37EE25 for ; Sun, 10 Nov 2013 22:08:28 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of sylvain@le-gall.net) identity=pra; client-ip=80.91.229.3; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="sylvain@le-gall.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gclci-caml-list@m.gmane.org designates 80.91.229.3 as permitted sender) identity=mailfrom; client-ip=80.91.229.3; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="gclci-caml-list@m.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@plane.gmane.org designates 80.91.229.3 as permitted sender) identity=helo; client-ip=80.91.229.3; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="postmaster@plane.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEFAAv1f1JQW+UDcWdsb2JhbABZgz+DR71EFg4BDAsKHCiCJQEBBSMPAVYLGAICJgICECwbGYgFAasXkg2BKY5bglWBRQOZPpQB X-IPAS-Result: AjEFAAv1f1JQW+UDcWdsb2JhbABZgz+DR71EFg4BDAsKHCiCJQEBBSMPAVYLGAICJgICECwbGYgFAasXkg2BKY5bglWBRQOZPpQB X-IronPort-AV: E=Sophos;i="4.93,673,1378850400"; d="scan'208";a="34815925" Received: from plane.gmane.org ([80.91.229.3]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 10 Nov 2013 22:08:27 +0100 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VfcF4-0005nh-1Q for caml-list@inria.fr; Sun, 10 Nov 2013 22:08:22 +0100 Received: from root.ovh.le-gall.net ([37.59.37.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Nov 2013 22:08:22 +0100 Received: from sylvain by root.ovh.le-gall.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 10 Nov 2013 22:08:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Sun, 10 Nov 2013 21:08:01 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: root.ovh.le-gall.net User-Agent: slrn/pre1.0.0-18 (Linux) Subject: Re: [Caml-list] OASIS help On 06-11-2013, Robert Soulé wrote: > > --001a11c2f8b65c13b804ea84601f > Content-Type: text/plain; charset=ISO-8859-1 > > Hello, > > I am trying to create an _oasis file with a Test section. My test will > call an executable that is built in an Executable section. The test > executable links agains links against my project library, which uses > some c code. My oasis file is attached. > > When I run "oasis setup" and then "make", everything works fine. I see > Test.native in my directory, as I would expect. > > However, I run into problems when I run "make test": > > $ ocaml setup.ml -test > W: Tests are turned off, consider enabling with 'ocaml setup.ml > -configure --enable-tests' > > $ ocaml setup.ml -configure --enable-tests > ocamlfind: Package `with-c' not found > W: Field 'pkg_with_c' is not set: Command > ''/Users/soule/.opam/4.00.1/bin/ocamlfind' query -format %d with-c > > '/var/folders/q1/hc432vx951b6dlfrvybzm4d40000gn/T/oasis-c91777.txt'' > terminated with error code 2 > E: Cannot find findlib package with-c > E: Failure("1 configuration error") > > Is there an extra Field I need to add in the Test section if I am > running an executable that links against C code? > The _oasis file you send is partial, I see no definition of with-c or mylibwithc. As far as I read, I think the part you send us is fine. (well you may not set Run: true). Can you send us a more complete _oasis ? Cheers, Sylvain Le Gall -- Website: http://sylvain.le-gall.net/ OCaml forge: http://forge.ocamlcore.org OCaml blogs: http://planet.ocaml.org