bash 如何在 linux 上设置 i686-elf 交叉编译器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23961916/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to setup i686-elf cross-compiler on linux?
提问by Will-Opare
When I was following the Bare Bones tutorial on the OSDev Wiki. I got the error:
当我在 OSDev Wiki 上关注 Bare Bones 教程时。我收到错误:
i686-elf-as: command not found
I tried following the GCC Cross-compiler instructions when I run the command:
我在运行命令时尝试遵循 GCC 交叉编译器说明:
../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --disable-werror
I got the error:
我收到错误:
bash: ../binutils-x.y.z/configure: No such file or directory.
How can I setup my GCC cross-compiler to work with this tutorial?
如何设置我的 GCC 交叉编译器以使用本教程?
回答by robbie
Replace x.y.z
in the command with the binutils version.
x.y.z
在命令中替换为 binutils 版本。