[racket] Problems compiling Racket 5.3.5 on OpenIndiana (core dump)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Aug 9 10:12:33 EDT 2013

The problem seems to be that when Racket asks the OS to mmap() 16k of
memory (where 4k is the page size), the OS instead maps 64K of memory
plus some extra space. As a result, Racket only manages to use about
1/4 of the memory that it allocates.

Fortunately, the Racket memory manager can work in terms of larger
chunks of memory. That mode is enabled by default when places are
enabled, but places were disabled by default for Solaris.

I've made places enabled by default for Solaris on x86/x86_64, and I've
also configured Racket to use large-chunk allocation on Solaris when
places are disabled.

At Thu, 8 Aug 2013 12:04:17 -0400, Matthias Felleisen wrote:
> 
> Consider installing the current minimal snapshot: 
> 
>  http://www.cs.utah.edu/plt/snapshots/
> 
> and then adding packages from the main distro. This may help pin down the 
> issue. 
> 
> Warning: highly experimental. 
> 
> 
> On Aug 8, 2013, at 11:12 AM, Johann 'Myrkraverk' Oskarsson wrote:
> 
> > Hi all,
> > 
> > OpenIndiana is an Illumos distro, the OpenSolaris fork.
> > 
> > % uname -a
> > SunOS asuka 5.11 oi_151a7 i86pc i386 i86pc
> > 
> > This is racket 5.3.5.
> > 
> > I have 3G of memory and even added 2G of swap and tried again, no
> > luck.  Whatever this is, it's presumably not related to lack of
> > available memory.
> > 
> > Racket fails to compile with error messages like:
> > 
> > raco setup:  in typed-racket/infer
> > Racket virtual machine has run out of memory; aborting
> > gmake[1]: *** [install-3m] Abort (core dumped)
> > 
> > The command that fails is:
> > 
> > env CFLAGS="-g -O2  -Wall    -I/usr/lib/libffi-3.0.9/include  "
> > LDFLAGS=""  racket/racket3m -X
> > "/opt/myrkraverk/racket/5.3.5/lib/racket/collects" -N "raco setup" -l-
> > setup    --no-user
> > 
> > Manually entering the command with -j 1 like:
> > 
> > env CFLAGS="-g -O2  -Wall    -I/usr/lib/libffi-3.0.9/include  "
> > LDFLAGS=""  racket/racket3m -X
> > "/opt/myrkraverk/racket/5.3.5/lib/racket/collects" -N "raco setup -j
> > 1" -l- setup    --no-user
> > 
> > did not help.
> > 
> > raco setup -j 1:  in typed-racket/optimizer
> > Racket virtual machine has run out of memory; aborting
> > zsh: IOT instruction (core dumped)  env CFLAGS="-g -O2  -Wall
> > -I/usr/lib/libffi-3.0.9/include  " LDFLAGS=""  -
> > 
> > As you can see it only went slightly further and when I added 2G of
> > swap and tried gmake install again, it still failed when setting up
> > the optimizer.
> > 
> > Any hints on what might be going wrong?
> > 
> > -- 
> > Johann
> > 
> > I'm not from the internet, I just work there.
> > ____________________
> >  Racket Users list:
> >  http://lists.racket-lang.org/users
> 
> 
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.