Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory while compiling ocaml on alpha #7999

Closed
vicuna opened this issue Jan 24, 2003 · 2 comments
Closed

Out of memory while compiling ocaml on alpha #7999

vicuna opened this issue Jan 24, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 24, 2003

Original bug ID: 1526
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Marco Maggesi
Version: 3.06
OS: debian linux on alpha
Submission from: sisiphos.math.unifi.it (150.217.33.46)

I start the compilation of ocaml as follows

~$ ./configure
~$ make -k world > log.world 2>&1

and the compilation abort here:
...
sh ./runocamldoc true -man -d stdlib_man -I ../parsing -I ../utils -I
../typing
-I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I
../other
libs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I
../
otherlibs/graph
-t "OCaml library" -man-mini
../stdlib/*.mli ../otherlibs/unix/unix.mli ../otherlibs/str/str.mli
../otherlibs
/bigarray/bigarray.mli ../otherlibs/num/num.mli
Fatal error: out of memory.
make[1]: *** [stdlib_man/Pervasives.o] Error 2
make[1]: Target all' not remade because of errors. make[1]: Leaving directory /home/maggesi/ocaml-3.06/ocamldoc'

The previous versions of ocaml (e.g. 3.04) compiled without problems
on the very same box (a Compaq DS 10).

I went futher and I installed anyway the ocaml bytecode compiler.
But then I tryied to compile Coq and the compilation ended with another
end of memory.

The system itself seems have no problem of memory:

~$ uname -a
Linux sisiphos 2.4.18marco #1 Fri Aug 23 12:37:19 CEST 2002 alpha unknown
~$ set -a
~$ free
total used free shared buffers cached
Mem: 381584 369200 12384 0 10096 267016
-/+ buffers/cache: 92088 289496
Swap: 384048 0 384048

@vicuna
Copy link
Author

vicuna commented Jan 24, 2003

Comment author: administrator

OS: debian linux on alpha
I start the compilation of ocaml as follows
and the compilation abort here:
Fatal error: out of memory.

This looks like a known issue (#3583 on the bug tracking system),
encountered on 64-bit Linux systems with recent versions of glibc.

It's fixed in the working sources. I attach the corresponding
(trivial) patch against 3.06. Just re-run "configure" and re-compile
everything.

  • Xavier Leroy

Index: configure

RCS file: /net/pauillac/caml/repository/csl/configure,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -r1.174 -r1.175
--- configure 2002/08/07 12:45:00 1.174
+++ configure 2002/08/27 08:30:53 1.175
@@ -13,7 +13,7 @@

#########################################################################

-# $Id: configure,v 1.174 2002/08/07 12:45:00 garrigue Exp $
+# $Id: configure,v 1.175 2002/08/27 08:30:53 xleroy Exp $

configure_options="$*"
prefix=/usr/local
@@ -495,7 +495,7 @@

Further machine-specific hacks

case "$host" in

  • ia64--linux)
  • 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

@vicuna
Copy link
Author

vicuna commented Jan 24, 2003

Comment author: administrator

See #3583

@vicuna vicuna closed this as completed Jan 24, 2003
@vicuna vicuna mentioned this issue Mar 14, 2019
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant