From: Andres Varon <avaron@gmail.com>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml 3.11.0 release candidate
Date: Wed, 26 Nov 2008 12:38:32 -0500 [thread overview]
Message-ID: <ADCDCF63-D7A3-4304-B7CA-F3EDB35AB10E@gmail.com> (raw)
In-Reply-To: <492D81E2.1060809@inria.fr>
On Nov 26, 2008, at 12:05 PM, Xavier Leroy wrote:
>> So far our tests have compiled and run successfully in most platforms
>> [1] excepting Windows 64 bits (but it's the first time I attempt to
>> compile in this architecture). I am getting this error message:
>
> There are two problems with Windows 64 that I forgot to fix before
> this RC1 release; this is one of them. A patch is available at
>
> http://gallium.inria.fr/~xleroy/ocaml-3.11rc1-win64.patch
>
Thanks. This time the compilation went further, but failed with the
errors below.
> andres@WIN-X85PMN663RN ~/ocaml-3.11.0+rc1
> $ make -f Makefile.nt world
> ....
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/stdlib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/stdlib'
> for i in win32unix systhreads str num win32graph dynlink bigarray;
> do make -f Ma
> kefile.nt -C otherlibs/$i all; done
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> win32unix'
> cl /nologo -D_CRT_SECURE_NO_DEPRECATE /I 'C:/Program Files/Microsoft
> Platform SD
> K/Include/crt' /I 'C:/Program Files/Microsoft Platform SDK/
> Include' /Ox /MD -I.
> ./../byterun -I../unix -c accept.c
> accept.c
> accept.c(58) : error C2146: syntax error : missing ';' before
> identifier 'fd'
> make[1]: *** [accept.obj] Error 2
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> win32unix'
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> systhreads'
>
> cl /nologo -D_CRT_SECURE_NO_DEPRECATE /I 'C:/Program Files/Microsoft
> Platform SD
> K/Include/crt' /I 'C:/Program Files/Microsoft Platform SDK/
> Include' /Ox /MD -I.
> ./../byterun -c win32.c
> win32.c
> win32.c(217) : error C2037: left of 'mutex' specifies undefined
> struct/union 'ch
> annel'
> win32.c(225) : error C2037: left of 'mutex' specifies undefined
> struct/union 'ch
> annel'
> win32.c(228) : error C2037: left of 'mutex' specifies undefined
> struct/union 'ch
> annel'
> win32.c(231) : error C2037: left of 'mutex' specifies undefined
> struct/union 'ch
> annel'
> win32.c(231) : error C2198: 'WaitForSingleObject' : too few
> arguments for call t
> hrough pointer-to-function
> win32.c(236) : error C2037: left of 'mutex' specifies undefined
> struct/union 'ch
> annel'
> win32.c(236) : warning C4022: 'WaitForSingleObject' : pointer
> mismatch for actua
> l parameter 1
> win32.c(236) : error C2198: 'WaitForSingleObject' : too few
> arguments for call t
> hrough pointer-to-function
> win32.c(248) : error C2037: left of 'mutex' specifies undefined
> struct/union 'ch
> annel'
> win32.c(248) : error C2198: 'ReleaseMutex' : too few arguments for
> call through
> pointer-to-function
> win32.c(328) : error C2065: 'caml_channel_mutex_free' : undeclared
> identifier
> win32.c(328) : warning C4047: '=' : 'int' differs in levels of
> indirection from
> 'void (__cdecl *)(channel *)'
> win32.c(329) : error C2065: 'caml_channel_mutex_lock' : undeclared
> identifier
> win32.c(329) : warning C4047: '=' : 'int' differs in levels of
> indirection from
> 'void (__cdecl *)(channel *)'
> win32.c(330) : error C2065: 'caml_channel_mutex_unlock' : undeclared
> identifier
> win32.c(330) : warning C4047: '=' : 'int' differs in levels of
> indirection from
> 'void (__cdecl *)(channel *)'
> win32.c(331) : error C2065: 'caml_channel_mutex_unlock_exn' :
> undeclared identif
> ier
> win32.c(331) : warning C4047: '=' : 'int' differs in levels of
> indirection from
> 'void (__cdecl *)(void)'
> make[1]: *** [win32_b.obj] Error 2
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> systhreads'
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> str'
> cl /nologo -D_CRT_SECURE_NO_DEPRECATE /I 'C:/Program Files/Microsoft
> Platform SD
> K/Include/crt' /I 'C:/Program Files/Microsoft Platform SDK/
> Include' /Ox /MD -I.
> ./../byterun -c strstubs.c
> strstubs.c
> strstubs.c(294) : warning C4047: 'initializing' : 'backtrack_stack
> *' differs in
> levels of indirection from 'int'
> strstubs.c(345) : error C2065: 'res' : undeclared identifier
> strstubs.c(346) : error C2143: syntax error : missing ';' before
> 'type'
> strstubs.c(347) : error C2143: syntax error : missing ';' before
> 'type'
> strstubs.c(348) : error C2143: syntax error : missing ';' before
> 'type'
> strstubs.c(349) : error C2143: syntax error : missing ';' before
> 'type'
> strstubs.c(351) : error C2065: 'n' : undeclared identifier
> strstubs.c(352) : error C2065: 'i' : undeclared identifier
> strstubs.c(353) : error C2065: 'group' : undeclared identifier
> strstubs.c(353) : warning C4047: '=' : 'int' differs in levels of
> indirection fr
> om 're_group *'
> strstubs.c(354) : error C2223: left of '->start' must point to
> struct/union
> strstubs.c(354) : error C2223: left of '->end' must point to struct/
> union
> strstubs.c(358) : error C2223: left of '->start' must point to
> struct/union
> strstubs.c(358) : error C2065: 'starttxt' : undeclared identifier
> strstubs.c(359) : error C2223: left of '->end' must point to struct/
> union
> strstubs.c(462) : error C2275: 'mlsize_t' : illegal use of this type
> as an expre
> ssion
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \mlvalues.h(58) : see decl
> aration of 'mlsize_t'
> strstubs.c(462) : error C2146: syntax error : missing ';' before
> identifier 'sta
> rt'
> strstubs.c(462) : error C2065: 'start' : undeclared identifier
> strstubs.c(462) : error C2065: 'end' : undeclared identifier
> strstubs.c(462) : error C2065: 'len' : undeclared identifier
> strstubs.c(463) : error C2143: syntax error : missing ';' before
> 'type'
> strstubs.c(464) : error C2143: syntax error : missing ';' before
> 'type'
> strstubs.c(467) : error C2065: 'p' : undeclared identifier
> strstubs.c(467) : warning C4047: '=' : 'int' differs in levels of
> indirection fr
> om 'char *'
> strstubs.c(470) : error C2065: 'c' : undeclared identifier
> strstubs.c(470) : error C2100: illegal indirection
> strstubs.c(475) : error C2100: illegal indirection
> strstubs.c(496) : warning C4047: '=' : 'int' differs in levels of
> indirection fr
> om 'char *'
> strstubs.c(497) : error C2065: 'q' : undeclared identifier
> strstubs.c(497) : warning C4047: '=' : 'int' differs in levels of
> indirection fr
> om 'char *'
> strstubs.c(500) : error C2100: illegal indirection
> strstubs.c(502) : error C2100: illegal indirection
> strstubs.c(502) : error C2106: '=' : left operand must be l-value
> strstubs.c(504) : error C2100: illegal indirection
> strstubs.c(507) : error C2100: illegal indirection
> strstubs.c(507) : error C2106: '=' : left operand must be l-value
> strstubs.c(514) : warning C4022: 'memmove' : pointer mismatch for
> actual paramet
> er 1
> strstubs.c(518) : error C2100: illegal indirection
> strstubs.c(518) : error C2106: '=' : left operand must be l-value
> strstubs.c(518) : error C2100: illegal indirection
> strstubs.c(518) : error C2106: '=' : left operand must be l-value
> make[1]: *** [strstubs.obj] Error 2
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> str'
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> num'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> num'
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> win32graph'
>
> cl /nologo -D_CRT_SECURE_NO_DEPRECATE /I 'C:/Program Files/Microsoft
> Platform SD
> K/Include/crt' /I 'C:/Program Files/Microsoft Platform SDK/
> Include' /Ox /MD -I.
> ./../byterun -c draw.c
> draw.c
> draw.c(555) : error C2146: syntax error : missing ';' before
> identifier 'img'
> draw.c(618) : error C2146: syntax error : missing ';' before
> identifier 'matrix'
>
> make[1]: *** [draw.obj] Error 2
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> win32graph'
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> dynlink'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> dynlink'
> make[1]: Entering directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> bigarray'
> cl /nologo -D_CRT_SECURE_NO_DEPRECATE /I 'C:/Program Files/Microsoft
> Platform SD
> K/Include/crt' /I 'C:/Program Files/Microsoft Platform SDK/
> Include' /Ox /MD -I.
> ./../byterun -I../win32unix -DIN_OCAML_BIGARRAY -DCAML_NAME_SPACE -
> c bigarray_s
> tubs.c
> bigarray_stubs.c
> bigarray_stubs.c(840) : warning C4047: '=' : 'caml_ba_proxy *'
> differs in levels
> of indirection from 'int'
> bigarray_stubs.c(856) : error C2065: 'res' : undeclared identifier
> bigarray_stubs.c(857) : error C2275: 'intnat' : illegal use of this
> type as an e
> xpression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(857) : error C2146: syntax error : missing ';'
> before identifie
> r 'index'
> bigarray_stubs.c(857) : error C2065: 'index' : undeclared identifier
> bigarray_stubs.c(857) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(858) : error C2143: syntax error : missing ';'
> before 'type'
> bigarray_stubs.c(859) : error C2275: 'intnat' : illegal use of this
> type as an e
> xpression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(859) : error C2146: syntax error : missing ';'
> before identifie
> r 'offset'
> bigarray_stubs.c(859) : error C2065: 'offset' : undeclared identifier
> bigarray_stubs.c(860) : error C2275: 'intnat' : illegal use of this
> type as an e
> xpression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(860) : error C2065: 'sub_dims' : undeclared
> identifier
> bigarray_stubs.c(861) : error C2143: syntax error : missing ';'
> before 'type'
> bigarray_stubs.c(864) : error C2065: 'num_inds' : undeclared
> identifier
> bigarray_stubs.c(870) : error C2065: 'i' : undeclared identifier
> bigarray_stubs.c(870) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(871) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(872) : warning C4047: 'function' : 'intnat *'
> differs in levels
> of indirection from 'int'
> bigarray_stubs.c(872) : warning C4024: 'caml_ba_offset' : different
> types for fo
> rmal and actual parameter 2
> bigarray_stubs.c(873) : warning C4047: '=' : 'int' differs in levels
> of indirect
> ion from 'intnat *'
> bigarray_stubs.c(877) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(878) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(879) : warning C4047: 'function' : 'intnat *'
> differs in levels
> of indirection from 'int'
> bigarray_stubs.c(879) : warning C4024: 'caml_ba_offset' : different
> types for fo
> rmal and actual parameter 2
> bigarray_stubs.c(880) : warning C4047: '=' : 'int' differs in levels
> of indirect
> ion from 'intnat *'
> bigarray_stubs.c(882) : error C2065: 'sub_data' : undeclared
> identifier
> bigarray_stubs.c(884) : warning C4047: '=' : 'int' differs in levels
> of indirect
> ion from 'char *'
> bigarray_stubs.c(886) : warning C4022: 'caml_ba_alloc' : pointer
> mismatch for ac
> tual parameter 3
> bigarray_stubs.c(886) : warning C4047: 'function' : 'intnat *'
> differs in levels
> of indirection from 'int'
> bigarray_stubs.c(886) : warning C4024: 'caml_ba_alloc' : different
> types for for
> mal and actual parameter 4
> bigarray_stubs.c(902) : error C2275: 'intnat' : illegal use of this
> type as an e
> xpression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(902) : error C2146: syntax error : missing ';'
> before identifie
> r 'ofs'
> bigarray_stubs.c(902) : error C2065: 'ofs' : undeclared identifier
> bigarray_stubs.c(903) : error C2275: 'intnat' : illegal use of this
> type as an e
> xpression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(903) : error C2146: syntax error : missing ';'
> before identifie
> r 'len'
> bigarray_stubs.c(903) : error C2065: 'len' : undeclared identifier
> bigarray_stubs.c(904) : error C2143: syntax error : missing ';'
> before 'type'
> bigarray_stubs.c(905) : error C2275: 'intnat' : illegal use of this
> type as an e
> xpression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(905) : error C2146: syntax error : missing ';'
> before identifie
> r 'mul'
> bigarray_stubs.c(905) : error C2065: 'mul' : undeclared identifier
> bigarray_stubs.c(906) : error C2143: syntax error : missing ';'
> before 'type'
> bigarray_stubs.c(913) : error C2065: 'changed_dim' : undeclared
> identifier
> bigarray_stubs.c(925) : warning C4047: '=' : 'int' differs in levels
> of indirect
> ion from 'char *'
> bigarray_stubs.c(927) : warning C4022: 'caml_ba_alloc' : pointer
> mismatch for ac
> tual parameter 3
> bigarray_stubs.c(1049) : error C2275: 'intnat' : illegal use of this
> type as an
> expression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(47) : see declar
> ation of 'intnat'
> bigarray_stubs.c(1049) : error C2146: syntax error : missing ';'
> before identifi
> er 'dim'
> bigarray_stubs.c(1049) : error C2065: 'dim' : undeclared identifier
> bigarray_stubs.c(1049) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(1050) : error C2275: 'mlsize_t' : illegal use of
> this type as a
> n expression
> ../../byterun\mlvalues.h(58) : see declaration of 'mlsize_t'
> bigarray_stubs.c(1050) : error C2146: syntax error : missing ';'
> before identifi
> er 'num_dims'
> bigarray_stubs.c(1050) : error C2065: 'num_dims' : undeclared
> identifier
> bigarray_stubs.c(1051) : error C2275: 'uintnat' : illegal use of
> this type as an
> expression
> c:\cygwin\home\andres\ocaml-3.11.0+rc1\byterun
> \config.h(48) : see declar
> ation of 'uintnat'
> bigarray_stubs.c(1051) : error C2146: syntax error : missing ';'
> before identifi
> er 'num_elts'
> bigarray_stubs.c(1051) : error C2065: 'num_elts' : undeclared
> identifier
> bigarray_stubs.c(1052) : error C2143: syntax error : missing ';'
> before 'type'
> bigarray_stubs.c(1059) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(1060) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(1060) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(1062) : error C2109: subscript requires array or
> pointer type
> bigarray_stubs.c(1068) : warning C4047: 'function' : 'intnat *'
> differs in level
> s of indirection from 'int'
> bigarray_stubs.c(1068) : warning C4024: 'caml_ba_alloc' : different
> types for fo
> rmal and actual parameter 4
> make[1]: *** [bigarray_stubs.obj] Error 2
> make[1]: Leaving directory `/home/andres/ocaml-3.11.0+rc1/otherlibs/
> bigarray'
> make: *** [otherlibraries] Error 2
>
> andres@WIN-X85PMN663RN ~/ocaml-3.11.0+rc1
> $ this fix.
>
>
> Regards,
>
> - Xavier Leroy
next prev parent reply other threads:[~2008-11-26 17:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 17:09 Damien Doligez
2008-11-25 21:16 ` [Caml-list] " Dario Teixeira
2008-11-26 10:32 ` Xavier Leroy
2008-11-27 22:55 ` Serge Aleynikov
2008-11-27 23:06 ` David Allsopp
2008-12-02 22:27 ` Jacques Carette
2008-11-30 11:48 ` Christophe TROESTLER
2008-11-26 14:14 ` Richard Jones
2008-11-26 16:29 ` Richard Jones
2008-11-26 22:29 ` Stéphane Glondu
2008-11-27 11:55 ` Richard Jones
2008-11-27 15:09 ` Stéphane Glondu
2008-11-26 16:52 ` Andres Varon
2008-11-26 17:05 ` Xavier Leroy
2008-11-26 17:38 ` Andres Varon [this message]
2008-11-26 18:11 ` Andres Varon
2008-11-26 18:43 ` Andres Varon
2008-11-27 9:07 ` Stefano Zacchiroli
2008-11-28 15:50 ` Andres Varon
2008-11-28 16:07 ` Nicolas Pouillard
2008-11-28 16:30 ` Andres Varon
2008-11-29 22:47 ` forum
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=ADCDCF63-D7A3-4304-B7CA-F3EDB35AB10E@gmail.com \
--to=avaron@gmail.com \
--cc=Xavier.Leroy@inria.fr \
--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