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

10,662

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

Share:
10,662
Will-Opare
Author by

Will-Opare

Updated on June 06, 2022

Comments

  • Will-Opare
    Will-Opare almost 2 years

    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?