From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr 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 984227EEF8 for ; Thu, 30 Jul 2015 04:29:53 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of zhenya1007@gmail.com) identity=pra; client-ip=209.85.218.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="zhenya1007@gmail.com"; x-sender="zhenya1007@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of zhenya1007@gmail.com designates 209.85.218.54 as permitted sender) identity=mailfrom; client-ip=209.85.218.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="zhenya1007@gmail.com"; x-sender="zhenya1007@gmail.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@mail-oi0-f54.google.com) identity=helo; client-ip=209.85.218.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="zhenya1007@gmail.com"; x-sender="postmaster@mail-oi0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CQAQC1i7lVlDbaVdFbhFcGgx2lXgEGh3WUYwdMAQEBAQEBEgEBAQEHCwsJHzCEPBEdARseAxIDDTcCJAERAQUBDgFIh3YBAxKcBY06ggWBLD4xiz+BbIJ5ixgKGScNV4R+AQUOhhGJa4M7gUMFhWSBMYYmNoZ7BoxEl2USI4EWF3ODOR4xgkwBAQE X-IPAS-Result: A0CQAQC1i7lVlDbaVdFbhFcGgx2lXgEGh3WUYwdMAQEBAQEBEgEBAQEHCwsJHzCEPBEdARseAxIDDTcCJAERAQUBDgFIh3YBAxKcBY06ggWBLD4xiz+BbIJ5ixgKGScNV4R+AQUOhhGJa4M7gUMFhWSBMYYmNoZ7BoxEl2USI4EWF3ODOR4xgkwBAQE X-IronPort-AV: E=Sophos;i="5.15,574,1432591200"; d="scan'208";a="172075561" Received: from mail-oi0-f54.google.com ([209.85.218.54]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 30 Jul 2015 04:29:52 +0200 Received: by oihq81 with SMTP id q81so15244557oih.2 for ; Wed, 29 Jul 2015 19:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=C6bXA6KCZZRcrRDaVxsX67vTxTfqtcEW8kDhB+5bD3c=; b=F4yx/8B8GfTCw1lEPuTCjEKecEhFB19pIEpbbDwWrFHni+g9YZmXpxSYQz7pAJwBXm h/a2J7Vj49Ymnf3iCwVPMtPHJ53Oedjpm1+si/QNNrfnq88etCLTRBUDzQbeochO6s0t JHCSMEpLqHlXYJwEO/jwWi7+Y9gb+40ao4Rkfh7IfffNoufjFugmJ5uZ20ezAodRcI1/ Nqnq1lkuMh4sDBtkDHfIHK0kiDVLfi7XgwEQnnQWIax4sn+h6VGfRgZ8cupIZDp4cslk v3gAQHrS2tlINwkwVxKkemvTAtxEkDoNWJbGQovclAt8u2NaW3sFuSvKdvVuVtwGISbj Bx0g== MIME-Version: 1.0 X-Received: by 10.202.78.21 with SMTP id c21mr28044924oib.76.1438223391357; Wed, 29 Jul 2015 19:29:51 -0700 (PDT) Received: by 10.60.16.168 with HTTP; Wed, 29 Jul 2015 19:29:51 -0700 (PDT) Date: Wed, 29 Jul 2015 19:29:51 -0700 Message-ID: From: Evgeny Roubinchtein To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=001a11c183705981c9051c0e7a32 Subject: [Caml-list] Cannot compile ocamlrun on Windows with MSVC toolchain --001a11c183705981c9051c0e7a32 Content-Type: text/plain; charset=UTF-8 Dear OCaml users and developers, I am trying to compile a copy of OCaml on Windows 7 amd64, following instructions in README.win32, but "make -f Makefile.nt" world dies with the following error: make[1]: Entering directory '/cygdrive/c/Users/me/src/ocaml/byterun' flexlink -merge-manifest -stack 16777216 -exe -o ocamlrun.exe prims.obj ws2_32.lib \ libcamlrun.lib ** Fatal error: Cannot find file "ws2_32.lib" Makefile.nt:23: recipe for target 'ocamlrun.exe' failed make[1]: *** [ocamlrun.exe] Error 2 make[1]: Leaving directory '/cygdrive/c/Users/me/src/ocaml/byterun' Initial set-up I tried compiling under was: cygwin64 command-line tools + Windows SDK 8.1; I have also tried cygwin32 command-line tools + Microsoft Windows SDK for Windows 7. My ~/.msenv32 currently looks as follows: VCPATH="`cygpath -p 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\bin;C:\WINDOWS\Microsoft.NET\Framework\;C:\WINDOWS\Microsoft.NET\Framework\\Microsoft .NET Framework 3.5 (Pre-Release Version);C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v7.0\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Imaging\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Git\cmd;C:\texlive\2015\bin\win32;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Quarantine\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Mercurial\;c:\usr\bin;C:\MinGW\bin;c:\Program Files\7-Zip;C:\Program Files (x86)\PuTTY'`" LIBPATH="C:\WINDOWS\Microsoft.NET\Framework\;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB;" INCLUDE="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.0\include;;C:\Program Files (x86)\flexdll" FLPATH="`cygpath 'C:\Program Files (x86)\flexdll'`" PATH="$VCPATH:$FLPATH:$PATH" export PATH LIB LIBPATH INCLUDE export OCAMLBUILD_FIND=/usr/bin/find ,and here is me trying to run the failing flexlink command by hand passing in an extra -L argument: ~/src/ocaml/byterun$ flexlink -merge-manifest -L'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib' -stack 16777216 -exe -o ocamlrun.exe prims.obj ws2_32.lib libcamlrun.lib ** Fatal error: Cannot find file "OLDNAMES" --001a11c183705981c9051c0e7a32 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear OCaml users and developers,
I am trying to compile a copy of OCaml on Windows 7 amd64, followin= g instructions in README.win32, but "make -f Makefile.nt" world d= ies with the following error:

make[1]: Entering directory '/cygd= rive/c/Users/me/src/ocaml/byterun'
flexlink -merge-manifest -stack 1= 6777216 -exe -o ocamlrun.exe prims.obj ws2_32.lib \
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 libcamlrun.lib
** Fatal error: Cann= ot find file "ws2_32.lib"
Makefile.nt:23: recipe for target &#= 39;ocamlrun.exe' failed
make[1]: *** [ocamlrun.exe] Error 2
make[= 1]: Leaving directory '/cygdrive/c/Users/me/src/ocaml/byterun'
<= br>
Initial set-up I tried compiling under was: cygwin64 command-line = tools + Windows SDK 8.1; I have also tried cygwin32 command-line tools + Mi= crosoft Windows SDK for Windows 7.

My ~/.msenv32 currently loo= ks as follows:
VCPATH=3D"`cygpath -p 'C:\Program Files (x86)\Mi= crosoft Visual Studio 9.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visu= al Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Com= mon7\Tools;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools= \bin;C:\WINDOWS\Microsoft.NET\Framework\;C:\WINDOWS\Microsoft.NET\Framework= \\Microsoft .NET Framework 3.5 (Pre-Release Version);C:\WINDOWS\Microsoft.N= ET\Framework\v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 9.0\= VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v7.0\bin;C:\ProgramDa= ta\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\= Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\Window= sPowerShell\v1.0\;C:\Program Files (x86)\Windows Imaging\;C:\Program Files\= Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\= TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Pr= ogram Files (x86)\Git\cmd;C:\texlive\2015\bin\win32;C:\Strawberry\c\bin;C:\= Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Quar= antine\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit= \;C:\Program Files\Mercurial\;c:\usr\bin;C:\MinGW\bin;c:\Program Files\7-Zi= p;C:\Program Files (x86)\PuTTY'`"
LIBPATH=3D"C:\WINDOWS\Mi= crosoft.NET\Framework\;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Pro= gram Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;C:\Program Files= (x86)\Microsoft Visual Studio 9.0\VC\LIB;"
INCLUDE=3D"C:\Prog= ram Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;C:\Program Fi= les (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program Files\Microsoft= SDKs\Windows\v7.0\include;;C:\Program Files (x86)\flexdll"
FLPATH= =3D"`cygpath 'C:\Program Files (x86)\flexdll'`"
PATH= =3D"$VCPATH:$FLPATH:$PATH"
export PATH LIB LIBPATH INCLUDE
= export OCAMLBUILD_FIND=3D/usr/bin/find

,and here is me trying = to run the failing flexlink command by hand passing in an extra -L argument= :
=C2=A0~/src/ocaml/byterun$ flexlink -merge-manifest -L'C:\Program = Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib' -stack 16777216 -exe -o o= camlrun.exe prims.obj ws2_32.lib=C2=A0 libcamlrun.lib=C2=A0=C2=A0
=C2= =A0** Fatal error: Cannot find file "OLDNAMES"



--001a11c183705981c9051c0e7a32--