From: Lally Singh <lally.singh@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Building ocaml on Win32 using VS 2008
Date: Wed, 14 Apr 2010 12:46:55 -0400 [thread overview]
Message-ID: <i2l3b3449e01004140946s1f522f32q1d55d960adc9d57@mail.gmail.com> (raw)
Hello,
Has anyone had any success building ocaml on Win32 using VS 2008?
The normal ocaml/win32 distribution's libcamlrun.a wants some symbols
no longer available on the newer runtime libraries (e.g. __pctype and
__alloca).
I wiped my old cygwin install (which included, amongst other things,
ocaml and gcc), and made a minimal bash/sed/make/diffutils one, and
ran make under the Visual Studio 2008 Command Prompt. With some path
adjustment for flexlink, I can get as far as this:
cp yacc/ocamlyacc.exe boot/ocamlyacc.exe
cd stdlib ; make -f Makefile.nt COMPILER=../boot/ocamlc all
make[1]: Entering directory
`/c/real_cygwin/home/lsingh9/src/ocaml-3.11.2/stdlib'
../boot/ocamlrun ../boot/ocamlc -g -warn-error A -nostdlib
`./Compflags pervasives.cmi` -c pervasives.mli
Fatal error: unknown C primitive `caml_alloc_dummy'
make[1]: *** [pervasives.cmi] Error 2
make[1]: Leaving directory `/c/real_cygwin/home/lsingh9/src/ocaml-3.11.2/stdlib'
Which leaves me rather confused. Does anyone know what I'm doing wrong?
Thanks in advance,
-Lally
next reply other threads:[~2010-04-14 16:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-14 16:46 Lally Singh [this message]
2010-04-14 16:54 ` [Caml-list] " Alain Frisch
2010-04-14 17:13 ` Lally Singh
2010-04-14 17:32 ` Alain Frisch
2010-04-14 17:48 ` Dmitry Bely
2010-04-14 18:38 ` Sylvain Le Gall
2010-04-14 20:58 ` [Caml-list] " Lally Singh
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=i2l3b3449e01004140946s1f522f32q1d55d960adc9d57@mail.gmail.com \
--to=lally.singh@gmail.com \
--cc=caml-list@yquem.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