Could not build gem5 on a machine with anaconda: “lto1: fatal error: bytecode stream”

对着背影说爱祢 提交于 2021-01-29 02:33:17

问题


When I tried to build gem5 with command scons build/X86/gem5.opt -j12, I received an error message saying

lto1: fatal error: bytecode stream in file '/home/beihai/anaconda3/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a' generated with LTO version 6.0 instead of the expected 8.1

I think it might be the problem of wrong gcc version. But I do not know how to fix it.

My system is Kubuntu 20.04

By running gcc -v, I got the global gcc version gcc version 9.3.0

By running /home/beihai/anaconda/envs/gem5build/bin/x86_64-conda_cos6-linux-gnu-gcc -v, I got the anaconda gcc version gcc version 7.3.0 (crosstoll-NG 1.23.0.449-a04d0)

Please tell me how to fix this problem.

来源:https://stackoverflow.com/questions/65602198/could-not-build-gem5-on-a-machine-with-anaconda-lto1-fatal-error-bytecode-st

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!