#1745 couldn't commit memory for cygwin heap, Win32 error 487

MSYS
pending
Support
none
Waiting_User_Response
False
2014-10-06
2012-12-03
P@S@f
No

I\'m currently trying to compile gcc-4.7.0 with target of arm-eabi in MSYS (1.0.18) with gcc-4.7.2 and I getting this error:

MinGW\\msys\\1.0\\bin\\make.exe: *** couldn\'t commit memory for cygwin heap, Win32 error 487

My OS is XP SP3.

I have 2 gb of physical RAM, 400 mb of them took system etc.

I have 1 gb swap on C: and 3 gb swap on H:

I\'ve googled this, tried to rewrite this value in registry both in
HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygwin
and
HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin
with creating DWORD parameter, but it seems to not affect at all. I\'ve tried different values, from 1024 to 2048 and still get this error.

I\'ve also tried to recompile MSYS dll with heap_chunk_in_mb = 1300; in shared_info::heap_chunk_size ()
It does not help too and unfortunately I can\'t use more 1300 - msys won\'t start then.

One weird thing I\'ve noticed, that with common msys-1.0.dll where heap_chunk_in_mb = 256 this error appear just once, and with recompiled - twice.

Discussion

1 2 > >> (Page 1 of 2)
  • P@S@f

    P@S@f - 2012-12-03

    makefile, config.log and make log of gcc-4.7.0 arm-eabi that i try to compile

     
  • P@S@f

    P@S@f - 2012-12-04
    • summary: MinGW\msys\1.0\bin\make.exe: *** couldn\'t commit memory for --> couldn't commit memory for cygwin heap, Win32 error 487
     
  • P@S@f

    P@S@f - 2012-12-04
    • priority: 5 --> 9
     
  • P@S@f

    P@S@f - 2012-12-04

    ok I've installed rebase with

    mingw-get install msys-rebase-dev

    tried

    $ rebase -b 0x64000000 /bin/msys-1.0.dll
    ReBaseImage (/usr/bin/msys-1.0.dll) failed with last error = 6

    $ rebase -b 0x30000000 /bin/msys-1.0.dll
    ReBaseImage (/usr/bin/msys-1.0.dll) failed with last error = 6

    $ rebase -b 0x70000000 /bin/msys-1.0.dll
    ReBaseImage (/usr/bin/msys-1.0.dll) failed with last error = 6

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-04

    You'll need to copy it to a temporary location, rebase the copy, exit all MSYS processes and copy the rebased DLL to the bin directory.

     
  • Keith Marshall

    Keith Marshall - 2012-12-04

    You do not have the authority to escalate priority. This has now gone to the bottom of the pile, and if you try to escalate it again, I will delete it.

     
  • Keith Marshall

    Keith Marshall - 2012-12-04
    • priority: 9 --> 1
     
  • P@S@f

    P@S@f - 2012-12-04

    earnie, I've tried to rebase recompiled dll (with heap chunk size = 1300 mb) to 0x64000000 and it does nothing

    keithmarshall, you should cool down and just setup correct permissions to not take offense on newbie users

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-04

    In one of the links I gave you the suggestion was "-b 0x30000000".

    As for Keith's defense, you are warned in bold red letters to not change the priority and assignment data but only on the listing page. We're limited into the controls we can give privilege, the warning text isn't carried to the edit page of the ticket unfortunately.

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-04
    • priority: 1 --> 5
     
  • P@S@f

    P@S@f - 2012-12-04

    With msys-1.0.dll rebased to 0x30000000 MinGW unfortunately won't start at all.

     
  • P@S@f

    P@S@f - 2012-12-04

    I mean with recompiled dll, with heap_chunk_in_mb = 1300

     
  • P@S@f

    P@S@f - 2012-12-04

    And with common rebased dll too.

     
  • P@S@f

    P@S@f - 2012-12-04

    With common rebased dll it starts but get same error.

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-04

    Let's see if Cesar has any input?

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-04
    • assigned_to: nobody --> cstrauss
     
  • P@S@f

    P@S@f - 2012-12-04

    What are you mean? What logs are you need?

     
  • P@S@f

    P@S@f - 2012-12-04

    I mean what do you mean? What logs do you need?

    I don't understand what does mean Cesar and where he has input.

     
  • Earnie Boyd

    Earnie Boyd - 2012-12-04

    Cesar (cstrauss) is the maintainer of MSYS.

     
  • P@S@f

    P@S@f - 2012-12-04

    Oh shame on me

     
  • Cesar Strauss

    Cesar Strauss - 2012-12-05

    There is a list of programas that are known to interfere with the operation of MSYS fork. Please try uninstalling them if you have any of them:

    http://cygwin.com/faq/faq.using.html#faq.using.bloda

    That list applies to MSYS as well as Cygwin because MSYS is derived from Cygwin.

    Regards,
    Cesar

     
  • P@S@f

    P@S@f - 2012-12-05

    Unfortunately from listed applications I have none installed.

    I've tried to uninstall few applications - AnVir Task Manager, memoQ, Mystic Thumbnails.

    But it does not affect, with any dll, at all.

    I've also tried to use debug msys-1.0.dll, but then building frozen on configuration of libdecnumber on this line:
    configure: creating ./config.status

     
  • Cesar Strauss

    Cesar Strauss - 2012-12-06

    Please try rebasing the entire MSYS system:

    1. shutdown all MSYS processes
    2. start dash (do not use bash, rxvt, or mintty)
    3. execute /bin/rebaseall (in the dash window)

     
  • P@S@f

    P@S@f - 2012-12-06

    Does not take effect.

    Here is log of rebaseall:

    F:\MinGW\msys\1.0\bin>dash
    $ ./rebaseall
    /usr/lib/perl5/5.8/msys/auto/threads/threads.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/threads/shared/shared.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/re/re.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/attrs/attrs.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/XS/Typemap/Typemap.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/XS/APItest/APItest.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Unicode/Normalize/Normalize.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Time/HiRes/HiRes.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Sys/Syslog/Syslog.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Sys/Hostname/Hostname.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Storable/Storable.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Socket/Socket.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/SDBM_File/SDBM_File.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/PerlIO/via/via.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/PerlIO/scalar/scalar.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/PerlIO/encoding/encoding.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/POSIX/POSIX.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Opcode/Opcode.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/ODBM_File/ODBM_File.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/NDBM_File/NDBM_File.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/MIME/Base64/Base64.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/List/Util/Util.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/IO/IO.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/GDBM_File/GDBM_File.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Filter/Util/Call/Call.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/File/Glob/Glob.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Fcntl/Fcntl.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/Unicode/Unicode.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/TW/TW.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/Symbol/Symbol.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/KR/KR.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/JP/JP.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/Encode.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/EBCDIC/EBCDIC.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/CN/CN.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Encode/Byte/Byte.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Digest/MD5/MD5.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Devel/Peek/Peek.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Devel/PPPort/PPPort.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Devel/DProf/DProf.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Data/Dumper/Dumper.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/Cwd/Cwd.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/ByteLoader/ByteLoader.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/B/C/C.dll: skipped because not writable
    /usr/lib/perl5/5.8/msys/auto/B/B.dll: skipped because not writable

     
1 2 > >> (Page 1 of 2)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks