我正在尝试在全新的 Ubuntu 20.04 安装中安装 onnx,但遇到了以下错误。看来我需要 protobuf 编译器,尽管我没有找到任何说明我需要安装该软件包的文档。
\n\n$ sudo python3 -m pip install \'onnx>=1.1.2\'\nCollecting onnx>=1.1.2\n Using cached onnx-1.6.0.tar.gz (3.1 MB)\nRequirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from onnx>=1.1.2) (1.18.3)\nRequirement already satisfied: protobuf in /usr/lib/python3/dist-packages (from onnx>=1.1.2) (3.6.1)\nRequirement already satisfied: six in /usr/lib/python3/dist-packages (from onnx>=1.1.2) (1.14.0)\nRequirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.8/dist-packages (from onnx>=1.1.2) (3.7.4.2)\nBuilding wheels for collected packages: onnx\n Building wheel for onnx (setup.py) ... error\n ERROR: Command errored out with exit status 1:\n command: /usr/bin/python3 -u -c \'import sys, setuptools, …Run Code Online (Sandbox Code Playgroud) 与此其他问题相关.我试图在gem5中运行这个简单的C程序:
int main() {
int a=1, b=2;
int c=a+b;
return c;
}
Run Code Online (Sandbox Code Playgroud)
它失败了因为gem5没有实现一些系统调用.
我的问题是,为什么像这样的简单程序需要系统调用?这应该毫无困难地运行裸机.有没有办法编译这个以避免系统调用?我正在使用arm-linux-gnueabi-gcc -static -DUNIX来编译它.