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

Re: Bug#158444: ocaml_3.06-1(alpha/unstable): FTBFS: detects out of memory?? #3597

Closed
vicuna opened this issue Aug 28, 2002 · 3 comments
Closed
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 28, 2002

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

Bug description

On Tue, Aug 27, 2002 at 01:31:46AM -0700, Ryan Murray wrote:

sh ./runocamldoc true -man -d stdlib_man -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/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[2]: *** [stdlib_man/Pervasives.o] Error 2
make[2]: Leaving directory /build/buildd/ocaml-3.06/ocamldoc' make[1]: *** [ocamldoc] Error 2 make[1]: Leaving directory /build/buildd/ocaml-3.06'
make: *** [build-stamp] Error 2

A full build log can be found at:
http://buildd.debian.org/build.php?arch=alpha&pkg=ocaml&ver=3.06-1

ocaml fails to build from source because it apparently runs out of memory.
The build daemon has 500MB of RAM and 300MB of swap available to it. Several
other build daemons have far less memory. Build depends are installed on
both debian alpha machines if you want to give it a try.

Yes, i am aware of this problem, i did look at the buildd web site
myself. I was not aware about the memory size available to the build
depends, and was wondering if it was an upstream problem or a problem
with the build box (btw, on i386 i only have 128MB memory + 256MB swap,
and it builds fine, so it could be an upstream problem, but then i
don(t know the alpha well enough.)

Friendly,

Sven Luther

@vicuna
Copy link
Author

vicuna commented Aug 28, 2002

Comment author: administrator

sh ./runocamldoc [...]
Fatal error: out of memory.
Yes, i am aware of this problem, i did look at the buildd web site
myself. I was not aware about the memory size available to the build
depends, and was wondering if it was an upstream problem or a problem
with the build box

No, it's a real OCaml bug that was reported to us by another user of
Linux/Alpha. The same issue appears on Linux/Itanium, and was fixed
for this platform before the 3.06 release, but we didn't anticipate
the issue to show also on the Alpha. (Apparently, all 64-bit
platforms with a recent enough version of glibc will trigger the problem.)

The good news is that the fix is already in the sources; it just needs
to be activated for your platform. The patch below (for the configure
script) should do the job.

Let me know how it goes.

Regards.

  • Xavier Leroy

Index: configure

RCS file: /net/pauillac/caml/repository/csl/configure,v
retrieving revision 1.174
retrieving revision 1.175
diff -r1.174 -r1.175
16c16
< # $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 $

498c498
< ia64--linux)

ia64--linux|alpha*--linux)

@vicuna
Copy link
Author

vicuna commented Sep 5, 2002

Comment author: administrator

On Wed, Aug 28, 2002 at 06:09:54PM +0200, Xavier Leroy wrote:

sh ./runocamldoc [...]
Fatal error: out of memory.
Yes, i am aware of this problem, i did look at the buildd web site
myself. I was not aware about the memory size available to the build
depends, and was wondering if it was an upstream problem or a problem
with the build box

No, it's a real OCaml bug that was reported to us by another user of
Linux/Alpha. The same issue appears on Linux/Itanium, and was fixed
for this platform before the 3.06 release, but we didn't anticipate
the issue to show also on the Alpha. (Apparently, all 64-bit
platforms with a recent enough version of glibc will trigger the problem.)

The good news is that the fix is already in the sources; it just needs
to be activated for your platform. The patch below (for the configure
script) should do the job.

Let me know how it goes.

Yes, it does seem to work, at least ocaml 3.06-5 seems to have been
built on alpha as well as on all the arches that have an autobuilder.

Friendly,

Sven Luther

@vicuna
Copy link
Author

vicuna commented Sep 20, 2002

Comment author: administrator

Fixed 2002/08/27 by XL. See #3583

@vicuna vicuna closed this as completed Sep 20, 2002
@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