How can I stop make from segfaulting?
I've been trying to build cyanogenmod, although for the purposes of this questions I suspect it might be just any large project. I've tried three different versions of Ubuntu with three different versions of make, and no matter what version I switch to, make crashes at some point d开发者_C百科uring compilation:
make: *** [out/target/product/passion/symbols/system/lib/liblog.so] Segmentation fault
Is this a behavior of make, or could this be android-specific?
make is not segfaulting. The problem is likely with the cross-compilation toolchain you are using.
The message you quote is telling you that make ran some program in order to create "out/target/product/passion/symbols/system/lib/liblog.so", and that program, whatever it is, segfaulted.
To find out what's really going wrong, you need to look at the preceding output from the build process. Unless you're running make the "-j" option, it's likely that the line immediately above this message identifies the program that segfaulted.
I've found the solution: I was building on a Linux VM in a shared directed that lived on Mac OS. Upon checking out my code in the VM's hard drive, everything worked.
精彩评论