我怎样才能阻止 make 出现段错误?

发布于 2024-12-09 11:11:52 字数 273 浏览 0 评论 0原文

我一直在尝试构建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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

从﹋此江山别 2024-12-16 11:11:52

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.

百变从容 2024-12-16 11:11:52

我找到了解决方案:我正在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文