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 18:35:59 +0000	[thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9F06566AC@Remus.metastack.local> (raw)
In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B4AC@IRSMSX102.ger.corp.intel.com>

Michael Soegtrop wrote:
> Dear David,
> 
> > What's your precise sequence of commands (right from untarring or git
> clone)?
> > Is this from a git clone or a released tarball?
> 
> I use this tarbal:
> 
> https://github.com/ocaml/ocaml/archive/4.03.0.tar.gz
> 
> I try to create a mingw cross ocaml on Cygwin, which I guess is a bit
> uncommon.

That's the official way of doing it!

> My command sequence is:
> 
>     < download and untar
> https://github.com/ocaml/ocaml/archive/4.03.0.tar.gz >
>     git clone https://github.com/alainfrisch/flexdll.git
>     cp config/m-nt.h config/m.h
>     cp config/s-nt.h config/s.h
>     cp config/Makefile.mingw64 config/Makefile
>     make -f Makefile.nt flexdll
>     make -f Makefile.nt world
>     make -f Makefile.nt opt
>     make -f Makefile.nt opt.opt
> 
> I already have a cygqin ocaml installed in the usual paths, I guess this
> leads to confusion. Probably I should give a PREFIX=something argument to
> make.

Indeed - it means you *do* have a system installation of flexdll! It almost certainly means IFLEXDIR is wrong (though I'm still surprised that you get -I../byterun from make -f Makefile.nt opt). Presumably that means which flexlink from your Cygwin prompt returns something like /usr/bin/flexlink?

> If you are interested, I can send you two scripts to setup a clean Cygwin
> and reproduce the issue, but I guess with the pointers you gave me, I
> should be able to figure it out myself.
> 
> Just two questions:
> 
> 1.) in your .comp files I saw a win32.sh. Where is this from? It doesn't
> appear in the 4.03.0 tar ball mentioned above.

I'm working on OPAM 2.0, so it's a package rather than a .comp file. win.sh is a helper script in that package, since embedding the commands for all four ports in a single OPAM file gets unreadable very quickly! 

> 2.) How far is the windows opam and what build environment do you use for
> this? Cygwin mingw cross? Should I give it a try?

I'm very nearly ready to do an alpha release, but I've been delayed by emergency eye surgery this week, which has severely limited the number of hours I can spend in front of a computer! The version I'm working supports OCaml 3.07-4.03 using all the native ports (32/64-bit msvc and mingw) built the official way using Cygwin.


David


  reply	other threads:[~2016-06-25 18:36 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
2016-06-25 18:13       ` Soegtrop, Michael
2016-06-25 18:35         ` David Allsopp [this message]
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=E51C5B015DBD1348A1D85763337FB6D9F06566AC@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).