Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OCaml 3.0.6 build problems (Linux Alpha)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] OCaml 3.0.6 build problems (Linux Alpha)
> I'm having problems building OCaml 3.0.6 on Linux Alpha.

This is a known problem with recent libc versions on 64-bit Linux.
The good news is that the workaround is already in the 3.06 sources,
it just needs to be activated at configuration time.
The patch below to "configure" should do the job.

- Xavier Leroy

Index: csl/configure
diff -c csl/configure:1.174 csl/configure:1.175
*** csl/configure:1.174	Wed Aug  7 14:45:00 2002
--- csl/configure	Tue Aug 27 10:30:53 2002
***************
*** 13,19 ****
  #                                                                       #
  #########################################################################
  
! # $Id: configure,v 1.174 2002/08/07 12:45:00 garrigue Exp $
  
  configure_options="$*"
  prefix=/usr/local
--- 13,19 ----
  #                                                                       #
  #########################################################################
  
! # $Id: configure,v 1.175 2002/08/27 08:30:53 xleroy Exp $
  
  configure_options="$*"
  prefix=/usr/local
***************
*** 495,501 ****
  # Further machine-specific hacks
  
  case "$host" in
!   ia64-*-linux*)
      echo "Will use mmap() instead of malloc() for allocation of major heap chunks."
      echo "#define USE_MMAP_INSTEAD_OF_MALLOC" >> s.h;;
  esac
--- 495,501 ----
  # Further machine-specific hacks
  
  case "$host" in
!   ia64-*-linux*|alpha*-*-linux*)
      echo "Will use mmap() instead of malloc() for allocation of major heap chunks."
      echo "#define USE_MMAP_INSTEAD_OF_MALLOC" >> s.h;;
  esac
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners