From: LRN <lr...@gm...> - 2013-01-11 10:26:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10.01.2013 15:41, Алексей Павлов wrote: > Hi! I have error when building GCC with fork can't reserve memory > for stack... I google it and there are many links with discussing > this problem but there are no solution for this. I use msys-1.0.17 > under Windows 7 64-bit. Can anybody solve this? Error message is: > > /temp/x32-4.7.2-release-posix-sjlj-rev7/build/gcc-4.7.2/./gcc/xgcc > -B/temp/x32-4.7.2-release-posix-sjlj-rev7/build/gcc-4.7.2/./gcc/ > -L/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/lib > > - -L/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/mingw/lib -isystem > /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/include > > - -isystem /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/mingw/include > -B/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/bin/ > > - -B/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/lib/ > -isystem > /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/include > > - -isystem > /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/sys-include > > - -g -O2 -pipe -fomit-frame-pointer > -I/temp/x32-4.7.2-release-posix-sjlj-rev7/libs/include > -I/temp/mingw-prereq/x32-zlib/include > -I/temp/mingw-prereq/i686-w64-mingw32-static/include -m64 -O2 -g > -O2 -pipe -fomit-frame-pointer > -I/temp/x32-4.7.2-release-posix-sjlj-rev7/libs/include > -I/temp/mingw-prereq/x32-zlib/include > -I/temp/mingw-prereq/i686-w64-mingw32-static/include -DIN_GCC -W > -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition > -isystem ./include -I. -I. -I../../.././gcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/. > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../gcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../include > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/libbid > -DENABLE_DECIMAL_BID_FORMAT -g0 -finhibit-size-directive > -fno-inline -fno-exceptions -fno-zero-initialized-in-bss > -fno-toplevel-reorder -fno-tree-vectorize -fno-stack-protector > -I. -I. -I../../.././gcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/. > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../gcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../include > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/libbid > -DENABLE_DECIMAL_BID_FORMAT -o crtend.o -MT crtend.o -MD -MP -MF > crtend.dep -fno-omit-frame-pointer -Wno-error -c > ../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/cygming-crtend.c > > ../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/cygming-crtend.c:67:1: > warning: constructor priorities from 0 to 100 are reserved for the > implementation [enabled by default] C:\gccbuild\msys\bin\sh.exe: > *** fork: can't reserve memory for stack 0xA0000 - 0x2A0000, Win32 > error 0 0 [main] sh" 7088 sync_with_child: child 6656(0x2B4) died > before initialization with status code 0x1 > C:\gccbuild\msys\bin\sh.exe: *** fork: can't reserve memory for > stack 0xA0000 - 0x2A0000, Win32 error 0 > /temp/x32-4.7.2-release-posix-sjlj-rev7/build/gcc-4.7.2/./gcc/xgcc > -B/temp/x32-4.7.2-release-posix-sjlj-rev7/build/gcc-4.7.2/./gcc/ > -L/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/lib > > - -L/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/mingw/lib -isystem > /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/include > > - -isystem /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/mingw/include > -B/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/bin/ > > - -B/temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/lib/ > -isystem > /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/include > > - -isystem > /temp/x32-4.7.2-release-posix-sjlj-rev7/prefix/i686-w64-mingw32/sys-include > > - -g -O2 -pipe -fomit-frame-pointer > -I/temp/x32-4.7.2-release-posix-sjlj-rev7/libs/include > -I/temp/mingw-prereq/x32-zlib/include > -I/temp/mingw-prereq/i686-w64-mingw32-static/include -m64 -O2 > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../winsup/w32api/include > > - -g -O2 -pipe -fomit-frame-pointer > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/cygming-crtbegin.c: > > In function '__gcc_register_frame': > 69312 [main] sh" 7088 sync_with_child: *** child state waiting for > longjmp > ../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/cygming-crtbegin.c:106:19: > > warning: array subscript is above array bounds [-Warray-bounds] > /temp/x32-4.7.2-release-posix-sjlj-rev7/libs/include > -I/temp/mingw-prereq/x32-zlib/include > -I/temp/mingw-prereq/i686-w64-mingw32-static/include -DIN_GCC -W > -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition > -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc > -fno-stack-protector -I. -I. -I../../.././gcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/. > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../gcc > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/../include > -I../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/libbid > -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_EMUTLS -o > crtfastmath.o -MT crtfastmath.o -MD -MP -MF crtfastmath.dep -msse > -minline-all-stringops -c > ../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/crtfastmath.c > > C:/gccbuild/msys/temp/x32-4.7.2-release-posix-sjlj-rev7/build/gcc-4.7.2/gcc/as: > fork: Resource temporarily unavailable 0 [main] sh" 3288 > sync_with_child: child 3392(0x2B8) died before initialization with > status code 0x1 55402 [main] sh" 3288 sync_with_child: *** child > state waiting for longjmp > C:/gccbuild/msys/temp/x32-4.7.2-release-posix-sjlj-rev7/build/gcc-4.7.2/gcc/as: > > fork: Resource temporarily unavailable > ../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/cygming-crtbegin.c: > > At top level: > ../../../../../../mingw-sources/gcc-4.7.2/libgcc/config/i386/cygming-crtbegin.c:136:1: > > fatal error: error closing -: Invalid argument > compilation terminated. OK, since no one was able to make any meaningful suggestions, here's one: Try to put gcc source in a directory that has short path (such as c:\g). If you can't do that, use symlinks or directory junction. If your gcc build has some framework around it (say, a parent directory that contains scripts, patches, source directory, build directory, etc), then symlink that directory. The objective here is to make paths as short as possible. This will keep command line length within limits. Command line overflow might be the reason why gcc build fails (but, to be honest, i do not remember how the error message looks in that case, i.e. i can't say that it manifests itself as a fork error). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJQ7+jFAAoJEOs4Jb6SI2CwihEIAMgXzdzREl3acwVQmXAIPWGn KNP28YK9YEXD8a3yPGtC8iJbI79rHCwjDIUsloyO5+gz4TA8d3I3Clj+6F5y7rK2 9v3uHM4HxYSJ9vi/mzGlJR1ZROGIQkM1lZBL6Z7aerho1XoPlIFJrvo9PnhsQcc3 3IXnUbwXZVwSfYTUnU+/ADYzJ33PYhLRdam0cY4FHewjCpf3SePNk6DkBrX9eHiR hCFs3aO4MIhg5uRUs08PGRA9jkijj1cvhld/KTODU0XwNwmmdze05r9ibJF/2hZb HdeAe1M9gxlcfYNCbrCOCESAqIypZjdJQGQXAS1tBG91vukBMLidY7JC2ujq4Zw= =S4c9 -----END PGP SIGNATURE----- |