caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Evgeny Roubinchtein <zhenya1007@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] Cannot compile ocamlrun on Windows with MSVC toolchain
Date: Wed, 29 Jul 2015 19:29:51 -0700	[thread overview]
Message-ID: <CAGYXaSY7A2oo_iLG-Ua2CYyb5kx77WG1mzqNodK_J4HxF+xDzw@mail.gmail.com> (raw)

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

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"

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

                 reply	other threads:[~2015-07-30  2:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAGYXaSY7A2oo_iLG-Ua2CYyb5kx77WG1mzqNodK_J4HxF+xDzw@mail.gmail.com \
    --to=zhenya1007@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;
as well as URLs for NNTP newsgroup(s).