From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 576207EE79 for ; Fri, 6 May 2016 16:33:55 +0200 (CEST) IronPort-PHdr: 9a23:juLNaxRVS8+VrLfFnXiibtXmwNpsv+yvbD5Q0YIujvd0So/mwa64bRWN2/xhgRfzUJnB7Loc0qyN4/GmATJLvsrJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviqtuLPU4X2HKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGY2zRakzTKRZATI6KCh1oZSz7ViQBTeIszEnVWgZjgBPG0yNyRDxXp78tmGy4u980ymTMMmwVrc5Vii46L9DSRn0hSNBPDk8pjL5kMt12ZNSuhWn7zl+xZXXccnBJf9/eLjebPsYTGxMRdpLWiFdRIi7at1cXKI6Ie9Eotyl9BM1phykCFzpXbu3xw== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=yminsky@janestreet.com; spf=Pass smtp.mailfrom=yminsky@janestreet.com; spf=None smtp.helo=postmaster@mxout3.mail.janestreet.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of yminsky@janestreet.com) identity=pra; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yminsky@janestreet.com"; x-sender="yminsky@janestreet.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of yminsky@janestreet.com designates 38.105.200.229 as permitted sender) identity=mailfrom; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yminsky@janestreet.com"; x-sender="yminsky@janestreet.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mxout3.mail.janestreet.com) identity=helo; client-ip=38.105.200.229; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yminsky@janestreet.com"; x-sender="postmaster@mxout3.mail.janestreet.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AhAAD6qSxXiuXIaSZdhA19Brh1AQ2BdhqFdgKBKwc4FAEBAQEBAQEBEQEBAQgWCVCCLYIVAQEEEhEEGQEBByULAQ8LCw0CAiYCAiISAQUBHAYTIogJA55AgTE+MYpUZ4RBAQEEjD8BAQEBAQEBAwEBAQEBAQEBEgYKcoUkhEyEC4M0glmYJI4bjxZFjTMSHoEOHgEBgjoeIIFRUogtAQEB X-IPAS-Result: A0AhAAD6qSxXiuXIaSZdhA19Brh1AQ2BdhqFdgKBKwc4FAEBAQEBAQEBEQEBAQgWCVCCLYIVAQEEEhEEGQEBByULAQ8LCw0CAiYCAiISAQUBHAYTIogJA55AgTE+MYpUZ4RBAQEEjD8BAQEBAQEBAwEBAQEBAQEBEgYKcoUkhEyEC4M0glmYJI4bjxZFjTMSHoEOHgEBgjoeIIFRUogtAQEB X-IronPort-AV: E=Sophos;i="5.24,587,1454972400"; d="scan'208";a="217170804" Received: from mxout3.mail.janestreet.com ([38.105.200.229]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 May 2016 16:33:54 +0200 Received: from tot-qpr-mailcore1.delacy.com ([172.27.56.68] helo=tot-qpr-mailcore1) by mxout3.mail.janestreet.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1aygpE-0006e1-OJ for caml-list@inria.fr; Fri, 06 May 2016 10:33:52 -0400 X-JS-Flow: external Received: by tot-qpr-mailcore1 with JS-mailcore (0.1) (envelope-from ) id BXLKtQ-AAADz0-Wb; 2016-05-06 10:33:52.718722-04:00 Received: from mail-yw0-f199.google.com ([209.85.161.199]) by mxgoog1.mail.janestreet.com with esmtps (UNKNOWN:AES128-GCM-SHA256:128) (Exim 4.72) (envelope-from ) id 1aygpE-00052u-LK for caml-list@inria.fr; Fri, 06 May 2016 10:33:52 -0400 Received: by mail-yw0-f199.google.com with SMTP id v81so269315815ywa.1 for ; Fri, 06 May 2016 07:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ia45mbbZ/gfMwbrRSl3BvHcFx29suxm4SwJOGA7z8v0=; b=Chhdhuc3ZTfkxw5Mx4emJx+rHDJfqoTdxq86SrevhMWvQxhyD+jMj2tQbty5ZMGJW0 bdd30PbKAAfM9FOOSlB6y+hcEOtf20VymSThJr4Icz/TDkh5psPDD040J22jCnXaQynh 6LU6NmyrgcWCOTRbsCnWY4QaPKe7eJ0wtSYNs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ia45mbbZ/gfMwbrRSl3BvHcFx29suxm4SwJOGA7z8v0=; b=kV4HA7ftzEBdnpv9iDZccyouOFCXYKzxffdjrOI9zmkaA+OxSv344UK5RpjlM6l4ac UcyHNaKzKKzB5YBjd9jMrHcpYKEa0uckm4pDmY1r5QuQ0kSv8vz50/xa3j6C77AhjxMy lW8onLFjIIIRi/j/CWWgYBRzTJa468WnSx4uvbxxHCSBVeitdJ0hZuZbzgEvR1jfgIzD wQ3IF7uOekGZI29o1GkBPGnBcHTJC4KmB+HabiRlGPC9fac/ozWkEsG++CulkL8FX0Hm BS2mrJNHKpSPhcqmFshQpPDqFog8EbJ+NjnIj4CGHVtqys4U+2jZaXM/jAxnlfSLkwmq gjTQ== X-Gm-Message-State: AOPr4FU9y2+tTY5mhkUju9zLDYWKh1UQpCIuzh+eha/SpGcZToVUlVtPNqTciWwYQj9GCNw1pPSkmP/+i/qRjDJSN66EW8QB3W0Nmdd+srdZ9fDTxajlO+6f5aX7xhz3KzryiNUAqe80Mo2xi3zweQdMXBpe9QNaFXdUWqFboXE= X-Received: by 10.13.233.68 with SMTP id s65mr12257945ywe.96.1462545232338; Fri, 06 May 2016 07:33:52 -0700 (PDT) X-Received: by 10.13.233.68 with SMTP id s65mr12257932ywe.96.1462545232205; Fri, 06 May 2016 07:33:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.208.145 with HTTP; Fri, 6 May 2016 07:33:32 -0700 (PDT) In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CEEEA4D@IRSMSX102.ger.corp.intel.com> References: <0F7D3B1B3C4B894D824F5B822E3E5A172CEEEA4D@IRSMSX102.ger.corp.intel.com> From:Yaron Minsky Date: Fri, 6 May 2016 10:33:32 -0400 Message-ID: To:"Soegtrop, Michael" Cc:"caml-list@inria.fr" , "ocaml-core@googlegroups.com" Content-Type: text/plain; charset=UTF-8 X-JS-Processed-by: mailcore Subject: Re: [Caml-list] How to handle system decencies in Ocaml (like O_ASYNC not implemented in cygwin) Looping in the Core mailing list, since this seems like a core-specific issue. y On Fri, May 6, 2016 at 4:48 AM, Soegtrop, Michael wrote: > Dear Ocaml users, > > > > I am working on compiling core with opam on cygwin. My plan is to integrate > this with the work of whitequark (MinGW cross opam for Linux) to have a > MinGW cross opam on cygwin. > > > > I already have a convenient script to setup cygwin with all modules and to > compile opam and it works fine. Just when compiling core, there are two Unix > features not implemented in cygwin. One is O_ASYNC. It is easy to patch it > away and also easy to make this system dependent in the C file > (unix_stubs.c), but I wonder how I could handle this in a portable way in > the OCaml wrapper. It looks like this: > > > > module Open_flags = struct > > external append : unit -> Int63.t = "unix_O_APPEND" > > external async : unit -> Int63.t = "unix_O_ASYNC" > > external cloexec : unit -> Int63.t = "unix_O_CLOEXEC" > > > > Is there some way to have async on normal Linux and not have it on cygwin? > > > > Btw.: Opam, batteries and 34 out of the 35 modules of core compile fine on > cygwin and the remaining module just has two errors, so I think it is > worthwhile to fix this. > > Best regards, > > Michael > > > > Intel Deutschland GmbH > Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, www.intel.de > Managing Directors: Christin Eisenschmid, Christian Lamprechter > Chairperson of the Supervisory Board: Nicole Lau > Registered Office: Munich > Commercial Register: Amtsgericht Muenchen HRB 186928