Building Linux Distribution for HiFive Unmatched using Buildroot

I am trying to build a Linux distribution for the HiFive Unmatched platform using Buildroot. Currently I am applying the default config files for the HiFive Unleashed board using

make hifive_unleashed_defconfig

since there is no default config files for the HiFive Unmatched but I am getting the following error message:

/bin/sh: 1: /home/divvij/buildroot/output/host/bin/riscv64-buildroot-linux-uclibc-gcc: not found
 CC        lib/sbi/riscv_asm.o
/bin/sh: 1: /home/divvij/buildroot/output/host/bin/riscv64-buildroot-linux-uclibc-gcc: not found
make[2]: * [Makefile:333: /home/divvij/buildroot/output/build/opensbi-0.8/build/lib/sbi/riscv_asm.o] Error 127
make[1]: * [package/ /home/divvij/buildroot/output/build/opensbi-0.8/.stamp_built] Error 2
make: * [Makefile:84: _all] Error 2

Any idea how I could resolve this or find a set of default config files suitable for the HiFive Unmatched?

1 Like

The error being shown is “riscv64-buildroot-linux-uclibc-gcc: was not found”
Which probably means your compiler has failed to be built.

Look at the path to see it it exists “divvij/buildroot/output/host/bin/”
it should be a symbolic link like this
“output/host/bin/riscv64-buildroot-linux-uclibc-gcc → toolchain-wrapper”
If it doesn’t exist then clean and rebuild turning on extra debug, to find find the failure message for the compiler build.