caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Findlib fails to build on OS X Leopard
@ 2008-07-17  1:17 Nathaniel Gray
  2008-07-17  5:56 ` Re : " MONATE Benjamin 205998
  2008-07-23 14:48 ` [Caml-list] " Gerd Stolpmann
  0 siblings, 2 replies; 3+ messages in thread
From: Nathaniel Gray @ 2008-07-17  1:17 UTC (permalink / raw)
  To: Caml Mailing List

My colleague is trying to install GODI but it's choking on findlib
1.2.2.  Specifically, the command used to locate the std. lib. in
get_stdlib is not compatible with OS X's sed:

ocamlc -where | sed "s/\r//" || ...

The version of sed included with Leopard doesn't support
backslash-escapes like \r.  Instead, it treats '\r' just like 'r', so
this turns '/Users/blah/...' into '/Uses/blah/...' and the std. lib.
can't be found.

Until this bug is fixed the workaround is to install gnu sed.

Cheers,
-n8

-- 
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->


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

* Re : Findlib fails to build on OS X Leopard
  2008-07-17  1:17 Findlib fails to build on OS X Leopard Nathaniel Gray
@ 2008-07-17  5:56 ` MONATE Benjamin 205998
  2008-07-23 14:48 ` [Caml-list] " Gerd Stolpmann
  1 sibling, 0 replies; 3+ messages in thread
From: MONATE Benjamin 205998 @ 2008-07-17  5:56 UTC (permalink / raw)
  To: Nathaniel Gray, Caml Mailing List

Hi,
 
> My colleague is trying to install GODI but it's choking on findlib
> 1.2.2. Specifically, the command used to locate the std. lib. in
> get_stdlib is not compatible with OS X's sed:
>
> ocamlc -where | sed "s/\r//" || ...

We had the same problem in Frama-C configure.in files and fixed it by replacing
this test by
OCAMLLIB=`ocamlc -where | tr -d '\\r'`

Hope this helps,
Benjamin


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

* Re: [Caml-list] Findlib fails to build on OS X Leopard
  2008-07-17  1:17 Findlib fails to build on OS X Leopard Nathaniel Gray
  2008-07-17  5:56 ` Re : " MONATE Benjamin 205998
@ 2008-07-23 14:48 ` Gerd Stolpmann
  1 sibling, 0 replies; 3+ messages in thread
From: Gerd Stolpmann @ 2008-07-23 14:48 UTC (permalink / raw)
  To: Nathaniel Gray; +Cc: Caml Mailing List

I've released findlib-1.2.3 (hopefully) fixing this problem.

Gerd

Am Mittwoch, den 16.07.2008, 18:17 -0700 schrieb Nathaniel Gray:
> My colleague is trying to install GODI but it's choking on findlib
> 1.2.2.  Specifically, the command used to locate the std. lib. in
> get_stdlib is not compatible with OS X's sed:
> 
> ocamlc -where | sed "s/\r//" || ...
> 
> The version of sed included with Leopard doesn't support
> backslash-escapes like \r.  Instead, it treats '\r' just like 'r', so
> this turns '/Users/blah/...' into '/Uses/blah/...' and the std. lib.
> can't be found.
> 
> Until this bug is fixed the workaround is to install gnu sed.
> 
> Cheers,
> -n8
> 
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
------------------------------------------------------------



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

end of thread, other threads:[~2008-07-23 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-17  1:17 Findlib fails to build on OS X Leopard Nathaniel Gray
2008-07-17  5:56 ` Re : " MONATE Benjamin 205998
2008-07-23 14:48 ` [Caml-list] " Gerd Stolpmann

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).