Fwd: Re: [Mingw-w64-public] Out of memory for cc1plus

68 views
Skip to first unread message

xunxun

unread,
Dec 25, 2014, 4:31:23 AM12/25/14
to Code::Blocks中国开发组
如果你的gcc编译器在编译阶段报告内存溢出,可以加入
-ftrack-macro-expansion=0


-------- Original Message --------
Subject: Re: [Mingw-w64-public] Out of memory for cc1plus
Date: Thu, 25 Dec 2014 05:29:34 +0100
From: Óscar Fuentes <o...@wanadoo.es>
Reply-To: mingw-w6...@lists.sourceforge.net
To: mingw-w6...@lists.sourceforge.net


Edward Diener <eldlist...@tropicsoft.com>
writes:

> I am seeing an out of memory message of:
>
> "cc1plus.exe: out of memory allocating 65536 bytes"
>
> when compiling code using mingw-64 from gcc-4.8.1, gcc-4.8.2, gcc-4.8.3, 
> gcc-4.9.0, and gcc-4.9.1. Nor is this just a mingw-64 problem as I am 
> seeing the same error when compiling the same code with mingw and gcc-4.8.1.
>
> Strangely this error does not occur when compiling the exact same code 
> using versions from mingw of gcc-4.3.0 through gcc-4.7.2.
>
> The code is heavily preprocessor code for my VMD library, which also 
> depends on the Boost PP library. In other words the code is almost 
> entirely involved with testing macro expansions in the libray. As a 
> piece of related information, which may not be very relevant, the latest 
> clang and versions of vc++ from vc++8 through vc++12 do not exhibit any 
> out of memory errors.

See if http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56746 applies to your
case. If the answer is affirmative, passing -ftrack-macro-expansion=0
will reduce memory usage.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Mingw-w64-public mailing list
Mingw-w6...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


xunxun

unread,
Dec 25, 2014, 4:33:19 AM12/25/14
to Code::Blocks中国开发组
-- 
Best Regards,
xunxun
Reply all
Reply to author
Forward
0 new messages