caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Mingw Ocaml-3.08.2 "Program too big to fit in memory"?
@ 2005-01-11 23:46 Dominic Cooney
  2005-01-12  9:20 ` [Caml-list] " Frederic van der Plancke
  0 siblings, 1 reply; 5+ messages in thread
From: Dominic Cooney @ 2005-01-11 23:46 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

I built Ocaml-3.08.2 with Cygwin Mingw (all downloaded today) and all of the
binaries (e.g. ocamlc.exe, ocaml.exe, ocamlopt.exe, etc.) report "Program
too big to fit in memory". All of the opt.opt binaries (e.g. ocamlc.opt,
etc.) and OcamlWin.exe seem to work fine (although OcamlWin can't spawn
ocaml.exe, of course.) The machine has 2 GB physical memory and is very
lightly loaded (page file usage is about .5 GB).

 

Has anybody encountered this problem?

 

Dominic Cooney

 


[-- Attachment #2: Type: text/html, Size: 2407 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in memory"?
  2005-01-11 23:46 Mingw Ocaml-3.08.2 "Program too big to fit in memory"? Dominic Cooney
@ 2005-01-12  9:20 ` Frederic van der Plancke
  2005-01-12 10:59   ` Dominic Cooney
  0 siblings, 1 reply; 5+ messages in thread
From: Frederic van der Plancke @ 2005-01-12  9:20 UTC (permalink / raw)
  To: caml-list

Dominic Cooney wrote:
> I built Ocaml-3.08.2 with Cygwin Mingw (all downloaded today) and all of the
> binaries (e.g. ocamlc.exe, ocaml.exe, ocamlopt.exe, etc.) report "Program
> too big to fit in memory". All of the opt.opt binaries (e.g. ocamlc.opt,
> etc.) and OcamlWin.exe seem to work fine (although OcamlWin can't spawn
> ocaml.exe, of course.) The machine has 2 GB physical memory and is very
> lightly loaded (page file usage is about .5 GB).

Perhaps you have *too much* memory.

Your situation reminds me of problem I've had with > 2GB disks and older installation programs who computed remaining disk space with 32 bit integers and thus failed. OCaml maybe computes remaining memory with 31 bits so 1 GB is the max (on 32 bit machines) ?

Frédéric vdP


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in memory"?
  2005-01-12  9:20 ` [Caml-list] " Frederic van der Plancke
@ 2005-01-12 10:59   ` Dominic Cooney
  0 siblings, 0 replies; 5+ messages in thread
From: Dominic Cooney @ 2005-01-12 10:59 UTC (permalink / raw)
  To: fvdp, caml-list; +Cc: simeon

I think the binaries are corrupt. Here's the output of dumpbin on ocamlc.exe
and ocamlc.opt.exe (note that ocamlc.exe doesn't work, and ocamlc.opt.exe
does work):

Microsoft (R) COFF/PE Dumper Version 8.00.40607.85
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ocamlc.exe
ocamlc.exe : warning LNK4048: Invalid format file; ignored

  Summary


C:\working\OCAMLM~1.2\bin>dumpbin ocamlc.opt.exe
Microsoft (R) COFF/PE Dumper Version 8.00.40607.85
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ocamlc.opt.exe

File Type: EXECUTABLE IMAGE

  Summary

        2000 .bss
       6F000 .data
        1000 .idata
        2000 .rdata
       DF000 .text

-----Original Message-----
From: caml-list-admin@yquem.inria.fr [mailto:caml-list-admin@yquem.inria.fr]
On Behalf Of Frederic van der Plancke
Sent: Wednesday, January 12, 2005 7:21 PM
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in
memory"?

Dominic Cooney wrote:
> I built Ocaml-3.08.2 with Cygwin Mingw (all downloaded today) and all of
the
> binaries (e.g. ocamlc.exe, ocaml.exe, ocamlopt.exe, etc.) report "Program
> too big to fit in memory". All of the opt.opt binaries (e.g. ocamlc.opt,
> etc.) and OcamlWin.exe seem to work fine (although OcamlWin can't spawn
> ocaml.exe, of course.) The machine has 2 GB physical memory and is very
> lightly loaded (page file usage is about .5 GB).

Perhaps you have *too much* memory.

Your situation reminds me of problem I've had with > 2GB disks and older
installation programs who computed remaining disk space with 32 bit integers
and thus failed. OCaml maybe computes remaining memory with 31 bits so 1 GB
is the max (on 32 bit machines) ?

Frédéric vdP

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in memory"?
  2005-01-12 11:29 Dominic Cooney
@ 2005-01-13 11:11 ` Dominic Cooney
  0 siblings, 0 replies; 5+ messages in thread
From: Dominic Cooney @ 2005-01-13 11:11 UTC (permalink / raw)
  To: caml-list; +Cc: simeon

FYI: I think the problem is related to a rule (which contained a failing mv
command because of Cygwin's .exe mangling) in stdlib/Makefile.nt; if I amend
the following rule, everything seems to work:

camlheader camlheader_ur: headernt.c ../config/Makefile
	# $(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) -o camlheader.exe
headernt.c
	# mv camlheader.exe camlheader.
	$(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS)
-DRUNTIME_NAME='"$(BINDIR)/ocamlrun"' headernt.c -o tmpheader$(EXE)
	strip tmpheader$(EXE)
	mv tmpheader$(EXE) camlheader
	cp camlheader camlheader_ur

These changes are in line with the camlheader, camlheader_ur rules in
Makefile.

Dominic Cooney

-----Original Message-----
From: caml-list-admin@yquem.inria.fr [mailto:caml-list-admin@yquem.inria.fr]
On Behalf Of Dominic Cooney
Sent: Wednesday, January 12, 2005 9:30 PM
To: fvdp@decis.be; caml-list@yquem.inria.fr
Cc: simeon@us.ibm.com
Subject: RE: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in
memory"?

I think this is a recent Mingw problem? I just tried building Ocaml 3.08.1
with the same version of Mingw and the same problem occurs, where it was
working in the past with an older Mingw setup.

-----Original Message-----
From: Dominic Cooney [mailto:dominic@dcooney.com] 
Sent: Wednesday, January 12, 2005 9:00 PM
To: 'fvdp@decis.be'; 'caml-list@yquem.inria.fr'
Cc: 'simeon@us.ibm.com'
Subject: RE: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in
memory"?

I think the binaries are corrupt. Here's the output of dumpbin on ocamlc.exe
and ocamlc.opt.exe (note that ocamlc.exe doesn't work, and ocamlc.opt.exe
does work):

Microsoft (R) COFF/PE Dumper Version 8.00.40607.85
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ocamlc.exe
ocamlc.exe : warning LNK4048: Invalid format file; ignored

  Summary


C:\working\OCAMLM~1.2\bin>dumpbin ocamlc.opt.exe
Microsoft (R) COFF/PE Dumper Version 8.00.40607.85
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ocamlc.opt.exe

File Type: EXECUTABLE IMAGE

  Summary

        2000 .bss
       6F000 .data
        1000 .idata
        2000 .rdata
       DF000 .text

-----Original Message-----
From: caml-list-admin@yquem.inria.fr [mailto:caml-list-admin@yquem.inria.fr]
On Behalf Of Frederic van der Plancke
Sent: Wednesday, January 12, 2005 7:21 PM
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in
memory"?

Dominic Cooney wrote:
> I built Ocaml-3.08.2 with Cygwin Mingw (all downloaded today) and all of
the
> binaries (e.g. ocamlc.exe, ocaml.exe, ocamlopt.exe, etc.) report "Program
> too big to fit in memory". All of the opt.opt binaries (e.g. ocamlc.opt,
> etc.) and OcamlWin.exe seem to work fine (although OcamlWin can't spawn
> ocaml.exe, of course.) The machine has 2 GB physical memory and is very
> lightly loaded (page file usage is about .5 GB).

Perhaps you have *too much* memory.

Your situation reminds me of problem I've had with > 2GB disks and older
installation programs who computed remaining disk space with 32 bit integers
and thus failed. OCaml maybe computes remaining memory with 31 bits so 1 GB
is the max (on 32 bit machines) ?

Frédéric vdP

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in memory"?
@ 2005-01-12 11:29 Dominic Cooney
  2005-01-13 11:11 ` Dominic Cooney
  0 siblings, 1 reply; 5+ messages in thread
From: Dominic Cooney @ 2005-01-12 11:29 UTC (permalink / raw)
  To: fvdp, caml-list; +Cc: simeon

I think this is a recent Mingw problem? I just tried building Ocaml 3.08.1
with the same version of Mingw and the same problem occurs, where it was
working in the past with an older Mingw setup.

-----Original Message-----
From: Dominic Cooney [mailto:dominic@dcooney.com] 
Sent: Wednesday, January 12, 2005 9:00 PM
To: 'fvdp@decis.be'; 'caml-list@yquem.inria.fr'
Cc: 'simeon@us.ibm.com'
Subject: RE: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in
memory"?

I think the binaries are corrupt. Here's the output of dumpbin on ocamlc.exe
and ocamlc.opt.exe (note that ocamlc.exe doesn't work, and ocamlc.opt.exe
does work):

Microsoft (R) COFF/PE Dumper Version 8.00.40607.85
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ocamlc.exe
ocamlc.exe : warning LNK4048: Invalid format file; ignored

  Summary


C:\working\OCAMLM~1.2\bin>dumpbin ocamlc.opt.exe
Microsoft (R) COFF/PE Dumper Version 8.00.40607.85
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file ocamlc.opt.exe

File Type: EXECUTABLE IMAGE

  Summary

        2000 .bss
       6F000 .data
        1000 .idata
        2000 .rdata
       DF000 .text

-----Original Message-----
From: caml-list-admin@yquem.inria.fr [mailto:caml-list-admin@yquem.inria.fr]
On Behalf Of Frederic van der Plancke
Sent: Wednesday, January 12, 2005 7:21 PM
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Mingw Ocaml-3.08.2 "Program too big to fit in
memory"?

Dominic Cooney wrote:
> I built Ocaml-3.08.2 with Cygwin Mingw (all downloaded today) and all of
the
> binaries (e.g. ocamlc.exe, ocaml.exe, ocamlopt.exe, etc.) report "Program
> too big to fit in memory". All of the opt.opt binaries (e.g. ocamlc.opt,
> etc.) and OcamlWin.exe seem to work fine (although OcamlWin can't spawn
> ocaml.exe, of course.) The machine has 2 GB physical memory and is very
> lightly loaded (page file usage is about .5 GB).

Perhaps you have *too much* memory.

Your situation reminds me of problem I've had with > 2GB disks and older
installation programs who computed remaining disk space with 32 bit integers
and thus failed. OCaml maybe computes remaining memory with 31 bits so 1 GB
is the max (on 32 bit machines) ?

Frédéric vdP

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-13 11:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-11 23:46 Mingw Ocaml-3.08.2 "Program too big to fit in memory"? Dominic Cooney
2005-01-12  9:20 ` [Caml-list] " Frederic van der Plancke
2005-01-12 10:59   ` Dominic Cooney
2005-01-12 11:29 Dominic Cooney
2005-01-13 11:11 ` Dominic Cooney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).