* Building ocaml on Win32 using VS 2008
@ 2010-04-14 16:46 Lally Singh
2010-04-14 16:54 ` [Caml-list] " Alain Frisch
0 siblings, 1 reply; 7+ messages in thread
From: Lally Singh @ 2010-04-14 16:46 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Building ocaml on Win32 using VS 2008
2010-04-14 16:46 Building ocaml on Win32 using VS 2008 Lally Singh
@ 2010-04-14 16:54 ` Alain Frisch
2010-04-14 17:13 ` Lally Singh
0 siblings, 1 reply; 7+ messages in thread
From: Alain Frisch @ 2010-04-14 16:54 UTC (permalink / raw)
To: Lally Singh; +Cc: caml-list
On 14/04/2010 18:46, Lally Singh wrote:
> Has anyone had any success building ocaml on Win32 using VS 2008?
We compile the win32 port with the Win7 SDK (Microsoft Windows SDK for
Windows 7 and .NET Framework 3.5 Service Pack 1). As far as I know, this
SDK contains the same toolchain as VS 2008. And note that despite its
name, the SDK is not related to Win7 at all: it works for older of
Windows as well.
-- Alain
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Building ocaml on Win32 using VS 2008
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 18:38 ` Sylvain Le Gall
0 siblings, 2 replies; 7+ messages in thread
From: Lally Singh @ 2010-04-14 17:13 UTC (permalink / raw)
To: Alain Frisch; +Cc: caml-list
Do you have a build procedure I could use? My own attempts have been
rather terrible so far :-(
On Wed, Apr 14, 2010 at 12:54 PM, Alain Frisch <alain.frisch@lexifi.com> wrote:
> On 14/04/2010 18:46, Lally Singh wrote:
>>
>> Has anyone had any success building ocaml on Win32 using VS 2008?
>
> We compile the win32 port with the Win7 SDK (Microsoft Windows SDK for
> Windows 7 and .NET Framework 3.5 Service Pack 1). As far as I know, this SDK
> contains the same toolchain as VS 2008. And note that despite its name, the
> SDK is not related to Win7 at all: it works for older of Windows as well.
>
>
> -- Alain
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Building ocaml on Win32 using VS 2008
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
1 sibling, 1 reply; 7+ messages in thread
From: Alain Frisch @ 2010-04-14 17:32 UTC (permalink / raw)
To: Lally Singh; +Cc: caml-list
On 14/04/2010 19:13, Lally Singh wrote:
> Do you have a build procedure I could use? My own attempts have been
> rather terrible so far :-(
I don't think we do anything special (regular configuration steps for
the Win32, and then "make -f Makefile.nt world").
-- Alain
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Building ocaml on Win32 using VS 2008
2010-04-14 17:32 ` Alain Frisch
@ 2010-04-14 17:48 ` Dmitry Bely
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Bely @ 2010-04-14 17:48 UTC (permalink / raw)
To: Caml List
On Wed, Apr 14, 2010 at 9:32 PM, Alain Frisch <alain.frisch@lexifi.com> wrote:
> On 14/04/2010 19:13, Lally Singh wrote:
>>
>> Do you have a build procedure I could use? My own attempts have been
>> rather terrible so far :-(
>
> I don't think we do anything special (regular configuration steps for the
> Win32, and then "make -f Makefile.nt world").
Just to confirm that: it's build with my VS2008 without any special
efforts. Lally, are you sure that the correct bootstrap compiler is
used?
- Dmitry Bely
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Building ocaml on Win32 using VS 2008
2010-04-14 17:13 ` Lally Singh
2010-04-14 17:32 ` Alain Frisch
@ 2010-04-14 18:38 ` Sylvain Le Gall
2010-04-14 20:58 ` [Caml-list] " Lally Singh
1 sibling, 1 reply; 7+ messages in thread
From: Sylvain Le Gall @ 2010-04-14 18:38 UTC (permalink / raw)
To: caml-list
On 14-04-2010, Lally Singh <lally.singh@gmail.com> wrote:
> Do you have a build procedure I could use? My own attempts have been
> rather terrible so far :-(
>
I can confirm that I have no particular problems building ocaml 3.11.2
with MSVS 2008.
>
> On Wed, Apr 14, 2010 at 12:54 PM, Alain Frisch <alain.frisch@lexifi.com> wrote:
>> On 14/04/2010 18:46, Lally Singh wrote:
>>>
>>> Has anyone had any success building ocaml on Win32 using VS 2008?
>>
>> We compile the win32 port with the Win7 SDK (Microsoft Windows SDK for
>> Windows 7 and .NET Framework 3.5 Service Pack 1). As far as I know, this SDK
>> contains the same toolchain as VS 2008. And note that despite its name, the
>> SDK is not related to Win7 at all: it works for older of Windows as well.
>>
Regards,
Sylvain Le Gall
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] Re: Building ocaml on Win32 using VS 2008
2010-04-14 18:38 ` Sylvain Le Gall
@ 2010-04-14 20:58 ` Lally Singh
0 siblings, 0 replies; 7+ messages in thread
From: Lally Singh @ 2010-04-14 20:58 UTC (permalink / raw)
To: Sylvain Le Gall; +Cc: caml-list
Ok, got it -- I had been running in cygwin/rxvt (but without the
visual studio env vars), and had some artifacts from there. Untarring
from the source tree again and doing it in a cmd.exe shell ala
vcvars.bat seemed to do the trick (while also tweaking config/Makefile
a bit more).
Thanks everyone!
On Wed, Apr 14, 2010 at 2:38 PM, Sylvain Le Gall <sylvain@le-gall.net> wrote:
> On 14-04-2010, Lally Singh <lally.singh@gmail.com> wrote:
>> Do you have a build procedure I could use? My own attempts have been
>> rather terrible so far :-(
>>
>
> I can confirm that I have no particular problems building ocaml 3.11.2
> with MSVS 2008.
>
>>
>> On Wed, Apr 14, 2010 at 12:54 PM, Alain Frisch <alain.frisch@lexifi.com> wrote:
>>> On 14/04/2010 18:46, Lally Singh wrote:
>>>>
>>>> Has anyone had any success building ocaml on Win32 using VS 2008?
>>>
>>> We compile the win32 port with the Win7 SDK (Microsoft Windows SDK for
>>> Windows 7 and .NET Framework 3.5 Service Pack 1). As far as I know, this SDK
>>> contains the same toolchain as VS 2008. And note that despite its name, the
>>> SDK is not related to Win7 at all: it works for older of Windows as well.
>>>
>
> Regards,
> Sylvain Le Gall
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-04-14 20:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14 16:46 Building ocaml on Win32 using VS 2008 Lally Singh
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox