Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
OCaml 3.11 on MinGW
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthieu Wipliez  
View profile  
 More options Dec 8 2008, 10:43 am
Newsgroups: fa.caml
From: Matthieu Wipliez <mwipl...@yahoo.fr>
Date: Mon, 08 Dec 2008 15:43:33 UTC
Local: Mon, Dec 8 2008 10:43 am
Subject: [Caml-list] OCaml 3.11 on MinGW
Dear OCaml users,

I would just like to share with you my experience of compiling OCaml 3.11 with MinGW and Minimal SYStem (MSYS).

I had to set the FLEXLINKFLAGS environment variable to have OCaml compile successfully:
  export FLEXLINKFLAGS="-nocygpath -L C:\MinGW\lib"
(note that I installed MinGW in the default folder C:\MinGW)

Indeed, the documentation states that flexdll will call cygpath to solve paths, and cygpath is not available under MSYS.
The -L was needed so that flexdll could find libraries.

Apart from that, the usual (1) copy configuration files (2) make world, opt, opt.opt, install
went smoothly.

I now have a functional OCaml, with a MSYS twice as small as the equivalent Cygwin installation, and compilation goes at least twice as fast with MSYS.

So... my questions are the following:
  - what is the "official" status of OCaml on MinGW/MSYS? The README.win32 still says that only Cygwin may be used, but that appears not to be the case anymore.
  - did I miss something with flexdll? Are those extra flags always necessary with MinGW/MSYS, or is there a different way?

Cheers,
Matthieu

_______________________________________________
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alain Frisch  
View profile  
 More options Dec 8 2008, 11:32 am
Newsgroups: fa.caml
From: Alain Frisch <al...@frisch.fr>
Date: Mon, 08 Dec 2008 16:32:58 UTC
Local: Mon, Dec 8 2008 11:32 am
Subject: Re: [Caml-list] OCaml 3.11 on MinGW

Matthieu Wipliez wrote:
>   - did I miss something with flexdll? Are those extra flags always necessary with MinGW/MSYS, or is there a different way?

I believe the -nocygpath is not necessary. If cygpath is not available,
flexdll will simply not use it.

-- Alain

_______________________________________________
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
phi50...@yahoo.ca  
View profile  
 More options Dec 8 2008, 12:23 pm
Newsgroups: fa.caml
From: phi50...@yahoo.ca
Date: Mon, 8 Dec 2008 09:23:42 -0800 (PST)
Local: Mon, Dec 8 2008 12:23 pm
Subject: Re: OCaml 3.11 on MinGW
On 8 dez, 13:43, Matthieu Wipliez <mwipl...@yahoo.fr> wrote:

I tryed to follow your guidelines, but I the step make world stopped
with an error. Here is what I did:

1 -- I edited d:/msys/1.0/etc/profile adding:  export FLEXLINKFLAGS="-
nocygpath -L /d/msys/MinGW/lib"
Since I am like Skinner's doves, I also tried all combinations of path
and / \

2 -- The configure step ended without much ado. However, there was a
message saying that labltk would not be support. I have tk inside
MinGW, but it was not able to find it. Maybe you can tell me why.

3 -- make world ended with an error:

libcamlrun.a(main.o):main.c:(.text+0x26): undefined reference to
`caml_expand_command_line'
libcamlrun.a(sys.o):sys.c:(.text+0x4ea): undefined reference to
`caml_win32_random_seed'
libcamlrun.a(startup.o):startup.c:(.text+0x936): undefined reference
to `caml_signal_thread'
libcamlrun.a(signals_byt.o):signals_byt.c:(.text+0x46): undefined
reference to `caml_win32_signal'
libcamlrun.a(signals_byt.o):signals_byt.c:(.text+0xab): undefined
reference to `caml_win32_signal'
collect2: ld returned 1 exit status
make[2]: *** [ocamlrun] Error 1
make[2]: Leaving directory `/home/ocaml-3.11.0/byterun'
make[1]: *** [coldstart] Error 2
make[1]: Leaving directory `/home/ocaml-3.11.0'
make: *** [world] Error 2

Any hints?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google