GCC crashes without message when using precompiled headers
I am trying to use pre-compiled headers in my rather large Android NDK project. The precompiled header builds correctly and I get the gch file I see is used when compiling the source file. However, the command " make
" fails with error 1, but GCC doesn't tell me why it failed:
../Makefile:##: recipe for target '...' failed
make[1]: *** [...] Error 1
make[1]: Leaving directory
I also found that reordering the headers so that my precompiled header is smaller (about ~ 128MB), it works. The original size of my pch was ~ 173MB. I know for VS there is a / Zm option that allows you to change the size limit for the precompiled header, but I cannot find such an option for GCC, and I cannot find any indication that such a limit exists for GCC.
Does anyone have any ideas on why my build failed and any ideas on how I can work around it?
Thanks in advance.
EDIT:
Some clarifications:
1) The code compiles if I don't use PCH, so I don't like that I am missing libraries or files or something.
2) I am getting GCC error messages when compilation does not work fine. This is just one instance where I can't see.
source to share
Without seeing the complete error log, I can only guess. I found an answer that suggests that the problem might be with resources that are not installed on your system.
- EDIT -
Perhaps your PCH size is too big? See: SUGGESTED HEADS not working in debug build with Qt Creator / qmake / MinGw
source to share