From: Dmitry Bely <dbely@mail.ru>
To: caml-list@inria.fr
Subject: [Caml-list] Ocaml 3.03 alpha MinGW port
Date: 17 Oct 2001 23:07:42 +0400 [thread overview]
Message-ID: <sncikrup.fsf@mail.ru> (raw)
In-Reply-To: <3BAFC45D.9EAB97D9@gmvnetwork.com>
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
OK, seems that I've almost completed the native Win32 MinGW port that uses
the same ./configure script and Unix Makefiles (of course updated to
support mingw32 target), so keepeng it in sync should not became the
nigntmare as with MSVC/Mac/... non-unix systems. If it works, maybe to add
it to the stock distribution after some testing? :-)
A special care was taken to not break any existing configuration (no
Gnu make conditional operators etc.), so after applying the patch OCaml
*should* configure and compile on all hosts that were supported before (if
I ocasionally did not break something).
The port supports the same set of libraries as the MSVC one. Both bytecode
and native modes seem to work properly.
Problems
--------
1. Profiling mode (gprof) does not work under MinGW (neither it does under
Cygwin port) - I can enable it in ./configure script, but asmrun/i386.S
does not compile when.
2. I have no idea how to integrate the DLL support. I used Cygwin port as a
template, but it also seems to lack it, although Cygwin/Mingw gcc can build
Win32 DLLs without a problem.
How to use it
-------------
1. Make sure you have the latest Cygwin tools from
http://sources.redhat.com/cygwin. "MinGW runtime" and "w32api" packages are
required.
2. Apply the patch attached to this message.
[-- Attachment #2: diff.bz2 --]
[-- Type: application/octet-stream, Size: 9093 bytes --]
[-- Attachment #3: Type: text/plain, Size: 622 bytes --]
3. Configure OCaml with
bash -c "./configure -cc 'gcc -mno-cygwin' -host 'i586-pc-mingw32' \
-tkdefs '-Ic:/Tcl/include' -tklibs '-Lc:/Tcl/lib'"
Of course paths to tcl/tk may vary. You will also need to create import
libraries from tcl/tk DLLs using impdef/dlltool from the Cygwin
distribution.
If you do not need working labltk, simply omit -tkdefs/-tklibs above.
4. Build and install ocaml as usual:
make world
make opt
make install
It *should* work. At least I was able to rebuld ocaml itself (make bootstrap)
and get working labltk tools (ocamlbrowser etc.)
Hope to hear from you soon,
Dmitry
next prev parent reply other threads:[~2001-10-17 19:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-24 23:40 [Caml-list] Initial port of ocaml for mingw (long) art
2001-09-25 8:59 ` [Caml-list] format types Anton Moscal
2001-09-27 0:35 ` Jacques Garrigue
2001-10-17 19:07 ` Dmitry Bely [this message]
2001-10-22 1:46 ` [Caml-list] Ocaml 3.03 alpha MinGW port Masakazu Fukuzawa
2001-10-22 14:56 ` Dmitry Bely
2001-10-22 16:18 ` Masakazu Fukuzawa
2001-11-26 8:28 Jean-Marc Eber
2001-11-26 11:03 ` Xavier Leroy
2001-11-26 13:34 ` Dmitry Bely
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=sncikrup.fsf@mail.ru \
--to=dbely@mail.ru \
--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