首页 > 解决方案 > 链接 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.

我想知道如何解决它。

标签: gem5lto

解决方案


推荐阅读