[racket] gracket performance on OS X

From: Jakub Piotr Cłapa (jpc-ml at zenburn.net)
Date: Wed Aug 11 21:32:50 EDT 2010

On 12.08.10 03:05, Matthew Flatt wrote:
> At Thu, 12 Aug 2010 02:42:20 +0200, Jakub Piotr Cłapa wrote:
>> I tracked the error down to:
>>> (ffi-lib "/Users/jpc/Sources/gr2/src/build/gracket/libs/libcairo.2")
>> ffi-lib: couldn't open
>> "/Users/jpc/Sources/gr2/src/build/gracket/libs/libcairo.2.dylib"
>> (dlopen(/Users/jpc/Sources/gr2/src/build/gracket/libs/libcairo.2.dylib,
>> 10): no suitable image found.  Did find:
>> 	/Users/jpc/Sources/gr2/src/build/gracket/libs/libcairo.2.dylib:
>> truncated mach-o error: segment __LINKEDIT extends to 831084 which is
>> past end of file 816000)
>> Deleting libs/ready and remaking it does not help.

Note to self: I should have deleted the .dylib files in this step.

> Is the "libcairo.2.dylib" that `make' downloads really only 816000
> bytes long? I can confirm that it should be 831084, as the error
> message says.
> If you manually download the file from
>   http://github.com/mflatt/gracket-libs/raw/master/i386-macosx
> is it any different?

After trying with a 64bit compilation of racket I found that my github 
connection was very erratic today and wget/curl stalled near the end of 
the file (curl exited with an error after some time). I looks like the 
download script is not detecting prematurely closed HTTP connections 
(since there were no errors reported during the make).

After downloading everything on another server and copying to the lib/ 
directory everything works.

> Thanks for trying this out.

My pleasure.

Jakub Piotr Cłapa

Posted on the users mailing list.