# Building Linux Distribution for HiFive Unmatched using Buildroot

**URL:** <https://forums.sifive.com/t/building-linux-distribution-for-hifive-unmatched-using-buildroot/5630>\
**Category:** HiFive Unmatched\
**Created:** [March 1, 2022, 4:27pm UTC](https://forums.sifive.com/t/building-linux-distribution-for-hifive-unmatched-using-buildroot/5630 "2022-03-01T16:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![divvijchandna](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@divvijchandna](https://forums.sifive.com/u/divvijchandna)\
**Post date:** [March 1, 2022, 4:27pm UTC](https://forums.sifive.com/t/building-linux-distribution-for-hifive-unmatched-using-buildroot/5630/1 "2022-03-01T16:27:46Z")

</div>

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

```auto
make hifive_unleashed_defconfig

```

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

```auto
/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/pkg-generic.mk:251: /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?

---

<div class="post-metadata">

**Author:** ![strangerover](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@strangerover](https://forums.sifive.com/u/strangerover)\
**Post date:** [March 2, 2022, 2:48pm UTC](https://forums.sifive.com/t/building-linux-distribution-for-hifive-unmatched-using-buildroot/5630/2 "2022-03-02T14:48:07Z")

</div>

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.
