caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Building MSVC ports: coreutils link conflict
@ 2015-07-14 16:28 David Allsopp
  2015-07-15 11:40 ` Alain Frisch
  0 siblings, 1 reply; 6+ messages in thread
From: David Allsopp @ 2015-07-14 16:28 UTC (permalink / raw)
  To: OCaml List

It's a while since I've last needed to build the MSVC port of OCaml, but
this issue rang some vague bells in my memory of it.

The Microsoft Linker is called link.exe which, annoyingly, is also the name
of a coreutils utility. When building OCaml (from bash, therefore), if
/usr/bin is in PATH before the Microsoft C Compiler's Bin directory, OCaml
will attempt to use the wrong link and choke.

As far as I'm aware, when started in the usual way as a login shell,
Cygwin's bash will always prefix PATH /usr/local/bin:/usr/bin:$PATH ... so I
was surprised to find no mention of this issue in the build instructions -
is it simply that everyone who builds the MSVC port just curses at this
point, alters their PATH and carries on, or is there an alternate, better
way of setting up the build environment?


David 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-22 16:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 16:28 [Caml-list] Building MSVC ports: coreutils link conflict David Allsopp
2015-07-15 11:40 ` Alain Frisch
2015-07-17 15:42   ` David Allsopp
2015-07-17 17:12     ` Alain Frisch
2015-07-22 16:23     ` Damien Doligez
2015-07-22 16:34       ` David Allsopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).