3

当我关注 OSDev Wiki 上的 Bare Bones 教程时。我得到了错误:

i686-elf-as: command not found

我在运行命令时尝试遵循 GCC 交叉编译器说明:

../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --disable-werror

我得到了错误:

bash: ../binutils-x.y.z/configure: No such file or directory.

如何设置我的 GCC 交叉编译器以使用本教程?

4

2 回答 2

8

在命令中替换x.y.z为 binutils 版本。

于 2014-11-22T19:01:54.097 回答
0

请按照说明进行操作:

  • Linux:
$ git clone https://github.com/lordmilko/i686-elf-tools
$ cd i686-elf-tools
$ ./i686-elf-tools.sh linux
  • 苹果系统:
  • 确保您已预先安装 brew
$ brew update
$ brew install i686-elf-binutils
$ brew install i686-elf-gcc
于 2022-01-15T10:51:21.137 回答