From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] OASIS help
Date: Sun, 10 Nov 2013 21:08:01 +0000 (UTC) [thread overview]
Message-ID: <slrnl7vtdr.ntq.sylvain@le-gall.net> (raw)
In-Reply-To: <CAFwK7-eyXP2drZ7wz6b2BQsycnVvZuYTJY7vUB0zX3ME17acxw@mail.gmail.com>
On 06-11-2013, Robert Soulé <soule@cs.cornell.edu> 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
next prev parent reply other threads:[~2013-11-10 21:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 16:09 Robert Soulé
2013-11-10 21:08 ` Sylvain Le Gall [this message]
2015-02-10 12:58 [Caml-list] oasis help Jiten Pathy
2015-02-10 13:19 ` Jeremie Dimino
2015-02-10 14:07 ` Jiten Pathy
2016-11-10 9:08 [Caml-list] OASIS help Laurent Thévenoux
[not found] <4912b1d7-c491-9462-2220-c08492d1833d@inria.fr>
2016-11-10 9:27 ` Francois BERENGER
2016-11-10 9:49 ` Laurent Thévenoux
2016-11-10 9:52 ` Francois BERENGER
2016-11-11 10:52 ` Bikal Gurung
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=slrnl7vtdr.ntq.sylvain@le-gall.net \
--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