1

I'm building cross-compilation toolchain for Ubuntu following this link (originally for MacOS).

After installing a few libraries (qemu-system-x86, build-essential, gcc-multilib), I managed to use i386-elf-gcc. Then after closing previous shell, I lose access to i386-elf-gcc:

make: i386-elf-gcc: Command not found

I guess some PATH become invalid for operations I don't remember.

Now how do I bring back i386-elf-gcc for Ubuntu?

Also, $ objdump -i get me elf32-i386 at 3rd line, does it mean that i386-elf-gcc is installed already?

Rahn
  • 4,787
  • 4
  • 31
  • 57
  • You can try `find / -name "i386-elf-gcc" 2> /dev/null` to locate it. Or maybe `find / -executable -name "*gcc*" 2> /dev/null` if you're not sure of the name – Mathieu Aug 02 '22 at 08:07

0 Answers0