Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Ubuntu 18.04 unknown type name ‘DWORD’ / ‘CRITICAL_SECTION’ #760

Closed
fangyi-zhou opened this issue Jan 16, 2020 · 7 comments

Comments

@fangyi-zhou
Copy link

=== ERROR while compiling lwt.5.1.1 ==========================================#
context 2.0.1 | linux/x86_64 | ocaml-base-compiler.4.08.1 | https://opam.ocaml.org#4585683c

Full log:

      ocamlc src/unix/unix_access_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_access_job.o unix_access_job.c)
In file included from unix_access_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_bytes_read_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_bytes_read_job.o unix_bytes_read_job.c)
In file included from unix_bytes_read_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_bind_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_bind_job.o unix_bind_job.c)
In file included from unix_bind_job.c:17:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/lwt_unix_stubs.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o lwt_unix_stubs.o lwt_unix_stubs.c)
In file included from lwt_unix_stubs.c:28:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
lwt_unix_stubs.c:319:2: error: #error "no threading library available!"
 #error "no threading library available!"
  ^~~~~
lwt_unix_stubs.c:875:27: error: storage size of ‘pool_condition’ isn’t known
 static lwt_unix_condition pool_condition;
                           ^~~~~~~~~~~~~~
      ocamlc src/unix/unix_bytes_write_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_bytes_write_job.o unix_bytes_write_job.c)
In file included from unix_bytes_write_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_chdir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_chdir_job.o unix_chdir_job.c)
In file included from unix_chdir_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_chown_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_chown_job.o unix_chown_job.c)
In file included from unix_chown_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_chmod_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_chmod_job.o unix_chmod_job.c)
In file included from unix_chmod_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_closedir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_closedir_job.o unix_closedir_job.c)
In file included from unix_closedir_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_chroot_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_chroot_job.o unix_chroot_job.c)
In file included from unix_chroot_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_close_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_close_job.o unix_close_job.c)
In file included from unix_close_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_fchmod_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_fchmod_job.o unix_fchmod_job.c)
In file included from unix_fchmod_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_fdatasync_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_fdatasync_job.o unix_fdatasync_job.c)
In file included from unix_fdatasync_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_fstat_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_fstat_job.o unix_fstat_job.c)
In file included from unix_fstat_job.c:13:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_fchown_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_fchown_job.o unix_fchown_job.c)
In file included from unix_fchown_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_fstat_64_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_fstat_64_job.o unix_fstat_64_job.c)
In file included from unix_fstat_64_job.c:13:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_ftruncate_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_ftruncate_job.o unix_ftruncate_job.c)
In file included from unix_ftruncate_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_fsync_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_fsync_job.o unix_fsync_job.c)
In file included from unix_fsync_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_get_affinity.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_get_affinity.o unix_get_affinity.c)
In file included from unix_get_affinity.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_get_cpu.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_get_cpu.o unix_get_cpu.c)
In file included from unix_get_cpu.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_get_credentials.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_get_credentials.o unix_get_credentials.c)
In file included from unix_get_credentials.c:19:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_get_network_information_utils.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_get_network_information_utils.o unix_get_network_information_utils.c)
In file included from unix_get_network_information_utils.h:23:0,
                 from unix_get_network_information_utils.c:17:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_get_pw_gr_nam_id_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_get_pw_gr_nam_id_job.o unix_get_pw_gr_nam_id_job.c)
In file included from unix_get_pw_gr_nam_id_job.c:20:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_getaddrinfo_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_getaddrinfo_job.o unix_getaddrinfo_job.c)
In file included from unix_getaddrinfo_job.c:19:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_getcwd_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_getcwd_job.o unix_getcwd_job.c)
In file included from unix_getcwd_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_getlogin_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_getlogin_job.o unix_getlogin_job.c)
In file included from unix_getlogin_job.c:15:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_gethostbyname_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_gethostbyname_job.o unix_gethostbyname_job.c)
In file included from unix_gethostbyname_job.c:19:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_gethostbyaddr_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_gethostbyaddr_job.o unix_gethostbyaddr_job.c)
In file included from unix_gethostbyaddr_job.c:19:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_gethostname_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_gethostname_job.o unix_gethostname_job.c)
In file included from unix_gethostname_job.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_getnameinfo_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_getnameinfo_job.o unix_getnameinfo_job.c)
In file included from unix_getnameinfo_job.c:19:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_getprotoby_getservby_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_getprotoby_getservby_job.o unix_getprotoby_getservby_job.c)
In file included from unix_getprotoby_getservby_job.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_guess_blocking_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_guess_blocking_job.o unix_guess_blocking_job.c)
In file included from unix_guess_blocking_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_invalidate_dir.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_invalidate_dir.o unix_invalidate_dir.c)
In file included from unix_invalidate_dir.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_link_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_link_job.o unix_link_job.c)
In file included from unix_link_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_isatty_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_isatty_job.o unix_isatty_job.c)
In file included from unix_isatty_job.c:14:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_lseek_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_lseek_job.o unix_lseek_job.c)
In file included from unix_lseek_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_lstat_64_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_lstat_64_job.o unix_lstat_64_job.c)
In file included from unix_lstat_64_job.c:13:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_lockf_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_lockf_job.o unix_lockf_job.c)
In file included from unix_lockf_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_lstat_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_lstat_job.o unix_lstat_job.c)
In file included from unix_lstat_job.c:13:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_mincore.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_mincore.o unix_mincore.c)
In file included from unix_mincore.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_mkdir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_mkdir_job.o unix_mkdir_job.c)
In file included from unix_mkdir_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_mkfifo_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_mkfifo_job.o unix_mkfifo_job.c)
In file included from unix_mkfifo_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_open_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_open_job.o unix_open_job.c)
In file included from unix_open_job.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_read_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_read_job.o unix_read_job.c)
In file included from unix_read_job.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_opendir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_opendir_job.o unix_opendir_job.c)
In file included from unix_opendir_job.c:17:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_not_available.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_not_available.o unix_not_available.c)
In file included from unix_not_available.c:10:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_readdir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_readdir_job.o unix_readdir_job.c)
In file included from unix_readdir_job.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_readdir_n_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_readdir_n_job.o unix_readdir_n_job.c)
In file included from unix_readdir_n_job.c:19:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_readlink_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_readlink_job.o unix_readlink_job.c)
In file included from unix_readlink_job.c:15:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_readv_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_readv_job.o unix_readv_job.c)
In file included from unix_readv_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_readv.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_readv.o unix_readv.c)
In file included from unix_readv.c:14:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_readv_writev_utils.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_readv_writev_utils.o unix_readv_writev_utils.c)
In file included from unix_readv_writev_utils.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_rename_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_rename_job.o unix_rename_job.c)
In file included from unix_rename_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_rewinddir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_rewinddir_job.o unix_rewinddir_job.c)
In file included from unix_rewinddir_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_rmdir_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_rmdir_job.o unix_rmdir_job.c)
In file included from unix_rmdir_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_recv_send_utils.o
unix_recv_send_utils.c: In function ‘wrapper_send_msg’:
unix_recv_send_utils.c:94:20: warning: implicit declaration of function ‘lwt_unix_not_available’ [-Wimplicit-function-declaration]
     if (n_fds > 0) lwt_unix_not_available("fd_passing");
                    ^~~~~~~~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_set_affinity.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_set_affinity.o unix_set_affinity.c)
In file included from unix_set_affinity.c:18:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_stat_64_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_stat_64_job.o unix_stat_64_job.c)
In file included from unix_stat_64_job.c:13:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_stat_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_stat_job.o unix_stat_job.c)
In file included from unix_stat_job.c:13:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_symlink_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_symlink_job.o unix_symlink_job.c)
In file included from unix_symlink_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_stat_job_utils.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_stat_job_utils.o unix_stat_job_utils.c)
In file included from unix_stat_job_utils.h:26:0,
                 from unix_stat_job_utils.c:14:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_tcdrain_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_tcdrain_job.o unix_tcdrain_job.c)
In file included from unix_tcdrain_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_tcgetattr_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_tcgetattr_job.o unix_tcgetattr_job.c)
In file included from unix_tcgetattr_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_tcflush_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_tcflush_job.o unix_tcflush_job.c)
In file included from unix_tcflush_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_tcflow_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_tcflow_job.o unix_tcflow_job.c)
In file included from unix_tcflow_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_tcsetattr_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_tcsetattr_job.o unix_tcsetattr_job.c)
In file included from unix_tcsetattr_job.c:14:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_termios_conversion.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_termios_conversion.o unix_termios_conversion.c)
In file included from unix_termios_conversion.h:21:0,
                 from unix_termios_conversion.c:11:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_tcsendbreak_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_tcsendbreak_job.o unix_tcsendbreak_job.c)
In file included from unix_tcsendbreak_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_truncate_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_truncate_job.o unix_truncate_job.c)
In file included from unix_truncate_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_utimes_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_utimes_job.o unix_utimes_job.c)
In file included from unix_utimes_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_valid_dir.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_valid_dir.o unix_valid_dir.c)
In file included from unix_valid_dir.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_unlink_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_unlink_job.o unix_unlink_job.c)
In file included from unix_unlink_job.c:20:0:
./lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
./lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_wait_mincore_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_wait_mincore_job.o unix_wait_mincore_job.c)
In file included from unix_wait_mincore_job.c:16:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_write_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_write_job.o unix_write_job.c)
In file included from unix_write_job.c:15:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_writev.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_writev.o unix_writev.c)
In file included from unix_writev.c:15:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/unix_writev_job.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o unix_writev_job.o unix_writev_job.c)
In file included from unix_writev_job.c:15:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
      ocamlc src/unix/lwt_libev_stubs.o (exit 2)
(cd _build/default/src/unix && /data/fz315/.opam/4.08.1/bin/ocamlc.opt -g -I /data/fz315/.opam/4.08.1/lib/bytes -I /data/fz315/.opam/4.08.1/lib/mmap -I /data/fz315/.opam/4.08.1/lib/ocaml/threads -I /data/fz315/.opam/4.08.1/lib/ocplib-endian -I /data/fz315/.opam/4.08.1/lib/result -I /data/fz315/.opam/4.08.1/lib/seq -I ../core -ccopt -I. -ccopt -I/usr/include -ccopt -g -o lwt_libev_stubs.o lwt_libev_stubs.c)
In file included from lwt_libev_stubs.c:9:0:
lwt_unix.h:100:9: error: unknown type name ‘DWORD’
 typedef DWORD lwt_unix_thread;
         ^~~~~
lwt_unix.h:101:9: error: unknown type name ‘CRITICAL_SECTION’
 typedef CRITICAL_SECTION lwt_unix_mutex;
         ^~~~~~~~~~~~~~~~
@fangyi-zhou
Copy link
Author

Resolved by installing libev-dev apt package and conf-libev opam package.

Note:
I used to be able to install lwt directly from opam, but opam upgrade failed due to aforementioned error.

@aantron
Copy link
Collaborator

aantron commented Jan 16, 2020

We better reopen this, because it means that the OS was detected as Windows. I understand that you did opam install lwt without conf-libev. Can you tell me anything else about steps to reproduce this? Was this in a container by any chance? Anything else about the environment, or the sequence of commands from installing opam until this error?

@aantron aantron reopened this Jan 16, 2020
@fangyi-zhou
Copy link
Author

I tried to recover the list of actions done by opam but I don't think I can find it.
I did opam update && opam upgrade on my Ubuntu 18.04 machine, not in a container, and lwt reported an installation failure.

@aantron
Copy link
Collaborator

aantron commented Jan 16, 2020

It seems all the Ubuntu installations I have ready access to are 16.04, so I will set up a VM or container later and try. Thanks for the report.

@fangyi-zhou
Copy link
Author

I tried with a docker image of 18.04 to install latest lwt, it installed without problems.
I guess there was a specific problem with my machine that caused the build failure.

@aantron
Copy link
Collaborator

aantron commented Jan 17, 2020

Ok, I will close this for now, then. Lwt builds routinely without conf-libev on 16.04 (e.g., in Travis, and locally on my machine). I'd assume it also builds on 18.04 in most circumstances :) Please do post if you see this problem again.

@aantron aantron closed this as completed Jan 17, 2020
dhil added a commit to links-lang/links that referenced this issue Feb 6, 2020
* Lwt 5.* wont compile

Resolved by installing conf-libev as suggested by ocsigen/lwt#760

* Nested calls to `Lwt_main.run`

Lwt 5.* prohibits nested calls of `Lwt_main.run`. Previously every call to `Proc.run` would invoke `Lwt_main.run` which could result in nested calls. To resolve this `Proc.run` no longer calls `Lwt_main.run` rather we now have a function `start : (unit -> 'a Lwt.t) -> 'a` which is called once when the evaluator starts. This requires a change of types for `Proc.run` such that it returns a `Lwt` computation, meaning its signature is now `(unit -> 'a Lwt.t) -> 'a Lwt.t`. As a consequence it is necessary to move `value` from `evalir.ml` into the Lwt monad, because `Proc.atomically` (used in `ApplyPure`) was re-calling the main LWT entry point.

Co-authored-by: Simon Fowler <simon@simonjf.com>
aantron pushed a commit that referenced this issue Feb 23, 2020
@aantron
Copy link
Collaborator

aantron commented Mar 7, 2020

FYI this was fixed in #761 and released in 5.1.2.

frank-emrich pushed a commit to frank-emrich/links that referenced this issue Sep 16, 2020
* Lwt 5.* wont compile

Resolved by installing conf-libev as suggested by ocsigen/lwt#760

* Nested calls to `Lwt_main.run`

Lwt 5.* prohibits nested calls of `Lwt_main.run`. Previously every call to `Proc.run` would invoke `Lwt_main.run` which could result in nested calls. To resolve this `Proc.run` no longer calls `Lwt_main.run` rather we now have a function `start : (unit -> 'a Lwt.t) -> 'a` which is called once when the evaluator starts. This requires a change of types for `Proc.run` such that it returns a `Lwt` computation, meaning its signature is now `(unit -> 'a Lwt.t) -> 'a Lwt.t`. As a consequence it is necessary to move `value` from `evalir.ml` into the Lwt monad, because `Proc.atomically` (used in `ApplyPure`) was re-calling the main LWT entry point.

Co-authored-by: Simon Fowler <simon@simonjf.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants