微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

链接 X86/marshal 文件时的 LTO 编译问题

如何解决链接 X86/marshal 文件时的 LTO 编译问题

环境:Ubuntu 18.04、Miniconda3、python=3.7(GCC=7.3.0)、GCC -v (7.4.0)

运行以下命令时出现错误

scons build/X86/gem5.opt -j8

错误如下:

[    LINK]  -> X86/marshal
lto1: internal compiler error: in lto_tag_to_tree_code,at lto-streamer.h:1005
Please submit a full bug report,with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
lto-wrapper: Fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper Failed
collect2: error: ld returned 1 exit status
scons: *** [build/X86/marshal] Error 1
scons: building terminated because of errors.

我想知道如何修复它。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。