【发布时间】:2020-08-21 15:29:34
【问题描述】:
我完全实现了以下网页的内容: http://www.gem5.org/documentation/learning_gem5/part3/running/ 程序可以根据网页要求在X86下编译,但是我想得到一个ARM二进制文件,所以我用下面的代码编译:
aarch64-linux-gnu-g++ -o threads threads.cpp -pthread -std = c ++ 11 -static
我可以编译得到二进制文件,但是运行过程中出现如下错误:
erminate called after throwing an instance of 'std::system_error'
what(): Enable multithreading to use std::thread: Operation not permitted
由于gem5的bin文件夹中没有提供编译好的ARM二进制文件,是不是说gem5不支持运行ARM多线程程序,还是我的编译选项不对?
【问题讨论】:
-
这不可能是您的实际命令行,对吧?应该是
-std=c++11,而不是-std = c ++ 11。
标签: c++ multithreading arm gem5