我怎样才能阻止 make 出现段错误?
我一直在尝试构建cyanogenmod,尽管出于这个问题的目的,我怀疑它可能只是任何大型项目。我已经尝试了三个不同版本的 Ubuntu 和三个不同版本的 make,无论我切换到哪个版本,make 都会在编译过程中的某个时刻崩溃:
make: *** [out/target/product/passion/symbols/system/lib/liblog.so] Segmentation fault
这是 make 的行为,还是可能是 android 特定的?
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 during 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
make 不会出现段错误。问题可能出在您正在使用的交叉编译工具链上。
您引用的消息告诉您 make 运行了一些程序以创建“out/target/product/passion/symbols/system/lib/liblog.so”,以及该程序,无论它是什么,出现段错误。
要找出真正出了什么问题,您需要查看构建过程中的前面的输出。除非您运行 make 选项“-j”,否则该消息上方的行很可能标识出现段错误的程序。
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.
我找到了解决方案:我正在 Mac OS 上的共享定向中构建 Linux VM。在检查虚拟机硬盘中的代码后,一切正常。
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.