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.

+3


source to share


1 answer


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.

https://unix.stackexchange.com/questions/182251/makefile29-recipe-for-target-siplib-o-failed-sip-installation



- EDIT -

Perhaps your PCH size is too big? See: SUGGESTED HEADS not working in debug build with Qt Creator / qmake / MinGw

0


source







All Articles