cc1plus.exe crash when using large precompiled header file

眉间皱痕 提交于 2019-12-05 01:42:22

There is a bug report of GCC about your issue, see: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56926, it looks like big pch file(usually larger than 150M) can cause this issue.

Edit: 2015-05-31. I recently found a hard limit value for the pch file in GCC source for mingw or mingw-w64 toolchain, which is 128M. I would like to suggest some one to build a recent GCC to see whether it solve this crash issue. See my post in mingw-w64 forum: [Mingw-w64-public] Set a larger pch file size limit? was : can anyone supply a debug version of cc1plus.exe?

Edit:2015-06-02. I can totally fix this issue by enlarge the hard limit value of the pch file, see my Comment 17 in gcc bugzilla.

I had a similar issue and resolved it by updating mingw:

  1. Run shell (cmd or sh)
  2. Update package list:

    mingw-get update

  3. After this run upgrade

    mingw-get upgrade

After this your mingw packages should be upgraded to latest versions and you should be able to get pased the error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!