Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] getting the type of a polymorphic data ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] Compiling on windows (mingw)
Hi Daan,

> I am trying to compile the glorious ocaml compiler from source on
> windowsXP using mingw32 (and cygwin tools). However when I try to
> compile ocamlopt, the build fails on the "ar" utility:
> ar: @c:\DOCUME~1\Daan\LOCALS~1\Temp\camlresp025be4: Invalid argument
> Maybe someone else on this list has experienced this problem too?

I suspect the wrong "ar" is called.  It should be the "ar" that comes
with Cygwin, and not the one that comes with the standalone Mingw
distribution.  The latter doesn't handle long command lines via
"response files".

More generally, the installation instructions weren't too clear on
this but I tried to clarify them in 3.08: the "mingw" port of OCaml
should be built with Cygwin and the Mingw stuff distributed along with
Cygwin, but not with the standalone Mingw32 distribution.  It's all
very confusing, I know...

Hope this helps,

- Xavier

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: