链接 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 (将#修改为@)