I've been trying to install xv6 on my macOSX through terminal. I used the command brew install qemu to install qemu and have hit the codes:
sudo port install i386-elf-gcc
and after modifying the Makefile from i386-jos-elf to i386-elf- I'm receiving the following message on trying to run xv6 when I hit the code:
cd xv6-public
make
the following message:
Error: Couldn't find an i386--elf version of GCC/binutils. Is the directory with i386-jos-elf-gcc in your PATH? If your i386--elf toolchain is installed with a command prefix other than 'i386-jos-elf-', set your TOOLPREFIX environment variable to that prefix and run 'make' again. To turn off this error, run 'gmake TOOLPREFIX= ...'.
gcc -m32 -gdwarf-2 -Wa,-divide -c -o usys.o usys.S
Any help would be greatly appreciated.