Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Kenneth Adam Miller <kennethadammiller@gmail.com>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Library Compile Error
Date: Tue, 23 Jun 2015 18:10:39 -0400	[thread overview]
Message-ID: <CAK7rcp-GcSo+_22Hd5oKDozSwSS721oUa8thhBgmmT8U-WPPqQ@mail.gmail.com> (raw)
In-Reply-To: <CAK7rcp9EiL8HXsX5A2C4hdBV4JNqJt7TsPaYHk7aD-t8o_QcxA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1875 bytes --]

I fixed it. It was the package specification order. :(

I wish there were a warning about that in the compiler output that mentions
the lack of implementation that the compiler sees.

On Tue, Jun 23, 2015 at 1:45 PM, Kenneth Adam Miller <
kennethadammiller@gmail.com> wrote:

> I'm using OCamlMakefile (rather the library that I'm editing uses it, and
> I have to use it consequently), and I need to add some package dependencies
> in order to recompile each while developing locally before I ship my
> changes to opam. Basically, I've added the core and core_kernel packages to
> these libraries to make some functions tail recursive. But it's turning out
> that using OCamlMakefile has made it more difficult than it sounds.
>
> A is consumed by B, but both must be installed for them to be usable on
> the target machine. Currently, you can do an opam install A B and it will
> work.  A has been successfully edited and subsequently recompiled to
> consume core and core_kernel as it needs to. I was even able to opam pin
> the package to get it working locally.
>
> B consumes A, but weirdly, B complains of the following when I try to make
> it:
>
> Error: No implementations provided for the following modules:
>          Core_kernel referenced from /path/to/(A)
>          Core referenced from /path/to/(A)
>
> I noted that in Stack Overflow that there were some issues with casing for
> package names when you built stuff. This is strange because when I was
> compiling A, it worked fine. I changed the casing to A instead of a in the
> OCamlMakefile export PACKS= line, and it failed, unable to find the package
> A.
>
> So, A compiles just fine, but B refuses. I tried to change B to specify
> various combinations of casing of core (as in: PACKS+=core vs PACKS+=Core)
> but that failed too.
>
> So now I don't know how to get B to compile using OCamlMakefile.
>
>

[-- Attachment #2: Type: text/html, Size: 4647 bytes --]

      reply	other threads:[~2015-06-23 22:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23 17:45 Kenneth Adam Miller
2015-06-23 22:10 ` Kenneth Adam Miller [this message]

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=CAK7rcp-GcSo+_22Hd5oKDozSwSS721oUa8thhBgmmT8U-WPPqQ@mail.gmail.com \
    --to=kennethadammiller@gmail.com \
    --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