caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Allsopp <dra-news@metastack.com>
To: "Soegtrop, Michael" <michael.soegtrop@intel.com>,
	"caml-list@inria.fr" <caml-list@inria.fr>
Subject: RE: [Caml-list] Flexdll circular dependency fix uses system provided flexdll.h [was: opam-cross-windows]
Date: Sat, 25 Jun 2016 16:52:36 +0000	[thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9F06559A2@Remus.metastack.local> (raw)
In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B41D@IRSMSX102.ger.corp.intel.com>

Michael Soegtrop wrote:
> Dear David,
> 
> > I'm not convinced this is a fundamental flaw - I think it more likely
> > that you have an existing flexlink in PATH, which will cause
> > config/Makefile to pick up the wrong include directory. I think it
> > likely if you study the failing command during make -f Makefile.nt opt
> you will see a -I pointing to your PATH'd flexlink.exe directory.
> 
> I have no system installation of flexdll. The compilation fails in my
> case, because there is no flexdll.h at all, except the one in the flexdll
> folder of ocaml. The only -I option when win32.c is compiled in asmrun is
> -I../byterun.

Something weird is going on - you should not be seeing that! As https://github.com/ocaml/ocaml/blob/trunk/asmrun/Makefile.nt#L71-L74 states, there should definitely not be -I../byterun and there should be $(IFLEXDIR) which, as long as no system flexlink.exe is found, should be -I../flexdll.

What's your precise sequence of commands (right from untarring or git clone)? Is this from a git clone or a released tarball?

> Does the flexdll make in ocamlc a local build of flexdll, or does it
> install flexdll somewhere globally? In the first case I think a -
> I../flexdll is missing, in the second case I guess I might miss some
> install prefixes.
> 
> > A git clone of trunk will use the version of flexdll configured at the
> time - that's how git submodules > work (because it stores a commit SHA,
> not a branch).
> 
> Does this also work if I get the ocaml sources as a tar ball rather than
> via a git clone?

No, you'd need either to get a specific sources tarball or checkout the correct commit after cloning the *flexdll* repository. I agree that in future it should state the version - however, it doesn't at the moment because you need "0.35" (i.e. master) which isn't actually released (hence the instruction to use a git clone).

Relatedly, my work packaging it all up with native Windows OPAM does install the version of flexdll which was current at the time of release (see https://github.com/dra27/opam-repository/blob/next-windows/packages/ocaml/ocaml.4.03.0/opam#L7 vs https://github.com/dra27/opam-repository/blob/next-windows/packages/ocaml/ocaml.4.02.0/opam#L7, for example)


David


  reply	other threads:[~2016-06-25 16:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-25 14:09 Soegtrop, Michael
2016-06-25 16:13 ` David Allsopp
2016-06-25 16:31   ` Soegtrop, Michael
2016-06-25 16:52     ` David Allsopp [this message]
2016-06-25 18:13       ` Soegtrop, Michael
2016-06-25 18:35         ` David Allsopp
2016-06-26 12:57           ` Soegtrop, Michael
2016-06-26 15:17             ` David Allsopp
2016-06-26 17:26               ` Soegtrop, Michael
2016-06-26 18:04                 ` David Allsopp
2016-06-27 11:15                   ` Soegtrop, Michael
2016-06-27 11:26                     ` David Allsopp
2016-06-27 12:01                       ` Soegtrop, Michael

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=E51C5B015DBD1348A1D85763337FB6D9F06559A2@Remus.metastack.local \
    --to=dra-news@metastack.com \
    --cc=caml-list@inria.fr \
    --cc=michael.soegtrop@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).