How to setup i686-elf cross-compiler on linux?

Will-Opare picture Will-Opare · May 30, 2014 · Viewed 10k times · Source

When I was following the Bare Bones tutorial on the OSDev Wiki. I got the error:

i686-elf-as: command not found

I tried following the GCC Cross-compiler instructions when I run the command:

../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?

Answer

robbie picture robbie · Nov 22, 2014

Replace x.y.z in the command with the binutils version.